From 05b70d86053ac376620409c58b446b46e4eb974c Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 31 Jul 2021 23:19:15 +0200 Subject: [PATCH] Refactor --- src/bootloader.asm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bootloader.asm b/src/bootloader.asm index a1cab27..036c78b 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -12,7 +12,7 @@ ; Read second sector (outside bootsector) mov bx, 0x9000 ; LOAD LOCATION - mov dh, 3 ; SECTOR-COUNT + mov dh, 2 ; SECTOR-COUNT mov dl, [BOOT_DRIVE] ; DISK-INDEX call disk_read @@ -21,6 +21,12 @@ mov dx, [0x9000] call print_hex + mov bx, [ASCII_END] + call println + + mov dx, [0x9000 + 512] ; read from second sector too + call print_hex + jmp $ ; inf loop %include "equ/ASCII.asm"