Page 1 of 1

Test code

Posted: Sun Nov 30, 2003 12:00 am
by DrivingMeNuts
void app(void) {
int num;
char cha;
char *text_video = (char*)0xB8000;
char attrib = 0x00;
char *str="Kernel Loaded";
while(*str!=0)
{
*text_video = *str;
*text_video++;
*text_video = attrib;
*text_video++;
*str++;
}
}

RE:Test code

Posted: Mon Dec 01, 2003 12:00 am
by pete
void app(void) {
char *text_video = (char*)0xB8000;
char attrib = 0x07;
char *str="Kernel Loaded";
while(*str!=0)
{
*text_video = *str;
text_video++;
*text_video = attrib;
text_video++;
str++;
}
}

RE:Test code

Posted: Mon Dec 01, 2003 12:00 am
by df
cant you test it yourself instead of asking us to test it?