No system-calls from libem
This commit is contained in:
parent
8474be6e52
commit
2dde78c197
|
@ -14,7 +14,7 @@
|
|||
movqd 1,tos
|
||||
addr 8(fp),tos
|
||||
movqd 1,tos
|
||||
bsr __write
|
||||
bsr WRITE
|
||||
adjspb -12
|
||||
exit []
|
||||
ret 0
|
||||
|
|
|
@ -62,7 +62,7 @@ ready: !now really print the string we built in the buffer
|
|||
push *RR14, R3 !count
|
||||
push *RR14, R1 !buffer
|
||||
push *RR14, $2 !file descriptor
|
||||
calr __write
|
||||
calr WRITE
|
||||
inc R15, $6
|
||||
|
||||
ldm R4, savereg, $10
|
||||
|
|
|
@ -18,7 +18,7 @@ fatal:
|
|||
pushl *RR14, saveret
|
||||
calr trp
|
||||
push *RR14, $1
|
||||
calr __exit
|
||||
jr EXIT
|
||||
!NOTREACHED
|
||||
|
||||
trp:
|
||||
|
@ -54,7 +54,7 @@ trp:
|
|||
push *RR14, $err
|
||||
calr printf
|
||||
push *RR14, $1
|
||||
calr __exit
|
||||
jr EXIT
|
||||
!NOTREACHED
|
||||
.sect .data
|
||||
err: .asciz "trap error %d\n"
|
||||
|
|
Loading…
Reference in a new issue