Added entry points for ANSI C
This commit is contained in:
16
mach/ns/libsys/_getpid.s
Normal file
16
mach/ns/libsys/_getpid.s
Normal file
@@ -0,0 +1,16 @@
|
||||
.define __getpid
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
.extern __getpid
|
||||
.sect .text
|
||||
__getpid:
|
||||
enter[], 0
|
||||
movd 20,tos
|
||||
jsr @.mon
|
||||
movd tos,r7
|
||||
movd r7,r4
|
||||
exit []
|
||||
ret 0
|
||||
Reference in New Issue
Block a user