Preserve AX on buffered input

This commit is contained in:
Nero 2019-10-20 19:45:55 +00:00
parent f3a6ae338f
commit da506d36ac
1 changed files with 2 additions and 0 deletions

View File

@ -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