BASIC stamp manual v2.2

5: BASIC Stamp Command Reference
BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com Page 125
ON
2.5
Jump to address or subroutine specified by an offset.
RETURN Return from subroutine.
RUN Switch execution to another program slot.
POLLRUN Switch execution to another program page upon the
occurrence of a polled interrupt.
SELECT
…CASE
2.5
Evaluate expression and conditionally execute a
block of code based on comparison to multiple
conditions.
STOP Halt program execution until BASIC Stamp is reset.
L
OOPING STRUCTURES
DO…LOOP
2.5
Execute code block repetitively, with optional,
conditional exit.
EXIT
2.5
Terminate execution of a looping code block
(DO...LOOP or FOR...NEXT).
FOR...NEXT Execute code block repetitively, a finite number of
times using a counter.
EEPROM ACCESS
EEPROM Store data in EEPROM during program download.
DATA Store data in EEPROM during program download.
READ* Read EEPROM value into variable.
WRITE* Write value into EEPROM.
STORE Switch READ/WRITE access to different program
slot.
RAM ACCESS
GET* Read Scratch Pad RAM value into variable.
PUT* Write value into Scratch Pad RAM.
All
2
All
2
All
2
All
2
All
2
1
All
2
1
A
ll
2
1
A
ll
2
1
A
ll
2
1
A
ll
2