Right Shift operator
traction
Posts: 2
The example on page 72 of the basic stamp manual version 2 for the right shift operator is:
'· {$stamp BS2}
value· var word
ldx var byte
value = %111111111111111
for ldx = 1 to 16
· debug bin ? value >> ldx
next
This works correctly. Now the problem:
If·I make the statement:
value >> 3··
or, say
value >> ldx
I get a compilation error, stating that an = was expected after the variable "value".
Please help! Thanks
·
'· {$stamp BS2}
value· var word
ldx var byte
value = %111111111111111
for ldx = 1 to 16
· debug bin ? value >> ldx
next
This works correctly. Now the problem:
If·I make the statement:
value >> 3··
or, say
value >> ldx
I get a compilation error, stating that an = was expected after the variable "value".
Please help! Thanks
·
Comments
Jeff T.
·