Skip to content

Commit

Permalink
Add addresses/function defs for more sdk functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mike8699 committed Nov 18, 2023
1 parent 64d3806 commit 00ab679
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/code/ph.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

.definelabel strlen, 0x2046fc4
.definelabel strcpy, 0x2046fe0
.definelabel strncpy, 0x20470a8
.definelabel strcat, 0x20470f8
.definelabel strcmp, 0x2047128
.definelabel memcmp, 0x204723c
.definelabel strrchr, 0x2047270
.definelabel strstr, 0x20472ac
.definelabel sprintf, 0x200c8d0
.definelabel get_npc_address, 0x203e824
5 changes: 5 additions & 0 deletions base/code/ph.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
// This header file contains definitions for functions, variables, struct
// definitions, etc that are present in the base game.

extern int memcmp(void *s1, void *s2, int size);
extern void strcat(char *dest, char *src);
extern int strcmp(char *s1, char *s2);
extern void strcpy(char *dest, char *src);
extern void strncpy(char *dest, char *src, int n);
extern int32_t strlen(char *s);
extern char *strrchr(char *s, int c);
extern char *strstr(char *haystack, char needle);

// TODO: verify this is correct. I'm not sure if this
// function is really an implementation of sprintf.
Expand Down

0 comments on commit 00ab679

Please sign in to comment.