DEBUG CRSRX problem
bluejay
Posts: 131
in BASIC Stamp
DEBUG CRSRX is command to move cursor to specified column. (must be followed by byte value) .Could someone give me an example using some byte value? Thanks
Comments
The DEBUG command starts of page 159 of the BASIC Stamp Manual but I don't see an example that uses CRSRX.
https://www.parallax.com/sites/default/files/downloads/27218-Web-BASICStampManual-v2.2.pdf
I got lucky and found an example on page 202 of "Robotics with the BOE-Bot".
https://www.parallax.com/sites/default/files/downloads/28125-Robotics-With-The-Boe-Bot-v3.0.pdf
The CRSRX formatter positions the cursor a certain number of spaces to the right of the
Debug Terminal’s left margin. For example, DEBUG HOME, CRSRX 8 sends the cursor to
the Debug Terminal’s top-left character position, then it moves the cursor eight spaces to
the right.
When I run the program an error message occurs. "expected a binary operator or ')' "
' {$STAMP BS2}
' {$PBASIC 2.5}
'firefly5
led PIN 7
counter VAR Word
DO
FOR counter = 0 TO 800 STEP 5
PULSOUT led, counter
DEBUG ? counter
PAUSE 10
NEXT
FOR counter = 800 TO 0 STEP 5
DEBUG CRSRX 8 'move cursor to column
PAUSE 1000
PULSOUT led, counter
DEBUG ? counter
PAUSE 10
NEXT
LOOP
The BoeBot docs show a comma between the CRSRX and x-value.