Window variable modifier
philipad23
Posts: 44
HI all!,
I am trying to get as a variable the first 3 nibbles of a word but i dont know how to write the variable modifier.
I get the last nibbles like this:
a VAR word
b VAR a.LOWNIB
but how I get the other three?
I thought it was
a VAR word
b VAR a.LOWNIB
c VAR c.NIB1...3······ but this dont seem to work
anyone can help me?.....
·
I am trying to get as a variable the first 3 nibbles of a word but i dont know how to write the variable modifier.
I get the last nibbles like this:
a VAR word
b VAR a.LOWNIB
but how I get the other three?
I thought it was
a VAR word
b VAR a.LOWNIB
c VAR c.NIB1...3······ but this dont seem to work
anyone can help me?.....
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
· bVar = aVar & $0FFF
There is no 12-bit variable type, so bVar must be a Word as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks anyway!
· bVar = aVar >> 4
Again, aVar is not modified by this process.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
thanks