I tried this in the simulator and it works with that, but will it work the same way in real life too??? I want to interrupt two different subroutines, and I think the interrupt has to be the same...only one interrupt sub allowed right? I want the code to return to the sub that was interrupted, not necessarily to the first one.
Code:
Main:
Setint %00000000,%00000100
high 0
pause 2000
low 0
pause 2000
goto testing
testing:
Setint %00000000,%00000100
high 1
pause 2000
low 1
pause 2000
goto main
interrupt:
high 4
pause 2000
low 4
Setint %00000000,%00000100
return
Last edited: