1 /** Tests for bit access in I/O space.
3 pin: 0, 1, 2, 3, 4, 5, 6, 7
9 #if (defined(__SDCC_pdk13) || defined(__SDCC_pdk14) || defined(__SDCC_pdk15) || defined(__SDCC_z80) || defined(__SDCC_z80n) || defined(__SDCC_z180) || defined(__SDCC_ez80_z80))
10 __sfr
__at(0x10) PORT
;
11 #elif defined(__SDCC_mcs51)
12 __sfr
__at(0x99) PORT
;
21 PORT
= (cnt
++ & 5) ? (PORT
| (1<<PIN
)) : (PORT
& ~(1<<PIN
));
26 PORT
= (cnt
& (1<<5)) ? (PORT
| (1<<PIN
)) : (PORT
& ~(1<<PIN
));
31 if (PORT
& (1 << PIN
))
36 if (!(PORT
& (1 << PIN
)))