From ff552ac24230ac7dc88b9fc1e1bbc60a0f615b91 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Thu, 2 May 2019 20:26:11 +0000 Subject: [PATCH] Prevent announce from spoiling DS --- kernel/main.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/main.asm b/kernel/main.asm index 1cee52f..f9ea6c7 100644 --- a/kernel/main.asm +++ b/kernel/main.asm @@ -54,6 +54,7 @@ putc: ret announce: + push ds push cs mov ax, cs mov ds, ax @@ -62,6 +63,7 @@ announce: call printf db "%S (CS=%Xh)", 0x0A, 0x0D, 0x00 add sp, 4 + pop ds ret start: