For VGA functions I write bytes directly to video memory. The problem is, when I define video memory in C like this:
byte *VGA = (byte *)0xA0000;
TCC freaks out saying 'declaration syntax error'. Why might this be?
Defining video memory
RE:Defining video memory
hm, it seems to be correct.
have you defined the byte-type? usually it's not.
either try using
typedef unsigned char byte;
or use
unsigned char *VGA=(unsigned char*)0xA0000;
what i also could imagine is, that you're using a 16bit-compiler, which freaks out when you give it a 32bit-value.
greets, hartyl
have you defined the byte-type? usually it's not.
either try using
typedef unsigned char byte;
or use
unsigned char *VGA=(unsigned char*)0xA0000;
what i also could imagine is, that you're using a 16bit-compiler, which freaks out when you give it a 32bit-value.
greets, hartyl