LOWNIB
HIGHNIB
NIB0
NIB1
NIB2
NIB3
LOWBIT
HIGHBIT
BIT0
BIT1
BIT2
BIT3
BIT4
BIT5
BIT6
BIT7
BIT8
BIT9
BIT10
BIT11
BIT12
BIT13
BIT14
BIT15
In summary, to declare variables, VAR statements are used. VAR
statements either declare unique variables or variables-within-variables
and alias-variables.
For defining unique variables:
symbol
VAR size (array)
- symbol is a unique name for a variable
- size is either WORD, BYTE, NIB, or BIT
- (array) is an optional expression which declares an array size
For defining variables-within-variables or alias-variables:
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 19
BASIC Stamp II
'low nibble of a word or byte
'high nibble of a word or byte
'nib0 of a word or byte
'nib1 of a word or byte
'nib2 of a word
'nib3 of a word
'low bit of a word, byte, or nibble
'high bit of a word, byte, or nibble
'bit0 of a word, byte, or nibble
'bit1 of a word, byte, or nibble
'bit2 of a word, byte, or nibble
'bit3 of a word, byte, or nibble
'bit4 of a word or byte
'bit5 of a word or byte
'bit6 of a word or byte
'bit7 of a word or byte
'bit8 of a word
'bit9 of a word
'bit10 of a word
'bit11 of a word
'bit12 of a word
'bit13 of a word
'bit14 of a word
'bit15 of a word
Need help?
Do you have a question about the BASIC Stamp II and is the answer not in the manual?