BASIC stamp manual v2.2

DEBUGIN – BASIC Stamp Command Reference
Page 172 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
is exactly like:
' {$STAMP BS2}
SERIN 16, $4054, [DEC1 myNum]
in terms of function on a BS2. The DEBUGIN line actually takes less
program space, and is obviously easier to type. Example:
' {$PBASIC 2.5}
myNum VAR Nib
DEBUG CLS, "Enter a number (1 - 5)? --> "
DEBUGIN DEC1 myNum
IF ((myNum >= 1) AND (myNum <= 5)) THEN
DEBUG CLS, "You entered: ", DEC1 myNum
ELSE
DEBUG CLS, "Sorry, number out of range"
ENDIF
END
The tables below list all the special formatters and conversion formatters
available to the DEBUGIN command. See the SERIN instruction for
additional information and examples of their use.
Special Formatter Action
STR ByteArray \L {\E}
Input a character string of length L into an array. If specified, an
end character E causes the string input to end before reaching
length L. Remaining bytes are filled with 0s (zeros).
WAIT (Value)
Wait for a sequence of bytes specified by value. Value can be
numbers separated by commas or quoted text (ex: 65, 66, 67 or
“ABC”). The WAIT formatter is limited to a maximum of six
characters.
WAITSTR ByteArray {\L}
Wait for a sequence of bytes matching a string stored in an array
variable, optionally limited to L characters. If the optional L
argument is left off, the end of the array-string must be marked
by a byte containing a zero (0).
SKIP Length Ignore Length bytes of characters.
Table 5.15: DEBUGIN Special
Formatters.
There is an additional special formatter for the BS2p, BS2pe, and BS2px:
Special Formatter Action
SPSTR L
Input a character string of length L bytes (up to 126) into Scratch
Pad RAM, starting at location 0. Use GET to retrieve the
characters.
Table 5.16: DEBUGIN Additional
Special Formatter for the BS2p,
BS2pe, and BS2px.