ReC98/libs/BorlandC/kbhit.asm

21 lines
214 B
NASM
Raw Normal View History

2014-08-30 04:23:45 +00:00
; int kbhit(void)
public _kbhit
_kbhit proc DIST
push si
push di
cmp _cFlag, 0
jz short @@do
mov ax, 1
jmp short @@ret
@@do:
mov ah, 0Bh
int 21h
cbw
@@ret:
pop di
pop si
ret
_kbhit endp