ack/mach/m68k4/libsys/call.s

29 lines
332 B
ArmAsm
Raw Normal View History

1984-12-14 15:52:15 +00:00
.define call
.define callc
.define calle
.define cerror
.extern call
.extern callc
.extern calle
.extern cerror
.extern _errno
1986-07-22 13:23:14 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-14 15:52:15 +00:00
call: trap #0
bcs cerror
rts
callc:
trap #0
bcs cerror
clr.l d0
rts
calle:
trap #0
cerror:
1985-03-04 17:26:31 +00:00
move.l d0,_errno
1984-12-14 15:52:15 +00:00
move.l #-1,d0
rts