Skip to content

Commit

Permalink
move pop part_off to init.asm (can be done now that init0 uncompresses)
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Aug 1, 2024
1 parent 98653f6 commit fbdfa26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drbio/biosinit.asm
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ biosinit:
cli
mov ax,cs ; Initialise our stack and Data Segment
mov ds,ax
pop ds:part_off ; pushed at init from BPB hidden sectors
pop ds:part_off+2
mov ss,ax
mov sp,offset stack
sti
Expand Down
7 changes: 6 additions & 1 deletion drbio/init.asm
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,9 @@ init1 proc near

mov si,cs
mov ds,si ; DS -> local data segment
pop ds:part_off ; pushed at init0 from BPB hidden sectors
pop ds:part_off+2

cmp dl,0ffh ; booting from ROM?
jz rom_boot
cmp si,1000h ; test if debugging
Expand Down Expand Up @@ -1141,7 +1144,9 @@ output_hex40 db 20h,NUL ; end of string

ICODE ends

INITDATA segment public byte 'INITDATA'
INITDATA segment public word 'INITDATA'

extrn part_off:word

; This is a zero terminated list of locations to be fixed up with the
; segment of the relocated BIOS RCODE
Expand Down

0 comments on commit fbdfa26

Please sign in to comment.