Specifications

BASIC Stamp II
Page 230 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
table1 data 13,26,117,0,19,56 ‘ Place bytes into EEPROM.
table2 data (20) ‘ Move pointer ahead by 20.
The value in parentheses tells Data to move its pointer, but not to store
anything in those bytes. The bytes at the addresses starting at table2
could therefore contain leftover data from previous programs. If that’s
not acceptable, you can tell Data to fill those bytes up with a particular
value:
table2 data 0(20) ‘ Fill 20 bytes with 0s.
The previous contents of those 20 EEPROM bytes will be overwritten
with 0s.
If you are writing programs that store data in EEPROM at runtime,
this is an important concept: EEPROM is not overwritten during
programming unless it is (1) needed for program storage, or (2) filled
by a Data directive specifying data to be written. A directive like Data
(20) does not change the data stored in the corresponding EEPROM
locations.