Setup: POLLMODE 0 ' clear and disable polling POLLIN 4,0 ' interrupt when pin 4 is low POLLOUT 0,1 ' make pin 0 high on interrupt POLLMODE 2 ' activate polled-outputs Loop: DEBUG "Waiting for interrupt",CR PAUSE 100 GOTO Loop