home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / PAL / CONIO / KBHIT.ASM next >
Encoding:
Assembly Source File  |  1995-06-04  |  827 b   |  29 lines

  1. ;****************************************************************************
  2. ; Filename: KBHIT.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1995.02.09
  6. ;  Updated: -
  7. ;****************************************************************************
  8. ; Copyright Peter Andersson, 1994-1995.
  9. ; All rights reserved.
  10. ;****************************************************************************
  11. ; Function: int kbhit(void);
  12. ;  Comment: Checks to see if if a keyboard is ready.
  13. ;    Input: - 
  14. ;   Output: zero if not ready, non-zero if key is ready.
  15. ;****************************************************************************
  16.  
  17.     Include    STDDEF.INC
  18.  
  19.     Codeseg
  20.  
  21. Proc    kbhit
  22.                 mov     ah,0bh
  23.                 int     21h
  24.                 movsx   eax,al                
  25.         Ret
  26. Endp
  27.  
  28.     End
  29.