EasyManua.ls Logo

Parallax BASIC Stamp II - Run-Time Expressions

Default Icon
68 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 23
BASIC Stamp II
a DATA statement and the first thing after DATA is @, the new
pointer value is assigned to the symbol.
Defined data is spelled out, so to speak, with numbers and letters.
Defined data may be repeated at the byte or word level using (array).
Undefined data may be reserved by using (array) unpreceeded by a
value.
Note: DATA can contain references to DATA symbols:
t1 DATA “Here’s table 1...”,0
t2 DATA “Here’s table 2...”,0
t3 DATA “Here’s table 3...”,0
t4 DATA “Here’s table 4...”,0
start DATA word t1, word t2, word t3, word t4
Run-Time Expressions
Run-time expressions can contain constants, variables, operators, and
parentheses. They are resolved using 16-bit math.
Constants can be in several forms:
label A label may be assigned a constant via CON.
$BA1F Hex
%111001111 Binary
99 Decimal
“A” ASCII
Note: When more than one character is within quotes, they are sepa-
rated by the compiler as such: “DOG” becomes “D”,”O”,”G”.
“String”+$80 becomes: “S”,”t”,”r”,”i”,”n”,”g”+$80.
Variables can be accessed a number of ways:
somevar Some variable.
wordvar.highbit Use modifiers to access sub-variables.