home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / JAZLIB / JZKEYPRS.ASM < prev    next >
Assembly Source File  |  1993-12-01  |  283b  |  17 lines

  1.     assume cs:_text
  2. _text    segment public byte 'code'
  3.     public _jzkeyprs
  4.  
  5. _jzkeyprs   proc near
  6.  
  7.     mov ah,1
  8.     int 16h     ; get key status
  9.     mov ax,1    ; assume key pressed
  10.     jnz exit    ; report char ready
  11.     mov ax,0    ; report no char ready
  12. exit:
  13.     ret
  14. _jzkeyprs   endp
  15. _text    ends
  16. end
  17.