EasyManua.ls Logo

Parallax BASIC Stamp II - Page 19

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 19
BASIC Stamp II
LOWNIB ‘low nibble of a word or byte
HIGHNIB ‘high nibble of a word or byte
NIB0 ‘nib0 of a word or byte
NIB1 ‘nib1 of a word or byte
NIB2 ‘nib2 of a word
NIB3 ‘nib3 of a word
LOWBIT ‘low bit of a word, byte, or nibble
HIGHBIT ‘high bit of a word, byte, or nibble
BIT0 ‘bit0 of a word, byte, or nibble
BIT1 ‘bit1 of a word, byte, or nibble
BIT2 ‘bit2 of a word, byte, or nibble
BIT3 ‘bit3 of a word, byte, or nibble
BIT4 ‘bit4 of a word or byte
BIT5 ‘bit5 of a word or byte
BIT6 ‘bit6 of a word or byte
BIT7 ‘bit7 of a word or byte
BIT8 ‘bit8 of a word
BIT9 ‘bit9 of a word
BIT10 ‘bit10 of a word
BIT11 ‘bit11 of a word
BIT12 ‘bit12 of a word
BIT13 ‘bit13 of a word
BIT14 ‘bit14 of a word
BIT15 ‘bit15 of a word
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: