home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / progjour / 1991 / 06 / alib / get_inpu.asm < prev    next >
Assembly Source File  |  1991-06-25  |  268b  |  20 lines

  1.     include    asm.inc
  2.  
  3.     public    get_input_state
  4.  
  5.     .code
  6.  
  7. ;;    get input state
  8. ;
  9. ;    exit    Zf    if no key waiting
  10. ;    uses    AX
  11. ;    note    returns TRUE for keyboard, mouse, and timer under Windows
  12. ;
  13. get_input_state proc
  14.     mov    ah,1
  15.     int    16h
  16.     ret
  17. get_input_state endp
  18.  
  19.     end
  20.