Page 1 of 1

Defining video memory

Posted: Wed Mar 24, 2004 12:00 am
by St8ic
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?

RE:Defining video memory

Posted: Thu Mar 25, 2004 12:00 am
by hartyl
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