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
Rewriting library: Printf()
Re: Rewriting library: Printf()
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...)
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...)
-- Stu --