Article View: comp.os.msdos.programmer
Article #6487Re: Bypassing BIOS key interrupts...
From: Tom Almy
Date: Wed, 16 Dec 1992 17:07
Date: Wed, 16 Dec 1992 17:07
27 lines
1446 bytes
1446 bytes
In article <eball12.724465747@ursa> eball12@ursa.calvin.edu (Edward Ball) writes: >I've noticed that in some games (Star Control II, for example) multiple >key presses can be detected at the same time, on or off. I can only >assume they use the BIOS key scan codes for pressing and releasing keys. >My questions is, how do you bypass the standard keypress buffer (or >whatever it is called) and just read the scan codes without having to >worry about pulling such keypresses off the buffer or worrying about >repetition speed or anything like that? For any system but the original PC and PC/XT, there is a software int you can monitor. Link into int 15H, and check for AH=4FH (if not, jump to original handler). AL=key scan code (MSB is set for key release, clear for key press) Return with carry clear on keys you handle, return with carry set if you want the BIOS to handle the key. Note that because of typematic, there can be multiple press codes for each release code. -- Tom Almy toma@sail.labs.tek.com Standard Disclaimers Apply
Technical Details
Message-ID:
<13053@sail.LABS.TEK.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!sail!tomaReferences:
<eball12.724465747@ursa>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!sail!toma From: toma@sail.LABS.TEK.COM (Tom Almy) Newsgroups: comp.os.msdos.programmer Subject: Re: Bypassing BIOS key interrupts... Message-ID: <13053@sail.LABS.TEK.COM> Date: 16 Dec 92 17:07:08 GMT References: <eball12.724465747@ursa> Reply-To: toma@sail.labs.tek.com Organization: Tektronix, Inc., Beaverton, OR. Lines: 27