# Reserved Words

Here are complete listings of the reserved words for PBASIC 1.0, PBASIC 2.0, and PBASIC 2.5. The reserved word lists have been organized into 5 tables, because it varies with each BASIC Stamp model and version of PBASIC.

## BASIC Stamp 1

The table below shows the reserved words for the BASIC Stamp 1, using the required PBASIC 1.0.

BS1
AND | GOSUB | N2400 | PIN0..PIN7 | SOUND
B0..B13 | GOTO | NAP | PINS | STEP
BIT0..BIT15 | HIGH | NEXT | PORT | SYMBOL
BRANCH | IF | ON300 | POT | T300
BSAVE | INPUT | ON600 | PULSIN | T600
BUTTON | LET | ON1200 | PULSOUT | T1200
CLS | LOOKDOWN | ON2400 | PWM | T2400
CR | LOOKUP | OR | RANDOM | THEN
DEBUG | LOW | OT300 | READ | TO
DIR0..DIR7 | MAX | OT600 | RETURN | TOGGLE
DIRS | MIN | OT1200 | REVERSE | W0..W6
EEPROM | N300 | OT2400 | SERIN | WRITE
END | N600 | OUTPUT | SEROUT |
FOR | N1200 | PAUSE | SLEEP |

## All BASIC Stamp 2 models

The table below lists the reserved words common to all BS2 models, including those for PBASIC 2.0 and PBASIC 2.5. Words that are only reserved when using PBASIC 2.5 are marked with (2.5).

All BS2 Models
#CASE2.5 | CRSRX2.5 | INC | PULSIN
#DEFINE2.5 | CRSRXY2.5 | IND | PULSOUT
#ELSE2.5 | CRSRY2.5 | INH | PWM
#ENDIF2.5 | DATA | INL | RANDOM
#ENDSELECT2.5 | DCD | INPUT | RCTIME
#ERROR2.5 | DEBUG | INS | READ
#IF2.5 | DEBUGIN2.5 | ISBIN | REP
#SELECT2.5 | DEC | ISBIN1...ISBIN16 | RETURN
#THEN2.5 | DEC1...DEC5 | ISHEX | REV
$PBASIC | DIG | ISHEX1...ISHEX4 | REVERSE
$PORT | DIM | LF2.5 | SBIN
$STAMP | DIR0...DIR15 | LIGHTSON | SBIN1...SBIN16
ABS | DIRA | LOOKDOWN | SDEC
AND | DIRB | LOOKUP | SDEC1...SDEC5
ASC | DIRC | LOOP2.5 | SELECT2.5
ATN | DIRD | LOW | SERIN
B0...B25 | DIRH | LOWBIT | SEROUT
BELL | DIRL | LOWBYTE | SHEX
BIN | DIRS | LOWNIB | SHEX1...SHEX4
BIN1...BIN16 | DO2.5 | LSBFIRST | SHIFTIN
BIT | DTMFOUT | LSBPOST | SHIFTOUT
BIT0...BIT15 | ELSE2.5 | LSBPRE | SIN
BKSP | ELSEIF2.5 | MAX | SKIP
BRANCH | END | MIN | SLEEP
BRIGHT | ENDIF2.5 | MSBFIRST | SNUM
BS1 | ENDSELECT2.5 | MSBPOST | SQR
BS2 | EXIT2.5 | MSBPRE | STEP
BS2E | FOR | NAP | STOP
BS2P | FREQOUT | NCD | STR
BS2PE | GOSUB | NEXT | TAB
BS2SX | GOTO | NIB | THEN
BUTTON | HEX | NIB0...NIB3 | TO
BYTE | HEX1...HEX4 | NOT | TOGGLE
BYTE0 | HIGH | NUM | UNITOFF
BYTE1 | HIGHBIT | ON2.5 | UNITON
CASE2.5 | HIGHBYTE | OR | UNITSOFF
CLRDN2.5 | HIGHNIB | OUT0...OUT15 | UNTIL2.5
CLREOL2.5 | HOME | OUTA | VAR
CLS | HYP | OUTB | W0...W12
CON | IBIN | OUTC | WAIT
COS | IBIN1...IBIN16 | OUTD | WAITSTR
COUNT | IF | OUTH | WHILE2.5
CR | IHEX | OUTL | WORD
CRSRDN2.5 | IHEX1...IHEX4 | OUPUT | WRITE
CRSRLF2.5 | IN0...IN15 | OUTS | XOR
CRSRRT2.5 | INA | PAUSE | XOUT
CRSRUP2.5 | INB | PIN2.5 |

## BS2e and BS2sx

The BS2e and BS2sx have all the reserved words shown in the All BASIC Stamp 2 Modules table, above, plus those shown in the table below. These additional words are reserved in both PBASIC 2.0 and PBASIC 2.5.

BS2e and BS2sx
GET | PUT | RUN

## BS2p and BS2pe

The BS2p and BS2pe have all the reserved words shown in the All BASIC Stamp 2 Modules table, above, plus those shown in the table below. These additional words are reserved in both PBASIC 2.0 and PBASIC 2.5.

BS2p and BS2pe
AUXIO | LCDCMD | OWOUT | POLLWAIT
GET | LCDIN | POLLIN | PUT
I2CIN | LCDOUT | POLLMODE | RUN
I2COUT | MAINIO | POLLOUT | SPSTR
IOTERM | OWIN | POLLRUN | STORE

## BS2px

The BS2px has all the reserved words shown in the All BASIC Stamp 2 Modules table, above, plus those shown in the table below. These additional words are reserved in both PBASIC 2.0 and PBASIC 2.5.

BS2px
AUXIO | IOTERM | POLLIN | RUN
COMPARE | LCDCMD | POLLMODE | SCHMITT
CONFIGPIN | LCDIN | POLLOUT | SPSTR
DIRECTION | LCDOUT | POLLRUN | STORE
GET | MAINIO | POLLWAIT | THRESHOLD
I2CIN | OWIN | PULLUP |
I2COUT | OWOUT | PUT |

Go to Welcome page

BASIC Stamp Help Version 2.5.4

Copyright © Parallax Inc.

8/8/2012