mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Use BIOS service for delay
This commit is contained in:
parent
0f5414e8c0
commit
d154161bea
3 changed files with 5 additions and 12 deletions
BIN
dist/bootboot.bin
vendored
BIN
dist/bootboot.bin
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -471,17 +471,10 @@ a20ok:
|
|||
real_print backup
|
||||
jmp .waitend
|
||||
@@: ; wait 10 millisec
|
||||
mov cx, 10000/15
|
||||
in al, 61h ; ps2 control port bit 4 is oscillating at 15 usec
|
||||
and al, 10h
|
||||
mov ah, al
|
||||
@@: in al, 61h
|
||||
and al, 10h
|
||||
cmp al, ah
|
||||
je @b
|
||||
mov ah, al
|
||||
dec cx
|
||||
jnz @b
|
||||
xor cx, cx
|
||||
mov dx, 10000
|
||||
mov ah, 086h
|
||||
int 15h
|
||||
; repeat loop 50 times
|
||||
inc word [origcount]
|
||||
cmp word [origcount], 50
|
||||
|
|
Loading…
Add table
Reference in a new issue