diff --git a/src/BIOS_equ.asm b/src/BIOS_equ.asm new file mode 100644 index 0000000..bfbec56 --- /dev/null +++ b/src/BIOS_equ.asm @@ -0,0 +1,3 @@ +; EQUs (lazy variables) for BIOS stuff +BIOS_INT equ 0x10 +BIOS_MODE_TELETYPE equ 0x0e diff --git a/src/bootloader.asm b/src/bootloader.asm index 2ce8ab4..4b0f2c7 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -1,8 +1,9 @@ %include "equ/BIOS.asm" %include "equ/ASCII.asm" -mov ah, 0x0e ; enter teletype mode (BIOS) +mov ah, BIOS_MODE_TELETYPE ; enter teletype mode (BIOS) +; Print "eOS" mov al, "e" int BIOS_INT @@ -34,6 +35,7 @@ loop: cmp al, 90 ; 26 letters in english alphabet (64 + 26) jl loop ; if al < 64+26: jmp loop + jmp $ times 510-($-$$) db 0