# Simple MIPS program that adds 4 + 6 # NOTE: there needs to be a label "main" # so SPIM knows where to start the program. .text .globl main main: addi $t0, $0, 4 # $t0 <- 4 addi $t1, $0, 6 # $t1 <- 6 add $t2, $t0, $t1 # $t2 <- $t0 + $t1