traction
01-18-2007, 01:46 AM
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
ˇ