From 9d15c733976b9edec29de7cda7383e0aa1775ac6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 1 Jul 2020 23:21:21 +0200 Subject: Save ax and bx in print routine --- src/entry.asm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/entry.asm') diff --git a/src/entry.asm b/src/entry.asm index 496678b..7998da1 100644 --- a/src/entry.asm +++ b/src/entry.asm @@ -79,6 +79,8 @@ _start: jmp stage_two print: + push bx + push ax mov ah, VIDEO_OUT xor bh, bh print_ch: @@ -88,6 +90,8 @@ print: int VIDEO_INT jmp print_ch print_end: + pop ax + pop bx ret disk_read: -- cgit v1.2.3