From 8e27e54583dc97c11085376dfac1a7b6a8bd47b8 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 12 Jan 2021 17:27:21 +0100 Subject: [PATCH] Stack bug fix --- src/bootloader.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bootloader.asm b/src/bootloader.asm index 8dbb191..6ba67d3 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -26,14 +26,14 @@ loop: inc al ; move to next char int BIOS_INT ; bios interupt to print it - ;push al ; push al onto stack + push ax ; push ax onto stack ; Print a linebreak - ;mov al, ASCII_LINEBREAK - ;int BIOS_INT + mov al, ASCII_LINEBREAK + int BIOS_INT ; Prepair for next iteration - ;pop al ; return to char + pop ax ; restore cmp al, 90 ; 26 letters in english alphabet (64 + 26) jl loop ; if al < 64+26: jmp loop