From df2db14bbabbf7316bcb86c8036103823429c310 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 13 Jan 2021 12:09:36 +0100 Subject: [PATCH] Refactor --- src/bootloader.asm | 3 +-- src/elib/io.asm | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bootloader.asm b/src/bootloader.asm index b685912..f07345c 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -14,8 +14,7 @@ jmp $ ; inf loop %include "elib/io.asm" ;; Data -welcomeString: - db "Welcome to eOS", ASCII_END +welcomeString: db "Welcome to eOS", ASCII_END ; Magic BIOS number times 510-($-$$) db 0 diff --git a/src/elib/io.asm b/src/elib/io.asm index 939ec03..10ed003 100644 --- a/src/elib/io.asm +++ b/src/elib/io.asm @@ -24,10 +24,10 @@ print: popa ; restore all registers ret ; return to previous location -; Subroutine to print a string on a new line -newline: - db ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, ASCII_END +newline: db ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, ASCII_END ; used for printing newlines + +; Subroutine to print a string on a new line println: pusha