728x90 mips beq2 [MIPS] MIPS programming ๊ณผ์ - ์ฐ์๋ ์ ์ ์ถ๋ ฅํ๊ธฐ ์ค๋์ MIPS๋ฅผ ์ฌ์ฉํ์ฌ ํน์ ์ ์๋ณด๋ค ์์ ์ ์ ์ค ๊ฐ์ฅ ํฐ 4๊ฐ์ ์ซ์๋ฅผ ๋ด๋ฆผ์ฐจ์์ผ๋ก ์ถ๋ ฅํ๋ ์ฝ๋๋ฅผ ์ค๋ช ๋๋ฆฌ๊ฒ ์ต๋๋ค. ํด๋น ํฌ์คํธ๋ฅผ ์งํํ๊ธฐ์ ์์ ๊ธฐ๋ณธ์ ์ธ 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. ์ฌ์ฉ์๋ก๋ถํฐ ์์ ์ ์ ํ๋๋ฅผ .. 2021. 11. 3. [MIPS] MIPS programming ๊ณผ์ - ๋ ์ ์ ๋น๊ตํ๊ธฐ ์ค๋์ 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. ์ฌ์ฉ์๋ก๋ถํฐ ์์์ ์์ ์ ์ ๋ ๊ฐ๋ฅผ ์ ๋ ฅ๋ฐ๊ณ , ์ ๋ ฅ๋ฐ์ ๋ ๊ฐ์ ์ ์ ์ค .. 2021. 11. 2. ์ด์ 1 ๋ค์ 728x90