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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;    Function 08H:  Unfiltered Character Input Without Echo  ;
  4.         ;                                                            ;
  5.         ;    int read_kbd()                                          ;
  6.         ;                                                            ;
  7.         ;    Returns next character from standard input.             ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   read_kbd,PUBLIC
  12. cBegin
  13.         mov     ah,08h          ; Set function code.
  14.         int     21h             ; Wait for character, no echo.
  15.         mov     ah,0            ; Clear high byte.
  16. cEnd
  17.