Rewriting library: Printf()

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ricky Chilcott

Rewriting library: Printf()

Post 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
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Rewriting library: Printf()

Post 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...)
-- Stu --
Post Reply