diff options
| author | rozlette <uberpanzermensch@gmail.com> | 2018-10-25 23:16:12 -0500 |
|---|---|---|
| committer | rozlette <uberpanzermensch@gmail.com> | 2018-10-25 23:16:12 -0500 |
| commit | 21b019c010c96bdc45d330cc746490df9781896c (patch) | |
| tree | c965d96a462f0e41cb0a50a16f03ab287d199e45 | |
| parent | 4edcdeb8114e0952d584026c7ce564e749a7f07c (diff) | |
Add a few already decompiled files
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | codescript.txt | 11 | ||||
| -rw-r--r-- | src/test.c | 39 |
3 files changed, 8 insertions, 45 deletions
diff --git a/.gitignore b/.gitignore index f261cc67a..cbe2e0812 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ ido/* __pychahe__/*
*.pyc
test.txt
-*.xlsx
\ No newline at end of file +*.xlsx
+src/test.c
\ No newline at end of file diff --git a/codescript.txt b/codescript.txt index 62b4363b4..a32159520 100644 --- a/codescript.txt +++ b/codescript.txt @@ -33,7 +33,7 @@ SECTIONS build/asm/boot_0x800882A0.o(.text) build/asm/sinf.o(.text) build/asm/sins.o(.text) - build/asm/sptask.o(.text) + build/src/libultra/io/sptask.o(.text) build/asm/ll.o(.text) build/asm/exceptasm.o(.text) build/src/libultra/os/thread.o(.text) @@ -160,11 +160,12 @@ SECTIONS build/asm/xldtob.o(.text) build/asm/ldiv.o(.text) build/asm/xlitob.o(.text) - build/asm/sirawread.o(.text) - build/asm/spgetstat.o(.text) - build/asm/spsetstat.o(.text) + build/src/libultra/io/sirawread.o(.text) + build/src/libultra/io/spgetstat.o(.text) + build/src/libultra/io/spsetstat.o(.text) + . = ALIGN(0x20); /* XXX insert NOPs to pad the file */ build/asm/vimgr.o(.text) - build/asm/vigetcurrcontext.o(.text) + build/src/libultra/io/vigetcurrcontext.o(.text) build/asm/writebackdcacheall.o(.text) build/src/libultra/os/getcurrfaultthread.o(.text) build/asm/boot_0x80095600.o(.text) diff --git a/src/test.c b/src/test.c deleted file mode 100644 index 2e099ac8d..000000000 --- a/src/test.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <string.h> - -unsigned char* strchr(const unsigned char* s, int c) -{ - const unsigned char ch = c; - - while ( *s != ch) { - if (*s == '\0') { - return NULL; - } - s++; - } - - return (unsigned char*)s; -} - -size_t strlen(const unsigned char* s) -{ - const unsigned char* sc = s; - - while (*sc != '\0') sc++; - - return (size_t)(sc - s); -} - -void* memcpy(void* s1, const void* s2, size_t n) -{ - unsigned char* su1 = (unsigned char*)s1; - const unsigned char* su2 = (const unsigned char*)s2; - - while (n > 0) { - *su1 = *su2; - su1++; - su2++; - n--; - } - - return s1; -} |
