5: BASIC Stamp Command Reference
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 77
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:
One or more of these icons indicates the item
applies only to the BS1, BS2, BS2e, BS2sx or BS2p,
respectively.
All instructions listed below exist on all versions of the BASIC Stamp,
except where noted.
BRANCHING
IF...THEN
Compare and conditionally branch.
BRANCH
Branch to address specified by offset.
GOTO
Branch to address.
GOSUB
Branch to subroutine at address.
RETURN
Return from subroutine.
RUN
Switch execution to another program page.
POLLRUN
Switch execution to another program page upon the
occurrence of a polled interrupt.
LOOPING
FOR...NEXT
Establish a FOR-NEXT loop.
EEPROM ACCESS
EEPROM
Store data in EEPROM before downloading PBASIC
program.
DATA
Store data in EEPROM before downloading PBASIC
program.
READ
Read EEPROM byte into variable.
WRITE
Write byte into EEPROM.
STORE Switch READ/WRITE access to different program
slot.
1
2
e
2
sx
2
p
2
p
2
1
e
2
sx
2
p
2
2
e
2
sx
2
p
2
p
2
Summary of Contents for BASIC Stamp 2e
Page 1: ...BASIC Stamp Programming Manual Version 2 0c...
Page 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Page 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...