# signedOFE.s # MIPS program written to illustrate signed addition overflow detected # by an exception being raised - Look for a jump to an overflow handler # after an add with an overflow! # Susan Haller # 2/17/03 .data a: .word 0x7fffffff .text .globl main main: la $a0, a # t1 = 0x7fffffff lw $t1, 0($a0) move $t2,$t1 # t2 = 0x7fffffff add $t0, $t1, $t2 # t0 = t1 + t2 li $v0, 10 syscall # system call(exit)