Hey, can anyone help me understand what the structure of VideoRam is and how to use it? I need to implement some GUI in C and I want to access the VideoRam directly using those far poiners????
It will be a lot easier if I can understand what this function does?
void Text( int col, int row, char *text, char color )
{
char far *pV;
int i,len;
pV=(char far*) 0xb8000000L;
pV+=row*160+col*2;
len =strlen(text);
for( ; *text; pV += 2){
*pV = *text++;
}
pV=(char far*) 0xb8000000L;
pV+=row*160+col*2+1;
for( i=0; i<len; i++, pV += 2)
*pV = color;
}
10x a lot