.MODEL LARGE
.CODE

PUBLIC _kb_char

_kb_char PROC
     mov     ah, 1        ; BIOS function - return kb status
     int     16h
     jz      no_key
     mov     ax,1
     ret
no_key:
     mov     ax, 0
     ret
_kb_char ENDP


END
