; ###----------------------------------------------------------------### ; # file : exc007.u # ; # date : Mar 26 1996 # ; # descr. : functional test for mips # ; ###----------------------------------------------------------------### ; ###--------------------------------------------------------### ; # exceptions : # ; # - illegal instruction address (segment) # ; ###--------------------------------------------------------### it_handler .equ 0x80000080 .org 0x00400000 .start init init: loadi r31, back_from_exception loadi r20, it_handler jr r20 ; EXCEPTION (segment) nop ; ###--------------------------------------------------------### ; # jump to good if returned from exception # ; ###--------------------------------------------------------### back_from_exception: j good nop .org 0x004000d0 good: j good nop bad: j bad nop .end