3 # START Interrupt Vector Table [[
39 # ]] END Interrupt Vector Table
45 _exithook: # Debugger uses '_exithook' at 0x90 to catch program exit
52 # Disable all interrupts
56 # Initialize DATA by copying from program memory
57 ldk.l $r4,__data_load_start
58 ldk.l $r1,__data_load_end
59 ldk.l $r2,0 # Will use __data after binutils patch
63 # Copy PM[$r4] to RAM $r2
88 sub.l $sp,$sp,24 # Space for the caller argument frame
95 sta.l EXITEXIT,$r0 # simulator end of test
98 # Macro to construct the interrupt stub code.
99 # it just saves r0, loads r0 with the int vector
100 # and branches to interrupt_common.
105 lda $r0,(vector_table + 4 * \i)
143 # On entry: r0, already saved, holds the handler function
174 pop $r0 # } matching push in interrupt_0-31 above
177 # Null function for unassigned interrupt to point at
191 .global __gxx_personality_sj0
192 __gxx_personality_sj0: