Problems withing printing text (PMODE)
Posted: Wed Apr 20, 2005 12:38 pm
Hi 
Well basically, if I make a the video memory variable global (0xb8000) It wont print anything to the screen, whereas, If I put the variable inside the function that has to be printed, it works fine. Any idea? or any other info needed?
Heres the Print Function:
Used from the barebones tutorial. Thanks.
Well basically, if I make a the video memory variable global (0xb8000) It wont print anything to the screen, whereas, If I put the variable inside the function that has to be printed, it works fine. Any idea? or any other info needed?
Heres the Print Function:
Code: Select all
void k_clear() // clear the entire text screen
{
char *vidmem = (char *)0xb8000;
unsigned int i=0;
while(i < (80*25*2))
{
vidmem[i]=' ';
i++;
vidmem[i]=0x07;
i++;
};
};