From 516a4e7e5583c67d46b41f520c6f8d2524cd4869 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Thu, 22 Jul 2021 21:21:01 -0400 Subject: [PATCH] check for unsupported function call in console - from dosemu2/fdpp bug# 101 fix see https://github.com/dosemu2/fdpp/commit/c6efa7a203c8aafe8da952d6405ad5dfb49fd469 --- kernel/console.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/console.asm b/kernel/console.asm index e4a9944..3a2beb5 100644 --- a/kernel/console.asm +++ b/kernel/console.asm @@ -156,6 +156,8 @@ CommonNdRdExit: ; *** tell if key waiting and return its ASCII if yes add ah,[cs:_kbdType] int 16h ; Get status, if zf=0 al=char jz ConNdRd4 ; Jump if no char available + or ax,ax ; Also check for ax=0 as apparently some + jz ConNdRd4 ; int16h handlers set ax=0 to indicate unsupported function call checke0 ; check for e0 scancode or ax,ax ; Zero ? jnz ConNdRd1 ; Jump if not zero