diff options
Diffstat (limited to 'mips/chapter-2/exercise-1/d.s')
-rw-r--r-- | mips/chapter-2/exercise-1/d.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mips/chapter-2/exercise-1/d.s b/mips/chapter-2/exercise-1/d.s new file mode 100644 index 0000000..e20cd4c --- /dev/null +++ b/mips/chapter-2/exercise-1/d.s @@ -0,0 +1,13 @@ +# print t3 + .text +main: + li $v0, 1 # print integer + move $a0, $t3 # at t3 + syscall + + li $v0, 11 # print character + li $a0, 10 # newline + syscall + + li $v0, 10 # terminate program run + syscall |