From da506d36ac6b80686d74d4c14b110a724fc9907f Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sun, 20 Oct 2019 19:45:55 +0000 Subject: [PATCH] Preserve AX on buffered input --- kernel/syscall.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/syscall.asm b/kernel/syscall.asm index 27327c8..df72948 100644 --- a/kernel/syscall.asm +++ b/kernel/syscall.asm @@ -55,6 +55,7 @@ print_string: jne read_buffer.chain read_buffer: + push ax push dx push bx push si @@ -78,6 +79,7 @@ read_buffer: pop si pop bx pop dx + pop ax ret .bs: test bx, bx