printf
Posted: Thu Aug 15, 2002 8:44 am
the basic functions work now (putc,gotoxy)
but printf does not work...
it does print an f without the if statement, but does not with it.
So the first character is not f....
where did those characters go?
but printf does not work...
Code: Select all
printf("fffff"); <- that's how I call the printf function
Code: Select all
void printf(char * string)
{
unsigned short *vidmem = (short*) 0xb8000;
int i=0;
if (string[0]=='f'){
vidmem[i] = 0x1F66;
}
}
So the first character is not f....
where did those characters go?