Ah, that helps.
You haven't defined the Interrupts yet.
There needs to be a section that looks something like this...
Code:
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler INT_INT, _ToggleLED1, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
@ INT_ENABLE INT_INT ; enable external (INT0) interrupts
That section should be at the top of the program (but after the INCLUDE files), and don't jump over it. It needs to actually execute.
Then there also needs to be a handler routine...
Code:
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
TOGGLE LED1
@ INT_RETURN
HTH,
Bookmarks