??? 02/03/09 13:07 Read: times |
#161991 - Note that ^ also represents xor Responding to: ???'s previous message |
Two things.
The processor instruction set is limited with regards to indexing. Look at the instructions for accessing the bit variables and you'll notice that there isn't the required addressing mode available. Another thing: The a^b writing is an extension in Keil to specify a bit variable. But ^ is also the xor operation from standard c. so var1 ^ var2 will be var1 xor var2. You don't get a compiler error since this is valid C code, but you do not get the result you expect. |
Topic | Author | Date |
C51 compiler - Writing to a bit, using an index | 01/01/70 00:00 | |
Note that ^ also represents xor | 01/01/70 00:00 | |
Ouch!!! | 01/01/70 00:00 | |
Is there a way to use a pointer to access a bit | 01/01/70 00:00 | |
Just use plain C. | 01/01/70 00:00 | |
Just use plain C![]() | 01/01/70 00:00 |