From 21b019c010c96bdc45d330cc746490df9781896c Mon Sep 17 00:00:00 2001 From: rozlette Date: Thu, 25 Oct 2018 23:16:12 -0500 Subject: [PATCH] Add a few already decompiled files --- .gitignore | 3 ++- codescript.txt | 11 ++++++----- src/test.c | 39 --------------------------------------- 3 files changed, 8 insertions(+), 45 deletions(-) delete mode 100644 src/test.c diff --git a/.gitignore b/.gitignore index f261cc67aa..cbe2e08126 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 62b4363b4d..a321595201 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 2e099ac8db..0000000000 --- a/src/test.c +++ /dev/null @@ -1,39 +0,0 @@ -#include - -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; -}