Defining video memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
St8ic

Defining video memory

Post 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?
hartyl

RE:Defining video memory

Post 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
Post Reply