1984-12-14 15:52:15 +00:00
|
|
|
.define call
|
|
|
|
.define callc
|
|
|
|
.define calle
|
|
|
|
.define cerror
|
|
|
|
.define _errno
|
1985-06-04 11:18:09 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1984-12-14 15:52:15 +00:00
|
|
|
.extern call
|
|
|
|
.extern callc
|
|
|
|
.extern calle
|
|
|
|
.extern cerror
|
|
|
|
.extern _errno
|
1985-06-04 11:18:09 +00:00
|
|
|
.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:
|
|
|
|
move.w d0,_errno
|
|
|
|
move.l #-1,d0
|
|
|
|
rts
|
1985-06-04 11:18:09 +00:00
|
|
|
.sect .bss
|
1984-12-14 15:52:15 +00:00
|
|
|
_errno: .space 4
|
1985-06-04 11:18:09 +00:00
|
|
|
.sect .text
|