Added entry points for ANSI C
This commit is contained in:
15
mach/mantra/libsys/_time.s
Normal file
15
mach/mantra/libsys/_time.s
Normal file
@@ -0,0 +1,15 @@
|
||||
.define __time
|
||||
.extern __time
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
__time: move.l #0xD,d0
|
||||
trap #0
|
||||
tst.l 4(sp)
|
||||
beq 1f
|
||||
move.l 4(sp),a0
|
||||
move.l d0,(a0)
|
||||
1:
|
||||
rts
|
||||
Reference in New Issue
Block a user