Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!hao!oddjob!sphinx!cjdb From: cjdb@sphinx.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: How do you flush the PC's keyboard? Message-ID: <1888@sphinx.uchicago.edu> Date: Wed, 3-Jun-87 01:46:29 EDT Article-I.D.: sphinx.1888 Posted: Wed Jun 3 01:46:29 1987 Date-Received: Fri, 5-Jun-87 03:23:00 EDT References: <747@thumper.UUCP> <708@cod.UUCP> <4063@amd.UUCP> Reply-To: cjdb@sphinx.UUCP (Charles Blair) Organization: The University of Chicago Lines: 29 In article <4063@amd.UUCP> markg@amd.UUCP (Mark Gorlinsky) writes: >[...] >This is a first in a long time. I finally got some useful information >from this newsgroup. I didn't learn much about how to UNFORMATT a floppy or >why I would like to make PC|MSDOS crash via =" ". Thank GOD someone out there >has brains!! > We all have brains, and that's >" ", by the way. Here's how I flush the keyboard when I'm not busy freezing up the machine ( :-) ): mov ah,0 ; BIOS function to read char from kbd int 16h ; call BIOS AH contains the scan code, AL the character. Don't process = throw away. I'm not saying this is better than the other methods posted (after all, one is counselled to use DOS wherever one can), but simply different. -- Bitnet: lib.cb@uchicago.bitnet Internet: lib.cb@chip.uchicago.edu uucp: ..!ihnp4!gargoyle!sphinx!cjdb