From cd7aafde091df1615b056de50c744e32cba6e090 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Mon, 23 Sep 2019 22:06:25 +0000 Subject: [PATCH] Run kernel with from offset 0 I try to get the interrupt handlers into a offset as low as possible. This is necessity if i want to relocate it later on its own. For running from HMA, a minimal offset of 16 bytes would still be necessary. --- boot/fat.asm | 2 +- kernel/main.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/fat.asm b/boot/fat.asm index db57653..3e783c4 100644 --- a/boot/fat.asm +++ b/boot/fat.asm @@ -122,7 +122,7 @@ main: pop es ; jump into target - jmp 0x07B0:0x0100 + jmp 0x07C0:0x0000 ; Load a file into memory ; IN AX pointer to 8.3 filename diff --git a/kernel/main.asm b/kernel/main.asm index ebc54d1..e7d476c 100644 --- a/kernel/main.asm +++ b/kernel/main.asm @@ -1,5 +1,5 @@ cpu 8086 -org 0x0100 +org 0x0 jmp init isr_dos_main: