How to map bits onto a RAM variable?
Q: I want to be able to access single bits in a byte, but if I try to define a bit variable using the absolute variable construct, e.g. static bit bitvar @ ((unsigned)&bytevar)*8+0; I get a compiler error. How can I do this? A: The short answer is “you can’t do this”. The absolute variable construct using @ requires an address known at compile time. The long (and more useful) answer will depend on what you’re actually trying to do.