INC Iterations for Debug
I am trying to look at this through the debug window and I put this into my code but it gives me a error when compiling and says variable expected. I have looked in the help file and the SX Key and can't find anything. Can someone help on this?
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Start:
IF ctrl0 = 0 THEN
Led0 = ~Led0
ctrl0 = TLed0
ELSE
DEC ctrl0
ENDIF
IF ctrl1 = 0 THEN
Led1 = ~Led1
ctrl1 = TLed1
ELSE
DEC ctrl1
ENDIF
INC iterations
WATCH ctrl0, 8, udec
WATCH ctrl1, 8, udec
WATCH iterations, 8, udec
BREAK
GOTO Start
Thanks,
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments
Is that your whole program? Do you define iterations as variable somewhere at the beginning of your program?
Ok got it my mistake!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔