From 83a8fe6210166efe34a306748e79510ad782b9b2 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 14 Mar 2022 15:56:49 +0100 Subject: [PATCH] int 0x15 (not done) --- bootloader/bios/disk.asm | 2 +- bootloader/bios/memory.asm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 bootloader/bios/memory.asm diff --git a/bootloader/bios/disk.asm b/bootloader/bios/disk.asm index 1dbc359..9cb7cbf 100644 --- a/bootloader/bios/disk.asm +++ b/bootloader/bios/disk.asm @@ -42,4 +42,4 @@ read_error: read_error_string: db ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "ERROR! Disk read failed.", ASCII_END error_code_string: db "Error code: ", ASCII_END -sector_error_string: db "Invalid number of sectors read!", ASCII_END +sector_error_string: db "Invalid number of sectors read!", ASCII_END diff --git a/bootloader/bios/memory.asm b/bootloader/bios/memory.asm new file mode 100644 index 0000000..874ca4e --- /dev/null +++ b/bootloader/bios/memory.asm @@ -0,0 +1,5 @@ +; SRs to find memory size and leave it as a "note" for the kernel + +map_phys_mem: + int 0x15 +