# Add two integers initialized by hand
#
.data
.align 2
num1: .word 15 # These are not special numbers
num2: .word 254 # These are convenient for locating the address
total: .word 0 #
.text
.globl main
main:
lw $t1, num1 # val(num1) into register t1
lw $t2, num2 # val(num2) into register t2
add $t3, $t1, $t2 # tot = num1 + num2
sw $t3, total # store the result
j $ra # return