Page 1 of 1
So much fun
Posted: Sat Oct 22, 2005 1:41 pm
by Martyn
Hello all
This stuff is so much fun!
After 6 months of doing the tuts and looking over source code I have made a simple os you know text on screen keyboard input upper case and lower, even got the keyboard lights to work.
but i cant seem to work out how to get varibels to show up in my printf ("Secs %d ",time) it just prints Secs %d.
Please be gental with me.
Thanks.
Re:So much fun
Posted: Sat Oct 22, 2005 1:43 pm
by HardEnough
check linux 0.0.1 or 1.0 for the unkown paramters
ur printf should be defined as void printf(*fmt, ...);
Re:So much fun
Posted: Sat Oct 22, 2005 5:32 pm
by Warrior
It is very fun
. Welcome to the OSDev community dude.
About the printf() thing, Chris Giese has a stripped down printf() on his website
http://my.execpc.com/~geezer/osd/design.htm
Re:So much fun
Posted: Sun Oct 23, 2005 6:43 am
by OZ
a nice tutorial on howto implement variable sized parameter lists can be found here:
http://codezen.org/newviridis/index.php?q=node/25
I'm sorry I can't tell you the name of the guy behind the whitepapers, but he's also in the board.
if you just want to implement simple output of variables - preferable integers you'll need.
- vaargs
- a function to convert from int to char*
- check whether there is a %d inside your output string - then take an int from vaargs list, convert it and insert it
Hope it helps.
btw: if you [the guy behind viridis] maybe read this - where have the other nice papers gone - I think recently there were some more of them?
Re:So much fun
Posted: Sun Oct 23, 2005 3:55 pm
by Martyn
Thank for the help but at the moment I think it's a bit over my head, need to take a step back and practice my programing.