mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-19 01:25:05 -04:00
Cleanup
This commit is contained in:
parent
c360a149a8
commit
c89af16e54
@ -53,8 +53,10 @@ rm_start:
|
|||||||
mov si, load_kernel
|
mov si, load_kernel
|
||||||
call print_line_16
|
call print_line_16
|
||||||
|
|
||||||
BASE equ 0x100 ; 0x0100:0x0 = 0x1000
|
; Loading the assembly kernel from floppy
|
||||||
sectors equ 0x20 ; sectors to read
|
|
||||||
|
ASM_KERNEL_BASE equ 0x100 ; 0x0100:0x0 = 0x1000
|
||||||
|
sectors equ 0x20 ; sectors to read
|
||||||
|
|
||||||
; Reset disk drive
|
; Reset disk drive
|
||||||
xor ax, ax
|
xor ax, ax
|
||||||
@ -64,7 +66,7 @@ rm_start:
|
|||||||
|
|
||||||
jc reset_failed
|
jc reset_failed
|
||||||
|
|
||||||
mov ax, BASE
|
mov ax, ASM_KERNEL_BASE
|
||||||
mov es, ax
|
mov es, ax
|
||||||
xor bx, bx
|
xor bx, bx
|
||||||
|
|
||||||
@ -81,7 +83,9 @@ rm_start:
|
|||||||
cmp al, sectors
|
cmp al, sectors
|
||||||
jne read_failed
|
jne read_failed
|
||||||
|
|
||||||
jmp dword BASE:0x0
|
; Run the assembly kernel
|
||||||
|
|
||||||
|
jmp dword ASM_KERNEL_BASE:0x0
|
||||||
|
|
||||||
reset_failed:
|
reset_failed:
|
||||||
mov si, reset_failed_msg
|
mov si, reset_failed_msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user