For someone who want to write the C header :
pedrom::stdin equ pedrom@0000
pedrom::stdout equ pedrom@0000+4
pedrom::stderr equ pedrom@0000+8
variables
pedrom::printf equ pedrom@0004
args are on the stack : format, args, ...
pedrom::vcbprintf equ pedrom@0005
vcbprintf (short (*callback)(short,FILE *), FILE *p, const char *fmt, va_list args)
(printf.c, line 225)
pedrom::clrscr equ pedrom@0006
no args
pedrom::fclose equ pedrom@0007
__ATTR_REG__ short fclose(FILE *f)
(files.c, line 56)
[nosmile]
pedrom::freopen equ pedrom@0008
__ATTR_REG__ FILE *freopen(const char *name, const char *mode, FILE *f)
(files.c, line 75)
pedrom::fopen equ pedrom@0009
__ATTR_REG__ FILE *fopen(const char *name, const char *mode)
(files.c, line 178)
pedrom::fseek equ pedrom@000a
__ATTR_REG__ short fseek(FILE *f, long offset, short wh)
(files.c, line 187)
pedrom::ftell equ pedrom@000b
__ATTR_REG__ long ftell(FILE *f)
(files.c, line 219)
pedrom::feof equ pedrom@000c[pre]
__ATTR_REG__ short feof(const FILE *f)
(files.c, line 228)
[pre]pedrom::fputc equ pedrom@000d
__ATTR_STK__ short fputc(short c, FILE *f)
(files.c, line 237)
pedrom::fputs equ pedrom@000e
__ATTR_REG__ short fputs(const char *s, FILE *f)
(files.c, line 284)
pedrom::fwrite equ pedrom@000f
__ATTR_REG__ unsigned short fwrite(const char *ptr, unsigned short size, unsigned short n, FILE *f)
(files.c, line 290)
pedrom::fgetc equ pedrom@0010
__ATTR_STK__ short fgetc(FILE *f)
(files.c, line 307)
pedrom::fread equ pedrom@0011
__ATTR_REG__ unsigned short fread(unsigned char *ptr, unsigned short size, unsigned short n, FILE *f)
(files.c, line 338)
pedrom::fgets equ pedrom@0012
__ATTR_REG__ char *fgets(char *s, short n, FILE *fp)
(file.c, line 357)
pedrom::ungetc equ pedrom@0013
__ATTR_REG__ short ungetc(short c, FILE *f)
(files.c, line 383)
pedrom::fflush equ pedrom@0014
__ATTR_REG__ short fflush(FILE *f)
(files.c, line 395)
pedrom::clearerr equ pedrom@0015
__ATTR_REG__ void clearerr(FILE *f)
(files.c, line 405)
pedrom::ferror equ pedrom@0016
__ATTR_REG__ short ferror (const FILE *f)
(files.c, line 411)
pedrom::rewind equ pedrom@0017
__ATTR_REG__ void rewind (FILE *f)
(files.c, line 417
pedrom::fprintf equ pedrom@0018
short fprintf(FILE *f, const char *fmt, ...)
(files.c, line 424)
pedrom::tmpnam equ pedrom@0019
char *tmpnam(char *s asm("a0"))
(files.c, line 434)
pedrom::qsort equ pedrom@001b
void qsort (void *list asm("a0"), short num_items asm("d0"), short size asm("d1"), compare_t cmp_func asm("a1"))
(qsort.c, line 28)
pedrom::bsearch equ pedrom@001e
void *bsearch(const void *key asm("a0"), const void *bptr asm("a1"), short n asm("d0"), short w asm("d1"), compare_t cmp_func asm("a2"))
(qsort.c, line 285)
pedrom::remove equ pedrom@001f
pedrom::unlink equ pedrom@001f
short unlink(const char *fname asm("a0"))
(files.c, line 443)
pedrom::rename equ pedrom@0020
short rename(const char *old asm("a0"), const char *new asm("a1"))
(files.c, line 449)
pedrom::atoi equ pedrom@0021
pedrom::atof equ pedrom@0021
In: a0 -> string(NULL)
Out:; d0.l = Number (atol)
d0.w = Number (atoi)
(Misc.asm, line 535)
pedrom::kbd_queue equ pedrom@0022
void *kbd_queue (void)
(Misc2.asm, line 226)
pedrom::rand equ pedrom@0023
int rand (rand)
(Misc2.asm, line 385)
pedrom::srand equ pedrom@0024
void srand (unsigned long seed asm ("d0"))
(Misc2.asm, line 404)
pedrom::calloc equ pedrom@0025
void *calloc (unsigned short NoOfItems asm("d0"), unsigned short SizeOfItems asm("d1"));
(Misc2.asm, line 409)
pedrom::realloc equ pedrom@0026
void *realloc (void *Ptr asm("a0"), unsigned long NewSize asm("d1"));
(Misc2.asm, line 423)
pedrom::atof equ pedrom@0027
float atof (const char *s asm("a2"));
(Misc2.asm, line 447)
pedrom::_sputc equ pedrom@0028
short _sputc(short ch, FILE *fp)
(printf.c, line 478)
pedrom::perror equ pedrom@0029
void perror(const char *str asm("a2"))
(Misc2.asm, line 487)
pedrom::getenv equ pedrom@002a
const char *getenv(const char *name asm("a2"));
(Misc.asm, line 481)
pedrom::system equ pedrom@002b
int system(const char *command asm("a0"))
(System.asm, line 709)
pedrom::setvbuf equ pedrom@002c
int setvbuf(FILE *stream, char *buf, int mode , size_t size);
(Misc2.asm, line 319)