Re: [Sdcc-user] Bugs in sfr and bitfield at z80 port

2019-04-09 Thread Philipp Klaus Krause
Am 09.04.19 um 08:39 schrieb Klaus Brandl: > > thanks, i didn't found the right manual yet, and have not seen this > syntax anywhere. The current Zilog website still has the Z80 CPU User Manual pdf (Doc ID UM0080), last updated in 2016. Philipp signature.asc Description: OpenPGP digital signa

Re: [Sdcc-user] Bugs in sfr and bitfield at z80 port

2019-04-08 Thread Klaus Brandl
Am Montag, den 08.04.2019, 23:36 +0200 schrieb Philipp Klaus Krause: > Am 08.04.19 um 22:45 schrieb Klaus Brandl: > > Hi, > > > > i think i found two bugs in the z80 port: > > > > buggy.c: > > __sfr __banked __at 0xf500 SPI_PORT_IN; > > > > struct { > > unsigned char SDHC : 1; > > unsign

Re: [Sdcc-user] Bugs in sfr and bitfield at z80 port

2019-04-08 Thread Philipp Klaus Krause
Am 08.04.19 um 22:45 schrieb Klaus Brandl: > Hi, > > i think i found two bugs in the z80 port: > > buggy.c: > __sfr __banked __at 0xf500 SPI_PORT_IN; > > struct { > unsigned char SDHC : 1; > unsigned char FAT32 : 1; > } SDFlags; > > int main () { > SDFlags.SDHC = (SPI_PORT_IN

[Sdcc-user] Bugs in sfr and bitfield at z80 port

2019-04-08 Thread Klaus Brandl
Hi, i think i found two bugs in the z80 port: buggy.c: __sfr __banked __at 0xf500 SPI_PORT_IN; struct { unsigned char SDHC : 1; unsigned char FAT32 : 1; } SDFlags; int main () { SDFlags.SDHC = (SPI_PORT_IN & 0x40) ? 1 : 0; return(SDFlags.SDHC); } compiles to: