Datasheet

Page 232· Applied Robotics with the SumoBot
ENDSELECT
DEBUG CR ' Carriage return for next line
PAUSE 200 ' Pause 0.2 seconds for reading.
RETURN
#ENDIF
Your Turn
The bulk of the commands that are added to the program when DEBUG_MODE is set to 1
are
DEBUG commands with strings of characters. The strings of characters take up a
considerable amounts of memory. You can compare how much program memory is
consumed by the diagnostic code as follows:
Set
DEBUG_MODE = 0.
Click the BASIC Stamp Editor's Run menu, and select Memory map.
The Memory Map you see should resemble Figure 5-3. Notice on the left that the blue
program codes are taking up less than half the BASIC Stamp's EEPROM.
Figure 5-3 Memory Map - DEBUG_MODE = 0
Close the Memory Map.
Set
DEBUG_MODE = 1
Blue program
code take less
than half the
EEPROM
EEPROM
window
control