Specifications
BASIC Stamp I and Stamp II Conversions
Page 392 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
DATA
BASIC STAMP I
EEPROM {location,}(data{,data...})
• LOCATION is in the range 0..255.
• DATA is a constant in the range 0..255. No variables are allowed.
BASIC STAMP II
{pointer} DATA {@location,} {WORD} {data}{(size)} {, { WORD} {data}{(size)}...}
• POINTER is an optional undefined constant name or a bit, nibble,
byte or word variable which is assigned the value of the first
memory location in which data is written.
• @LOCATION is an optional constant, expression or a bit, nibble,
byte or word variable which designates the first memory location
in which data is to be written.
• WORD is an optional switch which causes DATA to be stored as
two separate bytes in memory.
• DATA is an optional constant or expression to be written to memory.
• SIZE is an optional constant or expression which designates the
number of bytes of defined or undefined data to write/reserve in
memory. If DATA is not specified then undefined data space is
reserved and if DATA is specified then SIZE bytes of data equal to
DATA are written to memory.
CONVERSION: BS1 R BS2
1.Replace the EEPROM directive with the DATA directive.
2.If LOCATION is specified, insert an at sign, ‘@’, immediately
before it.
3.Remove the open and close parentheses, ‘(‘ and ‘)’.
• The POINTER constant and WORD and (SIZE) directives may be
used for added flexibility.










