Direct console input: Dont return non-ascii keypresses

This commit is contained in:
Nero 2020-04-25 21:54:15 +02:00
parent da41f6b0e2
commit 43e5cd6379

View File

@ -94,6 +94,8 @@ conine: mov ah, 1
ret ret
.has: xor ax, ax .has: xor ax, ax
int 0x16 int 0x16
test al, al
jz conine
int 0x29 int 0x29
test ax, ax test ax, ax
ret ret
@ -108,6 +110,8 @@ conin: mov ah, 1
ret ret
.has: xor ax, ax .has: xor ax, ax
int 0x16 int 0x16
test al, al
jz conin
test ax, ax test ax, ax
ret ret