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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;           Function 01H: Character Input with Echo          ;
  4.         ;                                                            ;
  5.         ;           int read_kbd_echo()                              ;
  6.         ;                                                            ;
  7.         ;           Returns a character from standard input          ;
  8.         ;           after sending it to standard output.             ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   read_kbd_echo,PUBLIC
  13. cBegin
  14.         mov     ah,01h          ; Set function code.
  15.         int     21h             ; Wait for character.
  16.         mov     ah,0            ; Character is in AL, so clear high
  17.                                 ; byte.
  18. cEnd
  19.