debug does not show real data

LEH

Member
symbol ADDR = b2
ADDR = $F8
debug
label:
if pinA.0 = 1 then
goto label
endif

Pin A.0 is high when program is downloaded. The debug window opens but ADDR is shown as 0 not F8. If I use simulate ADDR shows as F8. How do I get the program to run in real time and show the proper data in the debug window?
 

hippy

Technical Support
Staff member
The DEBUG command is run very early on in your program and executed only once. It could be that, after downloading the program, the program starts and the DEBUG command has executed before the debug window has opened. That then shows the zeroes which would be the expected default. With no further DEBUG commands the display never updates.

Perhaps move the DEBUG command to after the "label:" label, then it will be repeatedly executed when A.0 is high and the debug display should update.
 

Technical

Technical Support
Staff member
or simply add a pause at the start of the program to give the debug window in the software time to open after the program starts.
 
Top