From 3f4c6c0559a95a49adf0ea6ca5de107fe7e59ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 30 Jun 2021 23:22:09 +0300 Subject: [PATCH] Make output code work also on the original IBM PC --- bootsect.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootsect.asm b/bootsect.asm index e8e376f..7209d23 100644 --- a/bootsect.asm +++ b/bootsect.asm @@ -68,12 +68,13 @@ _start: mov [drivenumber], dl select_os: - mov ah, 0xe mov si, prompt .print: lodsb test al, al jz .end + ; On the original IBM PC BIOS the int 0x10 will clobber this + mov ah, 0xe int 0x10 jmp .print .end: