Noob spin questions
cthomas
Posts: 17
Hi All;
Two questions...
First, given OUTA[8] := (idx) where idx is a local variable, does OUTA[8] get assigned the value of the lowest bit of idx?
Second, and related;
if idx varies from 0 to 7 and is currently 6, does OUTA[8..10] := %idx assign values like so..
OUTA[8] gets 1
OUTA[9} gets 1
OUTA[10] gets 0
Or perhaps in the above case, does it work without using the %?
Sorry for the simple questions and thanks in advance for any answers. I'm not in a position to test this for a couple days and it's bugging me!
Craig
Two questions...
First, given OUTA[8] := (idx) where idx is a local variable, does OUTA[8] get assigned the value of the lowest bit of idx?
Second, and related;
if idx varies from 0 to 7 and is currently 6, does OUTA[8..10] := %idx assign values like so..
OUTA[8] gets 1
OUTA[9} gets 1
OUTA[10] gets 0
Or perhaps in the above case, does it work without using the %?
Sorry for the simple questions and thanks in advance for any answers. I'm not in a position to test this for a couple days and it's bugging me!
Craig
Comments
Appreciated.
Craig
Are you sure? I'd doubt that! I think you'd have to shift the second bit in this case. Or you have to use the boolean and instead!