๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90

์ปดํ“จํ„ฐ๊ตฌ์กฐ๋ก 8

[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.
[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 2. ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ๋ณ€์ˆ˜ a, c์— ์ž…๋ ฅ์„ ๋ฐ›์•„ ์ €์žฅํ•˜๊ณ , ์ž…๋ ฅ๋ฐ›์€ ๋‘ ์ˆ˜์˜ ๋ชซ๊ณผ ๋‚˜๋จธ์ง€๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ.. 2021. 10. 27.
728x90