home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / 5 / ioctl_2.asm < prev   
Encoding:
Assembly Source File  |  1988-08-11  |  477 b   |  9 lines

  1.         mov     ax,4406H        ; AH = function 44H, IOCTL
  2.                                 ; AL = subfunction 06H, get
  3.                                 ; input status
  4.         mov     bx,3            ; BX = handle for standard aux
  5.         int     21h             ; transfer to MS-DOS
  6.         or      al,al           ; test status of AUX driver
  7.         jnz     ready           ; jump if input character ready
  8.                                 ; else no character is waiting
  9.