kernel: properly loop over floppies

This commit is contained in:
Nero 2020-08-22 23:36:09 +00:00
parent c3f22e5aea
commit ff3a59c71e

View File

@ -28,6 +28,8 @@ drives_init: int 0x11
mov bx, drive_table
xor dx, dx
.loop: push cx
push dx
mov [bx+drive.biosnum], dl
; defaults if 13h,AH=8 fails (XT 360kb)
les di, [0x1e * 4]
@ -68,4 +70,9 @@ drives_init: int 0x11
inc dh
mul dh ; ax = al * dh
mov [bx+drive.spc], ax
; advance loop
pop dx
pop cx
inc dl
loop .loop
ret