diff --git a/src/bootloader.asm b/src/bootloader.asm index 0f68425..e831fc2 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -1,34 +1,30 @@ [org 0x7c00] ; bootsector -mov bx, welcomeString ; Print the welcome string -call println + mov bx, welcomeString ; Print the welcome string + call println -mov bx, infoString -call println + mov bx, infoString ; Print version info + call println -mov bx, hexTestPrefixString -call print + mov bx, hexTestPrefixString ; Hex print test (not needed but fun) + call print + mov dx, 0x002e ; test the conversion + call hexToASCII + call println -mov dx, 0x002e ; test the conversion -call hexToASCII -call println + jmp $ ; inf loop -jmp $ ; inf loop - -;; includes -; EQU +; Load the EQUs %include "equ/BIOS.asm" %include "equ/ASCII.asm" -; eLIB +; SRs %include "elib/io.asm" %include "elib/convert.asm" -;; Data welcomeString: db "Welcome to: e Operating-System (eOS)", ASCII_END infoString: db "Version 2021 0.0", ASCII_END hexTestPrefixString: db "Hex printing test: ", ASCII_END -; Magic BIOS number times 510-($-$$) db 0 -db 0x55, 0xaa +db 0x55, 0xaa ; magic BIOS numbers diff --git a/src/bootloader_bios_disk.asm b/src/bootloader_bios_disk.asm new file mode 100644 index 0000000..e69de29