diff --git a/mach/z8000/libem/printf.s b/mach/z8000/libem/printf.s index be754072e..5512c4730 100755 --- a/mach/z8000/libem/printf.s +++ b/mach/z8000/libem/printf.s @@ -62,10 +62,8 @@ ready: !now really print the string we built in the buffer push *RR14, R3 !count push *RR14, R1 !buffer push *RR14, $2 !file descriptor - push *RR14, $4 ! write - calr mon - pop R1, *RR14 - pop R1, *RR14 ! ignore result + calr __write + inc R15, $6 ldm R4, savereg, $10 pushl *RR14, saveret diff --git a/mach/z8000/libem/trp.s b/mach/z8000/libem/trp.s index aa734397f..4ff5a0c77 100644 --- a/mach/z8000/libem/trp.s +++ b/mach/z8000/libem/trp.s @@ -18,7 +18,7 @@ fatal: pushl *RR14, saveret calr trp push *RR14, $1 - calr mon + calr __exit !NOTREACHED trp: @@ -54,7 +54,7 @@ trp: push *RR14, $err calr printf push *RR14, $1 - calr mon + calr __exit !NOTREACHED .sect .data err: .asciz "trap error %d\n"