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