use __exit and __write instead
This commit is contained in:
parent
c9627bf4e6
commit
33c0dd8496
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue