| ??? 02/19/02 13:57 Read: times |
#19945 - RE: 1 bit operation in C |
Bit instructions ONLY work on sfrs with address ending in 0 or 8 or memory locations 0x20 - 0x2f. '51 compilers that support this will have a data type (for Keil it is bit) that will locate a bit variable in this address space. For a byte where you want to access a single bit there should be a construct (again Keil: bdata) which will locate the byte in the aforementioned space. These are non-ANSI and may thus vary from compiler to compiler.
Have a BIT of fun, Erik |
| Topic | Author | Date |
| 1 bit operation in C | 01/01/70 00:00 | |
| RE: 1 bit operation in C | 01/01/70 00:00 | |
| RE: 1 bit operation in C | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Hosman | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Aman | 01/01/70 00:00 | |
| RE: 1 bit operation in C | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
| RE: 1 bit operation in C - Andy | 01/01/70 00:00 | |
RE: 1 bit operation in C - Andy | 01/01/70 00:00 |



