mirror of https://github.com/nmlgc/ReC98.git
21 lines
214 B
NASM
21 lines
214 B
NASM
|
; 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
|