Page 1 of 1

Is there anyway to get a key without irq1

Posted: Sat May 27, 2006 6:14 pm
by earlz
Well I have a bit of a predicament with this new thing I'm trying to implement which basically will reset the OS excluding tables but I'm having a bit of trouble

In my kbd irq I have it to where when you push F4 it will give a warning that if you hit it again it will reset. everything is great except for on the second F4 it can never be done because I havent completed the interrupt and I really really don't want to step through the whole stack so that it is sent to an empty task(don't quite have multitasking in yet either so..) so really is there a way to get a key from the keyboard without using irq1

Re:Is there anyway to get a key without irq1

Posted: Sat May 27, 2006 6:31 pm
by Dex4u
Have you tryed something like this:

Code: Select all

xor   eax,eax
in     al,60h 

Re:Is there anyway to get a key without irq1

Posted: Sat May 27, 2006 11:11 pm
by earlz
hmm didn't really think about that, so i guess just have a while(inport(..)) loop i guess

i think i tried that before when irq's weren't quite working for me and it didn't work

Re:Is there anyway to get a key without irq1

Posted: Sun May 28, 2006 9:01 am
by Kemp
It might possibly be a good idea to get the things in place to support this without having to use hacks. That means proper IRQ handlers and multitasking, a good idea is usually to get the basic kernel in place before attempting to add UI functionality to it.

Re:Is there anyway to get a key without irq1

Posted: Sun May 28, 2006 9:05 am
by earlz
yea that was what I was thinking but I thought it would be quick and then didn't really realize I'd have to hack the isr