Perhaps someone can help with the two
functions shown below.
The scenario is:
I desire to empty a hardware buffer,
and just throw away it's contents.
In both functions the requirement is
to read BtRdl1 until the hardware device at this address shows empty as in
(BtRdl1Stat & Rmpty)
Just placing an identifier, BtRdl1,
will cause it to be read.
Function 1 does not work
Function 2 does work
Why does function 1 not
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.7.4
#5003 (Feb 11 2008) (MINGW32)
volatile __xdata uchar at (Bt8370_Base + 0xA8)
volatile __xdata uchar at (Bt8370_Base + 0xA9) BtRdl1Stat;
while (BtRdl1Stat & Rmpty) BtRdl1;
while (BtRdl1Stat &
Kind Regards, Mike