BASIC stamp manual v2.2
DEBUGIN – BASIC Stamp Command Reference
Page 174 • BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com
Demo Program (DEBUGIN.bs2)
' DEBUGIN.bs2
' This program demonstrates the ability to accept user input from the
' Debug Terminal, and to accept numeric entry in any valid format.
' {$STAMP BS2}
' {$PBASIC 2.5}
myNum VAR Word
Main:
DO
DEBUG CLS, "Enter any number: " ' prompt user
DEBUGIN SNUM myNum ' retrieve number in any format
DEBUG CLS, ' display number in all formats
SDEC ? myNum,
SHEX ? myNum,
SBIN ? myNum
PAUSE 3000
LOOP ' do it again
END
All
2
NOTE: This example program can be
used with all BS2 models by changing
the $STAMP directive accordingly.