Am 15.02.21 um 08:35 schrieb Vahid Bashiri: > It looks like __bit only works for 8951. Any attempt to extend it to > other architectures ? I am particularly interested in stm8. >
Due to the flat STM8 address space, __bit wasn't a priority for stm8. The bit instructions of the STM8 can access the whole address space, so |= and &= can use them on any memory location. On the other hand, in the 8051, only some memory locations can be accessed by bit instructions, so mcs51 has __bit and __sbit. Philipp _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user