home *** CD-ROM | disk | FTP | other *** search
- {********************************************************************
-
- Utility for the IBM PC and kompatibles
-
- This small include file waits for any key beeing pressed. ANY key
- means: also the '5' key on the numeric keypad, the DEL or NUM-LOCK
- etc. ANY KEY !
- by Wolfgang Siebeck/Rupert Mohr, 72446,415, Aachen, W.Germany
-
- *********************************************************************}
-
- procedure wait_for_any_key;
-
- var
- status : byte;
-
- begin
- status := mem[$0000:$0417];
- mem[$0000:$0417] := 32;
- repeat until (keypressed or (mem[$0000:$0417]<>32));
- mem[$0000:$0417] := status;
- mem[$0000:1050] := mem[$0000:1052]; (* empty kbd-buffer *)
- end; (* wait_for_any_key *)