The 20X2 has two hardware interupts B0 and B1. If you select B1 with the hintsetup and the setintflags command then the 20X2 respond at B1 and B2. How is that possible?
(If you select B0 then everything is alright and interrupt is only trigger by B0)
By the way the sleep 0 command for the 20X2 puts the microcontroller not into permanent sleep in the simulator.
(If you select B0 then everything is alright and interrupt is only trigger by B0)
By the way the sleep 0 command for the 20X2 puts the microcontroller not into permanent sleep in the simulator.
Code:
main:
flag2=0
hintsetup %01000100
setintflags %00000100, %00000100
sleep 10
goto main
interrupt:
high c.1
pause 2000
return