5: BASIC Stamp Command Reference – STORE
BASIC Stamp Programming Manual 2.0c
•
www.parallaxinc.com
•
Page 323
STORE
BS1 BS2 BS2e BS2sx
BS2p
STORE
ProgramSlot
Function
Designate a program slot for the READ/WRITE instructions to operate
upon.
•
ProgramSlot
is a variable/constant/expression (0 – 7) that specifies
the program slot to use for READ and WRITE instructions.
Explanation
STORE tells the BS2p 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, regardless of which program is running or which
program slot is active. 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 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.
Demo Program (STORE0.bsp)
' This program demonstrates the STORE command and how it affects the READ and WRITE
' commands. This program "STORE0.BSP" is intended to be downloaded into program
' slot 0. It is meant to work with STORE1.BSP and STORE2.BSP. Each program is very
' similar (they display the current Program Slot and Read/Write Slot numbers and the
' values contained in the first five EEPROM locations. Each program slot will have
' different data due to different DATA commands in each of the programs downloaded.
'{$STAMP BS2p, Store1.bsp, Store2.bsp} 'STAMP directive (specifies a BS2p)
DATA @0, 1, 2, 3, 4, 5
Idx VAR WORD
Value VAR BYTE
p
2
p
2
Содержание BASIC Stamp 2e
Страница 1: ...BASIC Stamp Programming Manual Version 2 0c...
Страница 30: ...Introduction to the BASIC Stamps Page 28 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 34: ...Quick Start Guide Page 32 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 90: ...BUTTON BASIC Stamp Command Reference Page 88 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 118: ...END BASIC Stamp Command Reference Page 116 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 128: ...FREQOUT BASIC Stamp Command Reference Page 126 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 196: ...NAP BASIC Stamp Command Reference Page 194 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 206: ...OWIN BASIC Stamp Command Reference Page 204 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 214: ...OWOUT BASIC Stamp Command Reference Page 212 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 216: ...PAUSE BASIC Stamp Command Reference Page 214 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 226: ...POLLMODE BASIC Stamp Command Reference Page 224 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 232: ...POLLOUT BASIC Stamp Command Reference Page 230 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 236: ...POLLRUN BASIC Stamp Command Reference Page 234 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 240: ...POLLWAIT BASIC Stamp Command Reference Page 238 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 262: ...RCTIME BASIC Stamp Command Reference Page 260 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 274: ...RUN BASIC Stamp Command Reference Page 272 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 310: ...SEROUT BASIC Stamp Command Reference Page 308 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 324: ...STOP BASIC Stamp Command Reference Page 322 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 340: ...ASCII Chart Page 338 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 342: ...Reserved Words Page 340 BASIC Stamp Programming Manual 2 0b www parallaxinc com...
Страница 346: ...Conversion Formatters Page 344 BASIC Stamp Programming Manual 2 0b www parallaxinc com...