From 06b5c480f55fe3a413872a18d741a2284990f9e5 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 9 Feb 2021 19:20:18 +0100 Subject: [PATCH 1/4] disk read sr --- src/bootloader_bios_disk.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootloader_bios_disk.asm b/src/bootloader_bios_disk.asm index e69de29..47fb5f3 100644 --- a/src/bootloader_bios_disk.asm +++ b/src/bootloader_bios_disk.asm @@ -0,0 +1,2 @@ +disk_read: + pusha From 14e8c697c603b9342ffcb2892fd2df26f21df917 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 14 Feb 2021 00:41:47 +0100 Subject: [PATCH 2/4] Minor cleanup --- src/bootloader.asm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootloader.asm b/src/bootloader.asm index e831fc2..101bd51 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -8,9 +8,12 @@ mov bx, hexTestPrefixString ; Hex print test (not needed but fun) call print + + pusha mov dx, 0x002e ; test the conversion call hexToASCII call println + popa jmp $ ; inf loop From 58ee40f0aeed00b37c4daee57693a5c026d11450 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 14 Feb 2021 00:54:17 +0100 Subject: [PATCH 3/4] EQU rename --- src/bootloader_bios_disk.asm | 2 ++ src/equ/BIOS.asm | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bootloader_bios_disk.asm b/src/bootloader_bios_disk.asm index 47fb5f3..8d8cbc5 100644 --- a/src/bootloader_bios_disk.asm +++ b/src/bootloader_bios_disk.asm @@ -1,2 +1,4 @@ disk_read: pusha + + diff --git a/src/equ/BIOS.asm b/src/equ/BIOS.asm index 1c216c7..3294bde 100644 --- a/src/equ/BIOS.asm +++ b/src/equ/BIOS.asm @@ -2,5 +2,6 @@ BIOS_TTY_INT equ 0x10 BIOS_TTY_MODE equ 0x0e -BIOS_READ_INT equ 0x13 -BIOS_READ_MODE equ 0x02 +BIOS_DISK_INT equ 0x13 +BIOS_DISK_READ equ 0x02 + From 572a66b6eb8bb7989376facc4c82309c7fb54ac0 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 14 Feb 2021 00:58:05 +0100 Subject: [PATCH 4/4] Disk read stuff --- src/bootloader_bios_disk.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootloader_bios_disk.asm b/src/bootloader_bios_disk.asm index 8d8cbc5..21e3204 100644 --- a/src/bootloader_bios_disk.asm +++ b/src/bootloader_bios_disk.asm @@ -1,4 +1,5 @@ disk_read: pusha - + mov ah, BIOS_DISK_READ + mov al, dh ; number of sectors to read