5: BASIC Stamp Command Reference
This chapter provides detail on all the available PBASIC instructions for
the BS1, BS2, BS2e, BS2sx and BS2p. The following icons will appear to
indicate where there are differences between versions of the BASIC Stamp:
2
1
2
e
sx
All instructions listed below exist on all versions of the BASIC Stamp,
except where noted.
BRANCHING
IF...THEN
BRANCH
GOTO
GOSUB
RETURN
2
2
2
RUN
e
sx
p
2
POLLRUN
p
LOOPING
FOR...NEXT
EEPROM ACCESS
1
EEPROM
2
2
2
2
DATA
e
sx
p
READ
WRITE
2
STORE
p
2
2
One or more of these icons indicates the item
p
applies only to the BS1, BS2, BS2e, BS2sx or BS2p,
respectively.
Compare and conditionally branch.
Branch to address specified by offset.
Branch to address.
Branch to subroutine at address.
Return from subroutine.
Switch execution to another program page.
Switch execution to another program page upon the
occurrence of a polled interrupt.
Establish a FOR-NEXT loop.
Store data in EEPROM before downloading PBASIC
program.
Store data in EEPROM before downloading PBASIC
program.
Read EEPROM byte into variable.
Write byte into EEPROM.
Switch READ/WRITE access to different program
slot.
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 77
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?