Page 1 of 1

Rewriting library: Printf()

Posted: Thu Aug 09, 2001 4:56 pm
by Ricky Chilcott
    I was looking at http://www.mega-tokyo.com/os/os-faq-con ... #text_mode and it seems to me that i could use this call to make a new printf() function that will work on any and all OS's (especially MY OS)?  
    Is this true?  
    I would think that i could write to 0xB8000 (color monitor) or to 0xB0000 (monochrome monitor) and possition the cursor where needed.

~Chilly

Re: Rewriting library: Printf()

Posted: Thu Aug 09, 2001 9:53 pm
by df
of coruse you can and every os coder to date has done it this way... check any pmode os source...

ftp://ftp.mega-tokyo.com/pub/my_stuff/queeg.zip

check out src\bootp\screen.c

its all in there. page flipping for multiple consoles, cursor movement, etc. (its old and stuffy source, but you can see it working...)