Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!cmcl2!adm!xadmx!MATHRICH@umcvmb.missouri.edu
From: MATHRICH@umcvmb.missouri.edu (Rich Winkel UMC Math Department)
Newsgroups: comp.lang.pascal
Subject: re: clearing keyboard buffer (in TP)
Message-ID: <21040@adm.BRL.MIL>
Date: 4 Oct 89 01:03:17 GMT
Sender: news@adm.BRL.MIL
Lines: 8

The fastest (and least readable) solution from an assembler hacker
would be:
var kb_head:word absolute $40:$1A;
    bk_tail:word absolute $40:$1C;
 ...
   kb_head:=kb_tail;  { flush keyboard buffer }

Rich