728x90 mips jump2 [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. [MIPS] MIPS programming ๊ณผ์ - ((i + j) * 2) ์ฐ์ฐ ์ํ ์ค๋์ MIPS๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ์น ์ฐ์ฐ์ ํ๋ ์ฝ๋๋ฅผ ์ค๋ช ๋๋ฆฌ๊ฒ ์ต๋๋ค. ํด๋น ํฌ์คํธ๋ฅผ ์งํํ๊ธฐ์ ์์ ๊ธฐ๋ณธ์ ์ด 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. ์ ์ ๊ฐ i์ j๋ฅผ parameter๋ก ๋ฐ๊ณ ((i + j) * 2) ํ ๊ฒฐ๊ณผ ๊ฐ์ ๋ฐ.. 2021. 11. 11. ์ด์ 1 ๋ค์ 728x90