Prevent announce from spoiling DS

This commit is contained in:
Nero 2019-05-02 20:26:11 +00:00
parent 932aa06874
commit ff552ac242

View File

@ -54,6 +54,7 @@ putc:
ret
announce:
push ds
push cs
mov ax, cs
mov ds, ax
@ -62,6 +63,7 @@ announce:
call printf
db "%S (CS=%Xh)", 0x0A, 0x0D, 0x00
add sp, 4
pop ds
ret
start: