Skip to content

Commit 42d3ae6

Browse files
ecm-pushbxPerditionC
authored andcommitted
boot32, boot32lb: fix EDR-DOS incompatibility [fixes #119]
1 parent 53d3fd5 commit 42d3ae6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

boot/boot32.asm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ cn_exit:
272272
ret
273273

274274

275-
boot_success:
276-
mov bl, [drive]
275+
boot_success:
276+
mov dl, [drive] ; for Enhanced DR-DOS load
277+
mov bl, dl ; for FreeDOS load
277278
jmp far [loadsegoff_60]
278279

279280
; Convert cluster to the absolute sector

boot/boot32lb.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ rk_walk_fat: pop eax
242242
243243
;-----------------------------------------------------------------------
244244

245-
boot_success: mov bl, [drive]
245+
boot_success:
246+
mov dl, [drive] ; for Enhanced DR-DOS load
247+
mov bl, dl ; for FreeDOS load
246248
jmp far [loadsegoff_60]
247249

248250
;-----------------------------------------------------------------------

0 commit comments

Comments
 (0)