728x90 mips ๋ฐ๋ณต๋ฌธ2 [MIPS] MIPS programming ๊ณผ์ - N๊ฐ์ ๋ณ ์ถ๋ ฅํ๊ธฐ ์ค๋์ MIPS๋ฅผ ์ฌ์ฉํ์ฌ N๊ฐ์ ๋ฌธ์๋ฅผ ์ถ๋ ฅํ๋ ์ฝ๋๋ฅผ ์ค๋ช ๋๋ฆฌ๊ฒ ์ต๋๋ค. ํด๋น ํฌ์คํธ๋ฅผ ์งํํ๊ธฐ์ ์์ ๊ธฐ๋ณธ์ ์ธ opcode ํ์ต์ด ํ์ํฉ๋๋ค. [MIPS] MIPS programming ๊ธฐ๋ณธ [MIPS] MIPS programming ๊ธฐ๋ณธ opcode Artithmetic Instructions opcode ์ฌ์ฉ ๋ฐฉ๋ฒ ์๋ฏธ add add $s1, $t0, $t1 $s1 = $t0 + $t1 addi addi $s1, $t0, Int $s1 = $t0 + Int sub sub $s1, $t0, $t1 $s1 = $t0 - $t1 mul mul $s1, $t0, $t1 $s1.. ruas-coding.tistory.com Q. syscall์ ์ฌ์ฉํ์ฌ ์ฌ์ฉ์๋ก๋ถํฐ ์์ฐ์๋ฅผ ์ ๋ ฅ๋ฐ๊ณ , ์ฒซ์งธ ์ค์๋ ๋ณ 1๊ฐ.. 2021. 12. 17. [MIPS] MIPS programming ๊ณผ์ - array ์ฌ์ฉํ๊ธฐ ์ค๋์ MIPS๋ฅผ ์ฌ์ฉํ์ฌ array์ parameter๋ฅผ ๋์ ํ๋ ์ฝ๋๋ฅผ ์ค๋ช ๋๋ฆฌ๊ฒ ์ต๋๋ค. ํด๋น ํฌ์คํธ๋ฅผ ์งํํ๊ธฐ์ ์์ ๊ธฐ๋ณธ์ ์ธ opcode ํ์ต์ด ํ์ํฉ๋๋ค. [MIPS] MIPS programming ๊ธฐ๋ณธ [MIPS] MIPS programming ๊ธฐ๋ณธ opcode Artithmetic Instructions opcode ์ฌ์ฉ ๋ฐฉ๋ฒ ์๋ฏธ add add $s1, $t0, $t1 $s1 = $t0 + $t1 sub sub $s1, $t0, $t1 $s1 = $t0 - $t1 mul mul $s1, $t0, $t1 $s1 = $t0 * $t1 mult mult $t0, $t1 Lo, Hi.. ruas-coding.tistory.com Q. ์๋ ์ฝ๋๋ฅผ ์ฐธ์กฐํ์ฌ ๋ณ์ d์ ๊ฐ์ 1์ฉ ๊ฐ์์ํค๋ฉด์ ๋ฐฐ์ด a.. 2021. 11. 12. ์ด์ 1 ๋ค์ 728x90