From e504feaf11daf32742555ad2a2b6a1004e2daf53 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 12 Jan 2021 16:22:53 +0100 Subject: [PATCH] Equ fix --- src/BIOS_equ.asm | 3 +++ src/bootloader.asm | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/BIOS_equ.asm 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