1 2 3 4 5 6 7 8 9 |
## Program adds 1 and 12 .text # text section .globl main # call main by SPIM main: ori $8,$0,0x1 # load 1 into register 8 ori $9,$0,0x2 # load 2 into register 9 add $10,$8,$9 # add registers 8 and 9, put result in register 10 jr $ra |