mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-10 04:52:14 -04:00
Fix the stack location to avoid overwriting it
This commit is contained in:
parent
597a39ce2b
commit
f609fef964
@ -230,8 +230,8 @@ second_step:
|
|||||||
mov si, star
|
mov si, star
|
||||||
call print_16
|
call print_16
|
||||||
|
|
||||||
mov ah, [sectors_per_cluster]
|
movzx ax, [sectors_per_cluster]
|
||||||
mov byte [DAP.count], ah
|
mov word [DAP.count], ax
|
||||||
mov word [DAP.offset], 0x0
|
mov word [DAP.offset], 0x0
|
||||||
|
|
||||||
mov ax, [current_segment]
|
mov ax, [current_segment]
|
||||||
@ -264,7 +264,7 @@ second_step:
|
|||||||
add ax, bx ; fat_sector
|
add ax, bx ; fat_sector
|
||||||
|
|
||||||
; Read the FAT sector
|
; Read the FAT sector
|
||||||
mov byte [DAP.count], 1
|
mov word [DAP.count], 1
|
||||||
mov word [DAP.offset], 0x100
|
mov word [DAP.offset], 0x100
|
||||||
mov word [DAP.segment], 0x0
|
mov word [DAP.segment], 0x0
|
||||||
mov word [DAP.lba], ax
|
mov word [DAP.lba], ax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user