Skip to content

Commit 0c16bfe

Browse files
committed
More lea replacements
1 parent cdbcb62 commit 0c16bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage_1.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ load_rest_of_bootloader_from_disk:
9393
mov eax, offset _rest_of_bootloader_start_addr
9494

9595
# number of disk blocks to load
96-
lea ebx, _rest_of_bootloader_end_addr
96+
mov ebx, offset _rest_of_bootloader_end_addr
9797
sub ebx, eax # end - start
9898
shr ebx, 9 # divide by 512 (block size)
9999
mov [dap_blocks], bx

0 commit comments

Comments
 (0)