2 # configfile(): INTC.conf
4 .include "testutils.inc"
5 .include "interrupt.inc"
11 stc $0,$psw # psw,cfg Initialize
13 mov $10,0x0 # interrupt counter
14 mov $11,0x3 # number of interrupts desired
15 mov $13,0x0 # check code
19 set_interrupt_mask_level 0
20 set_interrupt_priority 0 1
23 # case 1: enable everything then trigger interrupt
24 # should interrupt $11 times and then continue.
27 enable_interrupt_channel 0
28 save_label_to_reg interrupt_addr_1, $12
33 disable_interrupt_channel 0
39 # case 2: raise the interrupt and then enable things
40 # should interrupt $11 times and then continue
41 save_label_to_reg interrupt_addr_2, $12
43 enable_interrupt_channel 0
49 disable_interrupt_channel 0
91 check_interrupt_entry_from $12
95 bnez $3, return_from_interrupt
97 return_from_interrupt:
102 # and finally, setting up the interrupt vectors:
104 standard_interrupt_vectors