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 jne read_buffer.chain
read_buffer: read_buffer:
push ax
push dx push dx
push bx push bx
push si push si
@ -78,6 +79,7 @@ read_buffer:
pop si pop si
pop bx pop bx
pop dx pop dx
pop ax
ret ret
.bs: .bs:
test bx, bx test bx, bx