more modularization and updating date in MIT licence header
This commit is contained in:
@@ -33,7 +33,7 @@ init:
|
||||
mov es, ax ; *
|
||||
|
||||
mov ss, ax ; Set Stack Segment to 0
|
||||
mov sp, STACK_START
|
||||
mov sp, EARLY_STACK_START
|
||||
|
||||
mov ch, 0x01 ; 256 WORDs in MBR (512 bytes), 0x0100 in cx
|
||||
mov si, 0x7C00 ; Current MBR Address (loaded here by BIOS)
|
||||
|
||||
@@ -38,7 +38,7 @@ init:
|
||||
mov gs, ax ; *
|
||||
|
||||
mov ss, ax ; Set Stack Segment to 0
|
||||
mov sp, STACK_START ; Set Stack Pointer
|
||||
mov sp, EARLY_STACK_START ; Set Stack Pointer
|
||||
|
||||
add sp, 0x4
|
||||
mov ax, 0xDEAD
|
||||
@@ -52,7 +52,7 @@ init:
|
||||
jmp 0:main
|
||||
|
||||
%include "config.inc"
|
||||
%include "errors.inc"
|
||||
%include "error_codes.inc"
|
||||
%include "memory.inc"
|
||||
%include "kmem_func.inc"
|
||||
%include "partition_table.inc"
|
||||
@@ -146,7 +146,7 @@ hcf:
|
||||
;
|
||||
; ###############
|
||||
|
||||
%include 'BIOS/BIOS_func.inc'
|
||||
%include 'BIOS/BIOS_sys.inc'
|
||||
|
||||
; ##############################
|
||||
;
|
||||
|
||||
@@ -40,7 +40,7 @@ init:
|
||||
mov es, ax ; *
|
||||
|
||||
mov ss, ax ; Set Stack Segment to 0
|
||||
mov sp, STACK_START ; Setup stack
|
||||
mov sp, EARLY_STACK_START ; Setup stack
|
||||
mov bp, sp ; base ptr = stack ptr
|
||||
|
||||
mov bx, VBR_ENTRY ; move Bx to the new start of the initial boot sector
|
||||
|
||||
Reference in New Issue
Block a user