From: Simon Hosie <Simon.Hosie@co...> - 2002-09-12 00:31:29
Two questions about the following source (for an 8051 derivative):
struct EECON_t /* Incorrect order, but ignore that today. */
unsigned EEPL : 4;
unsigned : 2;
unsigned EEE : 1;
unsigned EEBUSY : 1;
struct EECON_t at 0xD2 EECON;
(*(struct EECON_t data *)0x32).EEE =3D 1;
EECON.EEE =3D 1;
1. The code generated is kind of underdeveloped. Can it all be fixed =
with the peephole optimiser, or should it be compiled differently, or am =
I expected to use different code?
2. The addressing mode is relative, which means that it won't work for =
SFRs anyway. How do I work around that?