Page 1 of 1

Real mode ISRs: specific keypress

Posted: Tue Dec 23, 2008 7:58 pm
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

Re: Real mode ISRs: specific keypress

Posted: Tue Dec 23, 2008 8:56 pm
by Alboin
Catch the keyboard interrupt and determine if your keystroke was invoked. If it was, proceed; otherwise, return.

Re: Real mode ISRs: specific keypress

Posted: Tue Dec 23, 2008 8:58 pm
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!!