Specifications

BASIC Stamp II
Page 256 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
Table I-1. Debug Modifiers
Modifier Effect Notes
ASC? Displays "variablename = 'character'" + carriage 1
return; where character is an ASCII character.
DEC {1..5} Decimal text, optionally fixed for 1 to 5 digits
SDEC {1..5} Signed decimal text, optionally fixed for 1 to 5 digits 1, 2
HEX {1..4} Hexadecimal text, optionally fixed for 1 to 4 digits 1
SHEX {1..4} Signed hex text, optionally fixed for 1 to 4 digits 1, 2
IHEX {1..4} Indicated hex text ($ prefix; e.g., $7A3), optionally 1
fixed for 1 to 4 digits
ISHEX {1..4} Indicated signed hex text, optionally fixed for 1 to 1, 2
4 digits
BIN {1..16} Binary text, optionally fixed for 1 to 16 digits 1
SBIN {1..16} Signed binary text, optionally fixed for 1 to 16 digits 1, 2
IBIN {1..16} Indicated binary text (% prefix; e.g., %10101100), 1, 2
optionally fixed for 1 to 16 digits
ISBIN {1..16} Indicated signed binary text, optionally fixed for 1 to 1, 2
16 digits
STR bytearray Display an ASCII string from bytearray until byte = 0.
STR bytearray\n Display an ASCII string consisting of n bytes from
bytearray.
REP byte\n Display an ASCII string consisting of byte repeated n
times (e.g., REP "X"\10 sends XXXXXXXXXX).
NOTES:
(1) Fixed-digit modifiers like DEC4 will pad text with leading 0s if necessary; e.g.,
DEC4 65 sends 0065. If a number is larger than the specified number of digits, the
leading digits will be dropped; e.g., DEC4 56422 sends 6422.
(2) Signed modifiers work under two’s complement rules, same as PBASIC2 math.
Value must be no less than a word variable in size.