Decomped strcat

Decomped by @chordtoll
This commit is contained in:
AnonymousRandomPerson 2024-10-28 21:25:24 -04:00
parent 0f4b279870
commit f05560c5d9
7 changed files with 36517 additions and 36504 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

34279
asm/main_020897DC.s Normal file

File diff suppressed because it is too large Load Diff

6
include/main_020897AC.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef PMDSKY_MAIN_020897AC_H
#define PMDSKY_MAIN_020897AC_H
char* strcat(char* dest, const char* src);
#endif //PMDSKY_MAIN_020897AC_H

View File

@ -46,6 +46,8 @@ Static main
Object asm/main_0207F894.o
Object src/main_02089678.o
Object asm/main_02089694.o
Object src/main_020897AC.o
Object asm/main_020897DC.o
}
Autoload ITCM

17
src/main_020897AC.c Normal file
View File

@ -0,0 +1,17 @@
#include "main_020897AC.h"
char* strcat(char* dest, const char* src) {
char *end_of_dest = dest;
char *appended_point;
while ((*(end_of_dest++)) != 0) {}
end_of_dest--;
do {
char src_char = *(src++);
char *append_point = end_of_dest;
append_point = end_of_dest++;
*append_point = src_char;
appended_point = &(*append_point);
if ((*appended_point) == 0) return dest;
} while (1);
}