save a few boot0 bytes

main
pantonshire 1 year ago
parent 8a75404437
commit 76c6d5c355

@ -101,9 +101,8 @@ main:
or ax, bx or ax, bx
or eax, eax or eax, eax
jnz panic jnz panic
; Load and spill the GPT starting LBA ; Store the first 16 bits of the GPT starting LBA (we have made sure the remaining bits are 0)
mov ax, [di + 0x48] push word [di + 0x48]
push ax
; Load number of partitions ; Load number of partitions
mov ax, [di + 0x50] mov ax, [di + 0x50]
@ -168,8 +167,7 @@ main:
push ax ; Current entry push ax ; Current entry
push ax ; Current entry within the current sector push ax ; Current entry within the current sector
push ax ; Number of sectors loaded push ax ; Number of sectors loaded
mov ax, [bp - GPT_ENTRIES_START_LBA] push word [bp - GPT_ENTRIES_START_LBA] ; Current LBA
push ax ; Current LBA
; Search for the partition storing our second stage. ; Search for the partition storing our second stage.
.loop_find_stage2: .loop_find_stage2:

Loading…
Cancel
Save