Prevent announce from spoiling DS
This commit is contained in:
parent
932aa06874
commit
ff552ac242
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user