I'd like to be able to set arbitrary bits in a byte under algorithmic control like this:
dim myByte as byte dim myBit as whatever_it_needs_to_be
myByte = somevalue myBit = some_bit_descriptor
Set myByte.myBit on or myByte.myBit = 1
This doesn't seem to work. Is there another way to accomplish the same thing?
Joe
See https://sourceforge.net/p/gcbasic/discussion/579125/thread/5dae04a7/#089f
Log in to post a comment.
I'd like to be able to set arbitrary bits in a byte under algorithmic control like this:
dim myByte as byte
dim myBit as whatever_it_needs_to_be
myByte = somevalue
myBit = some_bit_descriptor
Set myByte.myBit on
or
myByte.myBit = 1
This doesn't seem to work. Is there another way to accomplish the same thing?
Joe
See https://sourceforge.net/p/gcbasic/discussion/579125/thread/5dae04a7/#089f