unbreak "make dos" in boot (Bug#365, patch by Antoine Leca)
This commit is contained in:
parent
c8f8d69204
commit
8da928d2df
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue