BASIC stamp manual v2.2
5: BASIC Stamp Command Reference – STORE
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 449
STORE
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px
STORE ProgramSlot
Function
Designate a program slot for the READ/WRITE instructions to operate
upon.
• ProgramSlot is a variable/constant/expression (0 – 7 on BS2p and
BS2px, 0-15 on BS2pe) that specifies the program slot to use for
READ and WRITE instructions.
Quick Facts
Table 5.121: STORE Quick
Facts.
BS2p and BS2px BS2pe
Program Slot
Range
0 —7 0 —15
Related
Commands
READ and WRITE
Explanation
STORE tells the BS2p, BS2pe, and BS2px which program slot to use when a
READ or WRITE instruction is executed. The STORE command only
affects the READ and WRITE instructions.
The STORE command allows a program to access all EEPROM locations
that exist on the BS2p, BS2pe, and BS2px regardless of which program is
running. The READ and WRITE commands can only access locations 0 to
2047 within a single program slot. The STORE command switches the
program slot that the READ and WRITE commands operate on.
The default program slot that the READ and WRITE instructions operate
on is that of the currently running program. The STORE command can be
used to temporarily change this, to any program slot. The change will
remain in effect until another STORE command is issued, or until another
program slot is executed.