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 diff --git a/src/bootloader_bios_disk.asm b/src/bootloader_bios_disk.asm index e69de29..21e3204 100644 --- a/src/bootloader_bios_disk.asm +++ b/src/bootloader_bios_disk.asm @@ -0,0 +1,5 @@ +disk_read: + pusha + + mov ah, BIOS_DISK_READ + mov al, dh ; number of sectors to read 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 +