|
From: Klaus F. <kla...@gm...> - 2003-07-14 15:35:01
|
Hello,
i'm having some trouble with the following code:
struct mbr_t {
unsigned char something[510];
unsigned int magic;
};
struct drive_t {
unsigned char (*read)(unsigned char, void xdata*, unsigned long,=20
unsigned char) reentrant;
unsigned char handle;
};
struct drive_t xdata *drives[4];
struct mbr_t xdata *mbrs[4];
void media_inserted(unsigned char di)
{
unsigned char i;
i =3D drives[di]->handle;
(*drives[di]->read)(i, mbrs[di], 0, 1);
if (mbrs[di]->magic !=3D 0xaa55)
return;
}
if i compile it with
sdcc -mds400 -c test.c
or: sdcc -mds390 -c test.c
i get this error:
test.c:23: error: FATAL Compiler Internal Error in file 'gen.c' line=20
number '1514' : aopPut got unsupported aop->type
Contact Author with source code
=20
SDCC : mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400 2.3.5 =
(Jul 12 2003) (UNIX)
=20
--=20
Die kostenlose Online Community - http://community.songshine.de/index.php=
?ref=3Dsualk
lieber ein Pinguin der l=E4uft, als ein Fenster, das h=E4ngt...
|