A crazy debuging idea...

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
Yoshy

A crazy debuging idea...

Post 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
Slasher

Re:A crazy debuging idea...

Post 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 :)
Curufir

Re:A crazy debuging idea...

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:A crazy debuging idea...

Post 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 ..)
Tom

Re:A crazy debuging idea...

Post 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 '?' .
Yoshy

Re:A crazy debuging idea...

Post 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,
Tom

Re:A crazy debuging idea...

Post 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++ )
ncsu121978

Re:A crazy debuging idea...

Post by ncsu121978 »

i would be interested in that putch function tom.....right now all mine handles is \t \n and a few other things
Tom

Re:A crazy debuging idea...

Post by Tom »

better wait till i release pk0.7.1...
Tom

Re:A crazy debuging idea...

Post by Tom »

Actually...never mind...use my putch now...cancelled pk0.7.1 and full work on pk0.8
Post Reply