Real mode ISRs: specific keypress

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
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Real mode ISRs: specific keypress

Post by Troy Martin »

Sorry for the noobish question, but when I'm in real mode, can I use an ISR to fire off whenever a specific key combo is pressed, eg. Ctrl+Escape?

Thanks,
Troy
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: Real mode ISRs: specific keypress

Post by Alboin »

Catch the keyboard interrupt and determine if your keystroke was invoked. If it was, proceed; otherwise, return.
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Real mode ISRs: specific keypress

Post by Troy Martin »

Alboin wrote:Catch the keyboard interrupt and determine if your keystroke was invoked. If it was, proceed; otherwise, return.
Thanks, I tried to use the Ctrl+Break handler, and the jumping to another segment worked, but after that it would freeze up.

Now I'm racing against a spambot, those buggers are fast!

EDIT: Whoa, didn't see a mod in the list, they're evil and quick!!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply