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

pico mips2

[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 ๊ณผ์ œ - factorial ์—ฐ์‚ฐ ์˜ค๋Š˜์€ MIPS๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Factorial ์—ฐ์‚ฐ์„ ์ˆ˜ํ–‰ํ•˜๋Š” ์ฝ”๋“œ๋ฅผ ์„ค๋ช…๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ํฌ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๊ธฐ์— ์•ž์„œ ๊ธฐ๋ณธ์ ์ธ 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์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž์—๊ฒŒ ์–‘์˜ ์ •์ˆ˜ ๊ฐ’ 10์„ ์ž…๋ ฅ ๋ฐ›๊ณ .. 2021. 11. 16.
728x90