BeanieBots
Moderator
I'm after a neat solution to setting/resetting individual bits as part of an array.
The array will be 42*48 bits but the 48 can convieniently be broken down into 3 bytes.
For example:
b2 holds a RAM location
b3 holds the bit to be set
So if b2=4 and b3=6, is there a way I could set bit 6 of SFR RAM location 4 without resorting to a large if/then, select/case/ or branch arrangement.
The array will be 42*48 bits but the 48 can convieniently be broken down into 3 bytes.
For example:
b2 holds a RAM location
b3 holds the bit to be set
So if b2=4 and b3=6, is there a way I could set bit 6 of SFR RAM location 4 without resorting to a large if/then, select/case/ or branch arrangement.