diff --git a/src/bios.asm b/src/bios.asm index 9fdbef1..0796eea 100644 --- a/src/bios.asm +++ b/src/bios.asm @@ -1,5 +1,5 @@ ; EQUs -%include "equ/BIOS.asm" +%include "equ/bios.asm" ; SRs %include "bios/convert.asm" diff --git a/src/bios/disk.asm b/src/bios/disk.asm index 0f1b171..9cb7cbf 100644 --- a/src/bios/disk.asm +++ b/src/bios/disk.asm @@ -1,5 +1,4 @@ disk_read: - pusha push dx ; store dx on stack so that we can compare later mov ah, BIOS_DISK_READ ; specify function @@ -18,7 +17,6 @@ disk_read: cmp dh, al ; if dh != al then error jne sector_error - popa ret sector_error: diff --git a/src/bootloader.asm b/src/bootloader.asm index 036c78b..e54643c 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -12,8 +12,8 @@ ; Read second sector (outside bootsector) mov bx, 0x9000 ; LOAD LOCATION - mov dh, 2 ; SECTOR-COUNT - mov dl, [BOOT_DRIVE] ; DISK-INDEX + mov dh, 2 ; SECTOR-COUNT + mov dl, [BOOT_DRIVE] ; DISK-INDEX call disk_read @@ -29,11 +29,12 @@ jmp $ ; inf loop -%include "equ/ASCII.asm" +%include "equ/ascii.asm" %include "bios.asm" +%include "pm.asm" ; Data -welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END +welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END BOOT_DRIVE: db 0 ; Bootsector diff --git a/src/equ/ASCII.asm b/src/equ/ascii.asm similarity index 100% rename from src/equ/ASCII.asm rename to src/equ/ascii.asm diff --git a/src/equ/BIOS.asm b/src/equ/bios.asm similarity index 100% rename from src/equ/BIOS.asm rename to src/equ/bios.asm diff --git a/src/equ/VGA.asm b/src/equ/vga.asm similarity index 100% rename from src/equ/VGA.asm rename to src/equ/vga.asm diff --git a/src/pm.asm b/src/pm.asm new file mode 100644 index 0000000..822cd96 --- /dev/null +++ b/src/pm.asm @@ -0,0 +1,2 @@ +%include "equ/vga.asm" +%include "pm/vga/print.asm" diff --git a/src/vga/print.asm b/src/pm/vga/print.asm similarity index 100% rename from src/vga/print.asm rename to src/pm/vga/print.asm