Page 1 of 1
A crazy debuging idea...
Posted: Sat Nov 16, 2002 10:55 am
by Yoshy
Hi,
Okay I'm debuggin my Text driver so I need some thing else than text. I tought about the keyboard LEDs... But I don't know how to enable/disable the LEDs I've seen some examples but they all work under windows or DOS which isn't useful when your developing an OS...
I would like some code/link/advice that could work in c while i'm in pMode.
Thanks
Re:A crazy debuging idea...
Posted: Sat Nov 16, 2002 11:17 am
by Slasher
Look for specs doc for keyboards. there are commands that you write to the command port(0x64) to enable/disable LEDs and other things like RESET THE KEYBOARD
Re:A crazy debuging idea...
Posted: Sat Nov 16, 2002 11:41 am
by Curufir
Use one of the non-keyboard ascii characters and print directly to video memory. Something like a smiley or one of the windowing characters, anything that doesn't appear on the keyboard.
Curufir
Re:A crazy debuging idea...
Posted: Mon Nov 18, 2002 1:23 am
by Pype.Clicker
what i used for low-low-level debugging was to change the screen overscan color (only works on real hardware : no BOCHS allowed
for instance, it could make your screen's border become blue when you enter a specific function and move it to black when you're out of that function...
the other option is to develop your code in a simple UNIX program (that will fake the video area with an array in memory and have a poll-and-print loop of that array ..)
Re:A crazy debuging idea...
Posted: Wed Nov 20, 2002 10:36 am
by Tom
Why would you need something else than text to debug your text driver?
Unless your testing your putch to see if it prints things like '?' .
Re:A crazy debuging idea...
Posted: Wed Nov 20, 2002 6:40 pm
by Yoshy
Pype.Clicker wrote:
the other option is to develop your code in a simple UNIX program (that will fake the video area with an array in memory and have a poll-and-print loop of that array ..)
Hey that's a good idea! Thanks,
Re:A crazy debuging idea...
Posted: Wed Nov 20, 2002 6:51 pm
by Tom
If you need a %100 well tested working putch, I have one....if you wait for pk0.7 ( tonight in about 10 mins ) you'll have a printf with super-de-duper hex functions and all that special stuff....( for C/C++ )
Re:A crazy debuging idea...
Posted: Thu Nov 21, 2002 10:28 am
by ncsu121978
i would be interested in that putch function tom.....right now all mine handles is \t \n and a few other things
Re:A crazy debuging idea...
Posted: Thu Nov 21, 2002 10:39 am
by Tom
better wait till i release pk0.7.1...
Re:A crazy debuging idea...
Posted: Sat Nov 23, 2002 7:46 pm
by Tom
Actually...never mind...use my putch now...cancelled pk0.7.1 and full work on pk0.8