Specifications

Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 381
C
SYMBOL CONVERSION: BS1 R BS2
1.Remove the ‘SYMBOL’ directive from variable or constant decla-
rations.
2.On all variable declarations, replace the predefined register name,
to the right of the ‘=’, with the corresponding variable type or reg-
ister name according to the following table:
BS1 to BS2 Register Allocation Conversion
Stamp I Register Name Stamp II Variable Type / Register Name
PORT NO EQUIVALENT*
PINS or PIN0..PIN7 INS / OUTS or IN0..IN7 / OUT0..OUT7**
DIRS or DIR0..DIR7 DIRS or DIR0..DIR7
W0..W6 WORD
B0..B13 BYTE
BIT0..BIT15 BIT
* The PORT control register has been split into three registers, INS, OUTS and DIRS,
on the Stamp II. There is no predefined name representing all registers as a group as
in the Stamp I. Additional symbol and/or program structure and logic changes are
necessary to access all three registers properly.
** The Stamp I PINS register has been split into two registers, INS and OUTS, in the
Stamp II. Each register now has a specific task, input or output, rather than a dual
task, both input and output, as in the Stamp I. If the Stamp I program used the
symbol assigned to PINS for both input and output, an additional symbol is neces-
sary to access both functions. This may also require further changes in program
structure and logic.
1. On all variable declarations, replace the equal sign, ‘=’, with ‘VAR’.
2. On all constant declarations, replace the equal sign, ‘=’, with ‘CON’.
VARIABLE OR CONSTANT CONVERSION: BS1 Q BS2
1.Insert the ‘SYMBOL’ directive before the variable’s name or
constant’s name in the declaration.
2.On all variable declarations, replace the variable type or register
name, to the right of the ‘=’, with the corresponding, predefined
register name according to the following table: