a C standard library for fx Casio calculators
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fxlibc/src/posix/unistd/target/vhex-sh/getpid.S

19 lines
252 B

#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h>
2 years ago
.text
.global _getpid
.type _getpid, @function
.align 2
/*
** extern pid_t getpid(void);
** Get the process ID of the calling process.
*/
2 years ago
_getpid:
trapa #__NR_getpid
rts
nop
.end
#endif