use __exit and __write instead

This commit is contained in:
ceriel 1991-08-29 11:34:42 +00:00
parent c9627bf4e6
commit 33c0dd8496
2 changed files with 4 additions and 6 deletions

View file

@ -62,10 +62,8 @@ ready: !now really print the string we built in the buffer
push *RR14, R3 !count push *RR14, R3 !count
push *RR14, R1 !buffer push *RR14, R1 !buffer
push *RR14, $2 !file descriptor push *RR14, $2 !file descriptor
push *RR14, $4 ! write calr __write
calr mon inc R15, $6
pop R1, *RR14
pop R1, *RR14 ! ignore result
ldm R4, savereg, $10 ldm R4, savereg, $10
pushl *RR14, saveret pushl *RR14, saveret

View file

@ -18,7 +18,7 @@ fatal:
pushl *RR14, saveret pushl *RR14, saveret
calr trp calr trp
push *RR14, $1 push *RR14, $1
calr mon calr __exit
!NOTREACHED !NOTREACHED
trp: trp:
@ -54,7 +54,7 @@ trp:
push *RR14, $err push *RR14, $err
calr printf calr printf
push *RR14, $1 push *RR14, $1
calr mon calr __exit
!NOTREACHED !NOTREACHED
.sect .data .sect .data
err: .asciz "trap error %d\n" err: .asciz "trap error %d\n"