Is there anyway to get a key without irq1

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
earlz

Is there anyway to get a key without irq1

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

Re:Is there anyway to get a key without irq1

Post by Dex4u »

Have you tryed something like this:

Code: Select all

xor   eax,eax
in     al,60h 
earlz

Re:Is there anyway to get a key without irq1

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

Re:Is there anyway to get a key without irq1

Post 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.
earlz

Re:Is there anyway to get a key without irq1

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