Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!osu-cis!sppy00!jmv From: jmv@sppy00.UUCP (Jim Vickroy) Newsgroups: comp.sys.ibm.pc Subject: Re: Clearing the keyboard buffer Keywords: MSDOS, IBM PC (compatible), KEYBOARD BUFFEER Message-ID: <69@sppy00.UUCP> Date: 15 Mar 89 00:30:32 GMT References: <1636@aucs.UUCP> Reply-To: jmv@sppy00.UUCP (Jim Vickroy) Distribution: na Organization: Online Computer Library Center, Dublin, Ohio. Lines: 42 In article <1636@aucs.UUCP> 840369k@aucs.UUCP (Elric Kinslayer) writes: =>get "queued" into the keyboard buffer. What's a quick and easy way =>(assembly , turbo-pascal, or just poking memory) to clear the =>keyboard? Net people with memory maps, any ideas? => I'm not sure this is neither quick nor easy but here goes: I am referencing the IBM Hardware Technical Reference: System BIOS (version 2.02) Set up a segment at 40H and setup your own BUFFER_HEAD and BUFFER_TAIL at offset 1AH and 1CH Setup your own BUFFER_START and BUFFER_END at offset 80H and 82H ; ; Reset Keyboard ; MOV AX,BUFFER_START MOV BUFFER_HEAD,AX There is an interrupt function to reset the extended keyboard, however it escapes me at the moment (I'm responding from home and won't be in the office for a week). If no one responds by the time I return, I'll post the method. I do remember I did it in C. Good luck. jim -- !==================================================================!=========! ! Jim Vickroy | cbosgd!osu-cis!sppy00!jmv !/././././! ! Online Computer Library Center, Inc. |---------------------------!././././.! ! Dublin, Ohio 43017 | jmv@sppy00 !/././././! !------------------------------------------------------------------!././././.! ! "That voodoo stuff don't do nothin' for me" -jrr !/././././! !==================================================================!=========!