[prev] 22 [next]

Exercise 7: Check the results

Write MIPS assembler code to display the values from the previous exercise.

Use $a0 as the destination register for all examples

E.g.

lw $a0, y($s0)   # load value into arg[0] register
li $v0, 1        # set up for print_int syscall
syscall          # print the number

Print a "\n" after each number