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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;           Function 03H: Auxiliary Input                    ;
  4.         ;                                                            ;
  5.         ;           int aux_in()                                     ;
  6.         ;                                                            ;
  7.         ;           Returns next character from AUX device.          ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   aux_in,PUBLIC
  12. cBegin
  13.         mov     ah,03h          ; Set function code.
  14.         int     21h             ; Wait for character from AUX.
  15.         mov     ah,0            ; Character is in AL
  16.                                 ; so clear high byte.
  17. cEnd
  18.