Build the pinned termtris branch (be5b323) with this compiler, assemble and link it with the TI 1987 GSPA/GSPLNK and RTS.LIB, and run the proven play_keys board/move/panels/quit paths in MAME with the M4 loader. Add the contiguous-stack varargs MAME probe and the switch-to-lookup driver regression check. The termtris build found the i8/i16 argument, i1/ anyext load, nested-data, MULHS and late-GEP gaps fixed in the compiler.
16 lines
493 B
C
16 lines
493 B
C
/*
|
|
* string.h -- the subset of <string.h> termtris uses, for the freestanding
|
|
* tms-clang build. The implementations come from the TI 1987 RTS.LIB.
|
|
*/
|
|
#ifndef VT_TERMTRIS_STRING_H_
|
|
#define VT_TERMTRIS_STRING_H_
|
|
|
|
void *memcpy(void *dst, const void *src, unsigned n);
|
|
void *memset(void *dst, int c, unsigned n);
|
|
unsigned strlen(const char *s);
|
|
char *strcpy(char *dst, const char *src);
|
|
char *strncpy(char *dst, const char *src, unsigned n);
|
|
int strcmp(const char *a, const char *b);
|
|
|
|
#endif
|