home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn0ch.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  848 b   |  17 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;          Function 0CH: Flush Buffer, Read Keyboard         ;
  4.         ;                                                            ;
  5.         ;          int flush_kbd()                                   ;
  6.         ;                                                            ;
  7.         ;          Returns 0.                                        ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   flush_kbd,PUBLIC
  12. cBegin
  13.         mov     ax,0c00h        ; Just flush type-ahead buffer.
  14.         int     21h             ; Call MS-DOS.
  15.         xor     ax,ax           ; Return 0.
  16. cEnd
  17.