Skip to content

Commit

Permalink
DRBIO: normalize boot drive unit to be in DL
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Jul 25, 2024
1 parent 142df61 commit 6ca08be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drbio/init.asm
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,13 @@ local_buffer label byte
mov ds, ax ; other than si, ds and es
xor si, si

; determine which register holds the boot drive unit
; EDR load protocol: CS=70h, DL=unit
; FreeDOS load protocol: CS=60h, BL=unit
; standardize to DL holding drive unit
cmp ax,60h ; are we loaded at segment 60h?
jne uncompress_and_relocate_kernel
mov dl,bl ; then copy unit fron BL to DL
uncompress_and_relocate_kernel:
mov al, kernflg ; get compressed flag
test al, KERNFLG_COMP ; bit 0 set if the BIO is compressed
Expand Down

0 comments on commit 6ca08be

Please sign in to comment.