moved strings + decompile simple store functions

This commit is contained in:
Julgodis
2021-04-10 07:02:38 +02:00
parent 2661db6aaa
commit 0ad6ebe7b4
1299 changed files with 51830 additions and 43634 deletions
@@ -60,7 +60,7 @@ SECTION_RODATA static u8 const fix_pool_sizes[24] = {
0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x14,
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x44,
};
COMPILER_STRIP_GATE(803A2220, &fix_pool_sizes);
COMPILER_STRIP_GATE(0x803A2220, &fix_pool_sizes);
/* 80362C20-80362D78 35D560 0158+00 1/1 0/0 0/0 .text deallocate_from_fixed_pools */
#pragma push
@@ -134,6 +134,12 @@ asm void __FileWrite() {
#pragma pop
/* ############################################################################################## */
/* 803A2318-803A2318 02E978 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
#pragma push
#pragma force_active on
SECTION_DEAD static char const* const stringBase_803A2318 = "";
#pragma pop
/* 80450AD8-80450AE0 000558 0002+06 1/1 0/0 0/0 .sdata @wstringBase0 */
SECTION_SDATA static u8 data_80450AD8[2 + 6 /* padding */] = {
0x00,
@@ -158,6 +164,21 @@ asm void __pformatter() {
#pragma pop
/* ############################################################################################## */
/* 803A2318-803A2318 02E978 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
#pragma push
#pragma force_active on
SECTION_DEAD static char const* const stringBase_803A2319 = "-INF";
SECTION_DEAD static char const* const stringBase_803A231E = "-inf";
SECTION_DEAD static char const* const stringBase_803A2323 = "INF";
SECTION_DEAD static char const* const stringBase_803A2327 = "inf";
SECTION_DEAD static char const* const stringBase_803A232B = "-NAN";
SECTION_DEAD static char const* const stringBase_803A2330 = "-nan";
SECTION_DEAD static char const* const stringBase_803A2335 = "NAN";
SECTION_DEAD static char const* const stringBase_803A2339 = "nan";
/* @stringBase0 padding */
SECTION_DEAD static char const* const pad_803A233D = "\0\0";
#pragma pop
/* 80456670-80456678 004C70 0008+00 1/1 0/0 0/0 .sdata2 @1089 */
SECTION_SDATA2 static u8 lit_1089[8] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -323,19 +344,4 @@ static asm void parse_format() {
}
#pragma pop
/* 803A2318-803A2340 02E978 0025+03 3/3 0/0 0/0 .rodata @stringBase0 */
#pragma push
#pragma force_active on
#pragma section ".dead"
SECTION_DEAD static char const* const stringBase_803A2318 = "";
SECTION_DEAD static char const* const stringBase_803A2319 = "-INF";
SECTION_DEAD static char const* const stringBase_803A231E = "-inf";
SECTION_DEAD static char const* const stringBase_803A2323 = "INF";
SECTION_DEAD static char const* const stringBase_803A2327 = "inf";
SECTION_DEAD static char const* const stringBase_803A232B = "-NAN";
SECTION_DEAD static char const* const stringBase_803A2330 = "-nan";
SECTION_DEAD static char const* const stringBase_803A2335 = "NAN";
SECTION_DEAD static char const* const stringBase_803A2339 = "nan";
/* @stringBase0 padding */
SECTION_DEAD static char const* const pad_803A233D = "\0\0";
#pragma pop
/* 803A2318-803A2318 02E978 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
@@ -59,6 +59,37 @@ asm void __num2dec_internal() {
#pragma pop
/* ############################################################################################## */
/* 803A2238-803A2238 02E898 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
#pragma push
#pragma force_active on
SECTION_DEAD static char const* const stringBase_803A2238 = "179769313486231580793729011405303420";
SECTION_DEAD static char const* const stringBase_803A225D =
"542101086242752217003726400434970855712890625";
SECTION_DEAD static char const* const stringBase_803A228B =
"11102230246251565404236316680908203125";
SECTION_DEAD static char const* const stringBase_803A22B2 = "23283064365386962890625";
SECTION_DEAD static char const* const stringBase_803A22CA = "152587890625";
SECTION_DEAD static char const* const stringBase_803A22D7 = "390625";
SECTION_DEAD static char const* const stringBase_803A22DE = "78125";
SECTION_DEAD static char const* const stringBase_803A22E4 = "15625";
SECTION_DEAD static char const* const stringBase_803A22EA = "3125";
SECTION_DEAD static char const* const stringBase_803A22EF = "625";
SECTION_DEAD static char const* const stringBase_803A22F3 = "125";
SECTION_DEAD static char const* const stringBase_803A22F7 = "25";
SECTION_DEAD static char const* const stringBase_803A22FA = "5";
SECTION_DEAD static char const* const stringBase_803A22FC = "1";
SECTION_DEAD static char const* const stringBase_803A22FE = "2";
SECTION_DEAD static char const* const stringBase_803A2300 = "4";
SECTION_DEAD static char const* const stringBase_803A2302 = "8";
SECTION_DEAD static char const* const stringBase_803A2304 = "16";
SECTION_DEAD static char const* const stringBase_803A2307 = "32";
SECTION_DEAD static char const* const stringBase_803A230A = "64";
SECTION_DEAD static char const* const stringBase_803A230D = "128";
SECTION_DEAD static char const* const stringBase_803A2311 = "256";
/* @stringBase0 padding */
SECTION_DEAD static char const* const pad_803A2315 = "\0\0";
#pragma pop
/* 803D2AF0-803D2C18 -00001 0124+04 1/1 0/0 0/0 .data @1710 */
SECTION_DATA static void* lit_1710[73 + 1 /* padding */] = {
(void*)(((char*)__two_exp) + 0x40),
@@ -158,34 +189,4 @@ asm void __timesdec() {
}
#pragma pop
/* 803A2238-803A2318 02E898 00DD+03 1/1 0/0 0/0 .rodata @stringBase0 */
#pragma push
#pragma force_active on
#pragma section ".dead"
SECTION_DEAD static char const* const stringBase_803A2238 = "179769313486231580793729011405303420";
SECTION_DEAD static char const* const stringBase_803A225D =
"542101086242752217003726400434970855712890625";
SECTION_DEAD static char const* const stringBase_803A228B =
"11102230246251565404236316680908203125";
SECTION_DEAD static char const* const stringBase_803A22B2 = "23283064365386962890625";
SECTION_DEAD static char const* const stringBase_803A22CA = "152587890625";
SECTION_DEAD static char const* const stringBase_803A22D7 = "390625";
SECTION_DEAD static char const* const stringBase_803A22DE = "78125";
SECTION_DEAD static char const* const stringBase_803A22E4 = "15625";
SECTION_DEAD static char const* const stringBase_803A22EA = "3125";
SECTION_DEAD static char const* const stringBase_803A22EF = "625";
SECTION_DEAD static char const* const stringBase_803A22F3 = "125";
SECTION_DEAD static char const* const stringBase_803A22F7 = "25";
SECTION_DEAD static char const* const stringBase_803A22FA = "5";
SECTION_DEAD static char const* const stringBase_803A22FC = "1";
SECTION_DEAD static char const* const stringBase_803A22FE = "2";
SECTION_DEAD static char const* const stringBase_803A2300 = "4";
SECTION_DEAD static char const* const stringBase_803A2302 = "8";
SECTION_DEAD static char const* const stringBase_803A2304 = "16";
SECTION_DEAD static char const* const stringBase_803A2307 = "32";
SECTION_DEAD static char const* const stringBase_803A230A = "64";
SECTION_DEAD static char const* const stringBase_803A230D = "128";
SECTION_DEAD static char const* const stringBase_803A2311 = "256";
/* @stringBase0 padding */
SECTION_DEAD static char const* const pad_803A2315 = "\0\0";
#pragma pop
/* 803A2238-803A2238 02E898 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */
@@ -26,7 +26,7 @@ extern "C" void __ieee754_exp();
SECTION_RODATA static u8 const halF[16] = {
0x3F, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xBF, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2340, &halF);
COMPILER_STRIP_GATE(0x803A2340, &halF);
/* 803A2350-803A2360 02E9B0 0010+00 0/1 0/0 0/0 .rodata ln2HI */
#pragma push
@@ -34,7 +34,7 @@ COMPILER_STRIP_GATE(803A2340, &halF);
SECTION_RODATA static u8 const ln2HI[16] = {
0x3F, 0xE6, 0x2E, 0x42, 0xFE, 0xE0, 0x00, 0x00, 0xBF, 0xE6, 0x2E, 0x42, 0xFE, 0xE0, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2350, &ln2HI);
COMPILER_STRIP_GATE(0x803A2350, &ln2HI);
#pragma pop
/* 803A2360-803A2370 02E9C0 0010+00 0/1 0/0 0/0 .rodata ln2LO */
@@ -43,7 +43,7 @@ COMPILER_STRIP_GATE(803A2350, &ln2HI);
SECTION_RODATA static u8 const ln2LO[16] = {
0x3D, 0xEA, 0x39, 0xEF, 0x35, 0x79, 0x3C, 0x76, 0xBD, 0xEA, 0x39, 0xEF, 0x35, 0x79, 0x3C, 0x76,
};
COMPILER_STRIP_GATE(803A2360, &ln2LO);
COMPILER_STRIP_GATE(0x803A2360, &ln2LO);
#pragma pop
/* 804567E0-804567E8 004DE0 0008+00 1/1 0/0 0/0 .sdata2 @115 */
@@ -26,7 +26,7 @@ extern "C" void __ieee754_fmod();
SECTION_RODATA static u8 const Zero[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2370, &Zero);
COMPILER_STRIP_GATE(0x803A2370, &Zero);
/* 80369B9C-80369ED8 3644DC 033C+00 0/0 1/1 0/0 .text __ieee754_fmod */
#pragma push
@@ -31,7 +31,7 @@ extern "C" extern u8 errno[4 + 4 /* padding */];
SECTION_RODATA static u8 const bp[16] = {
0x3F, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2380, &bp);
COMPILER_STRIP_GATE(0x803A2380, &bp);
/* 803A2390-803A23A0 02E9F0 0010+00 0/1 0/0 0/0 .rodata dp_h */
#pragma push
@@ -39,7 +39,7 @@ COMPILER_STRIP_GATE(803A2380, &bp);
SECTION_RODATA static u8 const dp_h[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xE2, 0xB8, 0x03, 0x40, 0x00, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2390, &dp_h);
COMPILER_STRIP_GATE(0x803A2390, &dp_h);
#pragma pop
/* 803A23A0-803A23B0 02EA00 0010+00 0/1 0/0 0/0 .rodata dp_l */
@@ -48,7 +48,7 @@ COMPILER_STRIP_GATE(803A2390, &dp_h);
SECTION_RODATA static u8 const dp_l[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x4C, 0xFD, 0xEB, 0x43, 0xCF, 0xD0, 0x06,
};
COMPILER_STRIP_GATE(803A23A0, &dp_l);
COMPILER_STRIP_GATE(0x803A23A0, &dp_l);
#pragma pop
/* 80456858-80456860 004E58 0008+00 1/1 0/0 0/0 .sdata2 @336 */
@@ -44,7 +44,7 @@ SECTION_RODATA static u8 const two_over_pi[264] = {
0x00, 0x4D, 0x73, 0x27, 0x00, 0x31, 0x06, 0x06, 0x00, 0x15, 0x56, 0xCA, 0x00, 0x73, 0xA8, 0xC9,
0x00, 0x60, 0xE2, 0x7B, 0x00, 0xC0, 0x8C, 0x6B,
};
COMPILER_STRIP_GATE(803A23B0, &two_over_pi);
COMPILER_STRIP_GATE(0x803A23B0, &two_over_pi);
/* 803A24B8-803A2538 02EB18 0080+00 1/1 0/0 0/0 .rodata npio2_hw */
SECTION_RODATA static u8 const npio2_hw[128] = {
@@ -57,7 +57,7 @@ SECTION_RODATA static u8 const npio2_hw[128] = {
0x40, 0x43, 0xA2, 0x8C, 0x40, 0x44, 0x6B, 0x9C, 0x40, 0x45, 0x34, 0xAC, 0x40, 0x45, 0xFD, 0xBB,
0x40, 0x46, 0xC6, 0xCB, 0x40, 0x47, 0x8F, 0xDB, 0x40, 0x48, 0x58, 0xEB, 0x40, 0x49, 0x21, 0xFB,
};
COMPILER_STRIP_GATE(803A24B8, &npio2_hw);
COMPILER_STRIP_GATE(0x803A24B8, &npio2_hw);
/* 80456968-80456970 004F68 0008+00 1/1 0/0 0/0 .sdata2 @145 */
SECTION_SDATA2 static u8 lit_145[8] = {
@@ -31,7 +31,7 @@ extern "C" void ldexp();
SECTION_RODATA static u8 const init_jk[16] = {
0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x06,
};
COMPILER_STRIP_GATE(803A2538, &init_jk);
COMPILER_STRIP_GATE(0x803A2538, &init_jk);
/* 803A2548-803A2588 02EBA8 0040+00 1/1 0/0 0/0 .rodata PIo2 */
SECTION_RODATA static u8 const PIo2[64] = {
@@ -40,7 +40,7 @@ SECTION_RODATA static u8 const PIo2[64] = {
0x39, 0xF0, 0x1B, 0x83, 0x80, 0x00, 0x00, 0x00, 0x38, 0x7A, 0x25, 0x20, 0x40, 0x00, 0x00, 0x00,
0x36, 0xE3, 0x82, 0x22, 0x80, 0x00, 0x00, 0x00, 0x35, 0x69, 0xF3, 0x1D, 0x00, 0x00, 0x00, 0x00,
};
COMPILER_STRIP_GATE(803A2548, &PIo2);
COMPILER_STRIP_GATE(0x803A2548, &PIo2);
/* 80456A08-80456A10 005008 0008+00 1/1 0/0 0/0 .sdata2 @436 */
SECTION_SDATA2 static u8 lit_436[8] = {
@@ -32,7 +32,7 @@ SECTION_RODATA static u8 const T[104] = {
0x88, 0xA0, 0x37, 0x92, 0xA6, 0x3F, 0x12, 0xB8, 0x0F, 0x32, 0xF0, 0xA7, 0xE9, 0xBE, 0xF3,
0x75, 0xCB, 0xDB, 0x60, 0x53, 0x73, 0x3E, 0xFB, 0x2A, 0x70, 0x74, 0xBF, 0x7A, 0xD4,
};
COMPILER_STRIP_GATE(803A2588, &T);
COMPILER_STRIP_GATE(0x803A2588, &T);
/* 80456A80-80456A88 005080 0008+00 1/1 0/0 0/0 .sdata2 @94 */
SECTION_SDATA2 static f64 lit_94 = 1.0;
@@ -27,7 +27,7 @@ SECTION_RODATA static u8 const atanhi[32] = {
0x3F, 0xDD, 0xAC, 0x67, 0x05, 0x61, 0xBB, 0x4F, 0x3F, 0xE9, 0x21, 0xFB, 0x54, 0x44, 0x2D, 0x18,
0x3F, 0xEF, 0x73, 0x0B, 0xD2, 0x81, 0xF6, 0x9B, 0x3F, 0xF9, 0x21, 0xFB, 0x54, 0x44, 0x2D, 0x18,
};
COMPILER_STRIP_GATE(803A25F0, &atanhi);
COMPILER_STRIP_GATE(0x803A25F0, &atanhi);
/* 803A2610-803A2630 02EC70 0020+00 0/1 0/0 0/0 .rodata atanlo */
#pragma push
@@ -36,7 +36,7 @@ SECTION_RODATA static u8 const atanlo[32] = {
0x3C, 0x7A, 0x2B, 0x7F, 0x22, 0x2F, 0x65, 0xE2, 0x3C, 0x81, 0xA6, 0x26, 0x33, 0x14, 0x5C, 0x07,
0x3C, 0x70, 0x07, 0x88, 0x7A, 0xF0, 0xCB, 0xBD, 0x3C, 0x91, 0xA6, 0x26, 0x33, 0x14, 0x5C, 0x07,
};
COMPILER_STRIP_GATE(803A2610, &atanlo);
COMPILER_STRIP_GATE(0x803A2610, &atanlo);
#pragma pop
/* 803A2630-803A2688 02EC90 0058+00 0/1 0/0 0/0 .rodata aT */
@@ -50,7 +50,7 @@ SECTION_RODATA static u8 const aT[88] = {
0x52, 0xDE, 0xFD, 0x9A, 0x3F, 0xA9, 0x7B, 0x4B, 0x24, 0x76, 0x0D, 0xEB, 0xBF, 0xA2, 0xB4,
0x44, 0x2C, 0x6A, 0x6C, 0x2F, 0x3F, 0x90, 0xAD, 0x3A, 0xE3, 0x22, 0xDA, 0x11,
};
COMPILER_STRIP_GATE(803A2630, &aT);
COMPILER_STRIP_GATE(0x803A2630, &aT);
#pragma pop
/* 80456AB8-80456AC0 0050B8 0008+00 1/1 0/0 0/0 .sdata2 @115 */