Added entry points for ANSI C
This commit is contained in:
18
mach/pmds/libsys/_wait.s
Normal file
18
mach/pmds/libsys/_wait.s
Normal file
@@ -0,0 +1,18 @@
|
||||
.define __wait
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
.extern __wait
|
||||
__wait: trap #0
|
||||
.data2 0x7
|
||||
bcc 1f
|
||||
jmp cerror
|
||||
1:
|
||||
tst.l 4(sp)
|
||||
beq 2f
|
||||
move.l 4(sp),a0
|
||||
move.w d1,(a0)
|
||||
2:
|
||||
rts
|
||||
Reference in New Issue
Block a user