unbreak "make dos" in boot (Bug#365, patch by Antoine Leca)

This commit is contained in:
David van Moolenbroek 2009-12-24 23:49:23 +00:00
parent c8f8d69204
commit 8da928d2df

View file

@ -1277,6 +1277,17 @@ _int15:
pop si ! Restore pop si ! Restore
ret 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 .sect .rom
.align 4 .align 4
c60: .data2 60 ! Constants for MUL and DIV c60: .data2 60 ! Constants for MUL and DIV