I think Steve meant to clear the flag before the GOSUB TEST, not before the ON INTERRUPT GOTO.
It GOSUB's from an area that is DISABLEd to one that is ENABLED.
If the flag is set, it will jump to the ISR.
It may jump, even if it's not set.
The ISR should verify that the flag is set before doing anything.
Bookmarks