The following does not compile under 7.1.0.3
'--------------------------------------
encodeCountL var byte
encodeCountR var byte
Oninterrupt IRQ2INT, countLeftWheel
oninterrupt IRQ3INT, countRightWheel
OnInterrupt IRQ1INT, donothing
enable IRQ2INT
enable IRQ3INT
main:
goto main
'oninterrupt IRQ2INT, countRightWheel
'---------------------------------------
countLeftWheel:
' disable IRQ2INT
encodeCountL = encodeCountL + 1
resume
countRightWheel:
' disable IRQ3INT
encodeCountR = encodeCountR + 1
resume
donothing:
resume