From 54a25242f6ba63fa1daff5478d4ea84afd89d250 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 5 Feb 2021 10:35:01 +0100 Subject: [PATCH] Better equ namings --- src/elib/io.asm | 4 ++-- src/equ/BIOS.asm | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/elib/io.asm b/src/elib/io.asm index 8c4328d..34c62e2 100644 --- a/src/elib/io.asm +++ b/src/elib/io.asm @@ -13,8 +13,8 @@ print: ; BIOS Printing - mov ah, BIOS_MODE_TELETYPE ; enter tty mode - int BIOS_INT ; interupt and print the char (from line 10) + mov ah, BIOS_TTY_MODE ; enter teletype mode + int BIOS_TTY_INT ; interupt and print the char (from line 10) ; Preperation for next iteration inc bx ; increment the pointer to get next char diff --git a/src/equ/BIOS.asm b/src/equ/BIOS.asm index ebc9ebc..1c216c7 100644 --- a/src/equ/BIOS.asm +++ b/src/equ/BIOS.asm @@ -1,5 +1,6 @@ ; EQUs (lazy variables) for BIOS stuff -BIOS_INT equ 0x10 +BIOS_TTY_INT equ 0x10 +BIOS_TTY_MODE equ 0x0e -BIOS_MODE_TELETYPE equ 0x0e -BIOS_MODE_READ equ 0x02 +BIOS_READ_INT equ 0x13 +BIOS_READ_MODE equ 0x02