Run-Time Expressions - Parallax BASIC Stamp II Manual

Table of Contents

Advertisement

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
t2
DATA
t3
DATA
t4
DATA
start DATA

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
$BA1F
%111001111
99
"A"
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
wordvar.highbit
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 23
BASIC Stamp II
"Here's table 1...",0
"Here's table 2...",0
"Here's table 3...",0
"Here's table 4...",0
word t1, word t2, word t3, word t4
A label may be assigned a constant via CON.
Hex
Binary
Decimal
ASCII
Some variable.
Use modifiers to access sub-variables.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp II and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents