summaryrefslogtreecommitdiff
path: root/src/stage1_functions.asm
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-05-11 22:10:07 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-05-11 22:10:07 +0200
commit30596991abc9e452fbad8372f1ddcce12b87ce72 (patch)
tree0268ad64556032ce19cddd43d3629e2bc1ea61db /src/stage1_functions.asm
parent356f485c9cb5f5aa94e39ad25e9e0345682db722 (diff)
downloadabaos-30596991abc9e452fbad8372f1ddcce12b87ce72.tar.gz
abaos-30596991abc9e452fbad8372f1ddcce12b87ce72.tar.bz2
better documentation for the boot loading process and how much
sectors each part needs, fixed truncation problem started a magic signature at the end of the image and started to check it in stage 2 of the boot loader to avoid truncated images in the future
Diffstat (limited to 'src/stage1_functions.asm')
-rw-r--r--src/stage1_functions.asm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stage1_functions.asm b/src/stage1_functions.asm
index b32d23d..c43da4d 100644
--- a/src/stage1_functions.asm
+++ b/src/stage1_functions.asm
@@ -1,9 +1,8 @@
; number of sectors to be read
-; this is 512 (the bootloader stage1) +
; 3 * 512 for bootloader stage2 and the kernel code
; (note: the first sector gets loaded by the BIOS, so
; subtract 1 here!)
-NOF_LOAD_SECTORS equ 7
+NOF_LOAD_SECTORS equ 11
; IN bx: begin of memory area to dump
; IN ax: number of words to dump
@@ -19,7 +18,7 @@ dump_range:
jnz dump_range
ret
-; IN bx: hex value to print
+; IN dx: hex value to print
print_hex:
push bx
push si