From: David van Moolenbroek Date: Thu, 24 Dec 2009 23:49:23 +0000 (+0000) Subject: unbreak "make dos" in boot (Bug#365, patch by Antoine Leca) X-Git-Tag: v3.1.6~130 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/expt.png?a=commitdiff_plain;h=8da928d2df31e827e9dc28b427eb765418c2898f;p=minix.git unbreak "make dos" in boot (Bug#365, patch by Antoine Leca) --- diff --git a/boot/doshead.s b/boot/doshead.s index 86f5621e4..8cd805786 100644 --- a/boot/doshead.s +++ b/boot/doshead.s @@ -1277,6 +1277,17 @@ _int15: pop si ! Restore ret +! void scan_keyboard(void) +! Read keyboard character. Needs to be done in case one is waiting. +.define _scan_keyboard +_scan_keyboard: + movb ah, 1 ! Check keyboard + int 0x16 + jz no_key + movb ah, 0 ! Empty it + int 0x16 +no_key: ret + .sect .rom .align 4 c60: .data2 60 ! Constants for MUL and DIV