# ********************************************* # demo2.asm inputs 2 integers, outputs sum # .text .globl main main: li $v0, 5 # read an int into V0 syscall move $t0, $v0 # move this int into T0 li $v0, 5 # read a second int syscall add $a0, $t0,$v0 # sum these two ints into A0 li $v0, 1 # and print the sum syscall li $v0, 10 # system call code for exit syscall