# Daniel J. Ellard -- 02/21/94 # add.asm-- A program that computes the sum of 1 and 2, # leaving the result in register $t0. # Registers used: # t0 - used to hold the result. # t1 - used to hold the constant 1. main: li $t1, 1 # load 1 into $t1. add $t0, $t1, 4 # $t0 = $t1 + 2. li $v0, 10 # syscall code 10 is for exit. syscall # make the syscall. # end of add.asm