; Set timer0 so that it occurs frequently during simulation
SETTIMER t1s_4
timer=65534
#Picaxe 20X2
#Terminal 9600
Gosub Interrupt_Enable
Do
Pause 10
Loop
Interrupt:
SerTxd( "Interrupt = ", #pinsC, CR, LF )
Do : Loop until pinsC = %00000000
Interrupt_Enable:
SetInt Or %11111111, %11111111, C
Return
That's not an uncommon problem. It can be easy to lose a digit here or there, and it's not always easy to spot.I think the problem was i was missing a digit in the setinit input, mask line
; 76543210
Symbol SETINT_MASK = %10101010
Symbol SETINT_MATCH = %10101010
#Picaxe 20X2
#Terminal 9600
; 76543210
Symbol SETINT_MASK = %10101010
Symbol SETINT_MATCH = %10101010
Gosub Interrupt_Enable
Do
Pause 10
Loop
Interrupt:
SerTxd( "Interrupt = ", #pinsC, CR, LF )
Do
b0 = pinsC & SETINT_MASK
Loop until b0 = 0
Interrupt_Enable:
SetInt Or SETINT_MATCH, SETINT_MASK, C
Return