BASIC stamp manual v2.2
BASIC Stamp Command Reference
Page 124 • BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com
Feature Categories New Items Description
Additional Commands
DEBUGIN,
DO...LOOP, EXIT,
ON. SELECT...CASE
Allows easier user input and program
control. See individual command
descriptions.
Enhanced Commands
IF...THEN,
GET, PUT,
READ, WRITE
Improves program control, and SPRAM and
EEPROM access. See individual command
descriptions.
Additional Directive PIN
Provides flexible, context-sensitive I/O pin
references; see page 99.
Conditional Compile
Directives
#DEFINE, #ERROR,
#IF...#THEN...#ELSE,
#SELECT...CASE
Encourages development of source code
that is compatible with multiple BASIC
Stamp models and helpful user hints; see
page 70.
Additional
Predefined Constants
CLRDN, CLREOL,
CRSRDN, CRSRLF,
CRSRRT, CRSRUP,
CRSRX, CRSRXY,
CRSRY, LF
Symbols for control characters supported by
the Debug Terminal. See Table 5.13 in the
DEBUG command description, page 168.
Syntax Enhancements
, and :
Any line can be continued to the next line
after the comma (,) character wherever
commas are normally used.
Colons are required on label declarations.
Table 5.1: PBASIC 2.5
Enhancements.
CATEGORICAL LISTING OF COMMANDS
This section lists all available PBASIC commands for all BASIC Stamp
models, grouped by category. Commands with PBASIC 2.5 enhanced
syntax options are marked with (*); commands that exist only in
PBASIC 2.5 are indicated with (
2.5
).
One or more of these icons indicates the item applies to
the BS1, BS2, BS2e, BS2sx, BS2p, BS2pe, or BS2px
respectively.
If an item applies to all of the models in the BS2 family,
this icon is used.
BRANCHING / PROGRAM CONTROL
BRANCH Jump to address specified by offset.
IF...THEN* Conditionally execute one or more blocks of code.
GOTO Jump to address.
GOSUB Jump to subroutine at address.
All
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2