From 43e5cd6379020ee27af456ed0511d29cc16a0db6 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sat, 25 Apr 2020 21:54:15 +0200 Subject: [PATCH] Direct console input: Dont return non-ascii keypresses --- boot/kernel.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot/kernel.asm b/boot/kernel.asm index ed565ed..fd056b3 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -94,6 +94,8 @@ conine: mov ah, 1 ret .has: xor ax, ax int 0x16 + test al, al + jz conine int 0x29 test ax, ax ret @@ -108,6 +110,8 @@ conin: mov ah, 1 ret .has: xor ax, ax int 0x16 + test al, al + jz conin test ax, ax ret