diff options
author | Marvin Borner | 2020-07-01 23:21:21 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-01 23:21:21 +0200 |
commit | 9d15c733976b9edec29de7cda7383e0aa1775ac6 (patch) | |
tree | 3ec176cf9a319c0d8af235a4c77d9207afa100cb | |
parent | 6d8c1ff111d9fc0c3dcd99b2ef3dc4cff66d280f (diff) |
Save ax and bx in print routine
-rw-r--r-- | src/entry.asm | 4 |
1 files changed, 4 insertions, 0 deletions
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: |