A crazy debuging idea...
A crazy debuging idea...
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
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...
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...
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
Curufir
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:A crazy debuging idea...
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 ..)
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...
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 '?' .
Unless your testing your putch to see if it prints things like '?' .
Re:A crazy debuging idea...
Hey that's a good idea! Thanks,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 ..)
Re:A crazy debuging idea...
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...
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...
Actually...never mind...use my putch now...cancelled pk0.7.1 and full work on pk0.8