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

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