Moved .rodata in unknown_0D3020 from asm to C.

This commit is contained in:
David Benepe
2021-06-01 00:43:38 -05:00
parent fa384597c1
commit 77b305e5f1
2 changed files with 97 additions and 109 deletions
-108
View File
@@ -1,108 +0,0 @@
.include "macros.inc"
.macro .aligned_text ascii
.asciz "\ascii"
.balign 4
.endm
.section .rodata
glabel D_800E97C0
.word 0x3FF00000
.word 0x00000000
.word 0xBFC55554
.word 0xBC83656D
.word 0x3F8110ED
.word 0x3804C2A0
.word 0xBF29F6FF
.word 0xEEA56814
.word 0x3EC5DBDF
.word 0x0E314BFE
glabel D_800E97E8
.word 0x3FD45F30
.word 0x6DC9C883
glabel D_800E97F0
.word 0x400921FB
.word 0x50000000
glabel D_800E97F8
.word 0x3E6110B4
.word 0x611A6263
glabel D_800E9800
.word 0x00000000
.word 0x00000000
.word 0x00000000
.word 0x00000000
glabel D_800E9810
.word 0x3FF00000
.word 0x00000000
.word 0xBFC55554
.word 0xBC83656D
.word 0x3F8110ED
.word 0x3804C2A0
.word 0xBF29F6FF
.word 0xEEA56814
.word 0x3EC5DBDF
.word 0x0E314BFE
glabel D_800E9838
.word 0x3FD45F30
.word 0x6DC9C883
glabel D_800E9840
.word 0x400921FB
.word 0x50000000
glabel D_800E9848
.word 0x3E6110B4
.word 0x611A6263
glabel D_800E9850
.word 0x00000000
.word 0x00000000
.word 0x00000000
.word 0x00000000
glabel D_800E9860
.word 0x40240000
.word 0x00000000
.word 0x40590000
.word 0x00000000
.word 0x40C38800
.word 0x00000000
.word 0x4197D784
.word 0x00000000
.word 0x4341C379
.word 0x37E08000
.word 0x4693B8B5
.word 0xB5056E17
.word 0x4D384F03
.word 0xE93FF9F5
.word 0x5A827748
.word 0xF9301D32
.word 0x75154FDD
.word 0x7F73BF3C
glabel D_800E98A8
.aligned_text "NaN"
glabel D_800E98AC
.aligned_text "Inf"
glabel D_800E98B0
.word 0x30000000
.word 0x00000000
glabel D_800E98B8
.word 0x4197D784
.word 0x00000000
glabel D_800E98C0
.word 0x7F810000
.word 0x00000000
.word 0x00000000
.word 0x00000000
+97 -1
View File
@@ -32,8 +32,104 @@ void __osPiRelAccess(void)
osSendMesg(&piAccessQueue, NULL, OS_MESG_NOBLOCK);
}
// Used with _Litob.s. Please move these later!
/**********************************************************************/
// Please move these later!
// Used with cosf
const int D_800E97C0[5][2] = {
{ 0x3FF00000, 0x00000000 },
{ 0xBFC55554, 0xBC83656D },
{ 0x3F8110ED, 0x3804C2A0 },
{ 0xBF29F6FF, 0xEEA56814 },
{ 0x3EC5DBDF, 0x0E314BFE }
};
const int D_800E97E8[2] = {
0x3FD45F30, 0x6DC9C883
};
const int D_800E97F0[2] = {
0x400921FB, 0x50000000
};
const int D_800E97F8[2] = {
0x3E6110B4, 0x611A6263
};
const int D_800E9800[1] = {
0x00000000
};
const int COSF_FILE_PADDING[3] = { 0 };
// Used with sinf
const int D_800E9810[5][2] = {
{ 0x3FF00000, 0x00000000 },
{ 0xBFC55554, 0xBC83656D },
{ 0x3F8110ED, 0x3804C2A0 },
{ 0xBF29F6FF, 0xEEA56814 },
{ 0x3EC5DBDF, 0x0E314BFE }
};
const int D_800E9838[2] = {
0x3FD45F30, 0x6DC9C883
};
const int D_800E9840[2] = {
0x400921FB, 0x50000000
};
const int D_800E9848[2] = {
0x3E6110B4, 0x611A6263
};
const int D_800E9850[1] = {
0x00000000
};
const int SINF_FILE_PADDING[3] = { 0 };
// Used with _Litob
char D_800E4920[20] = "0123456789abcdef"; // lowercase hex digits
char D_800E4934[20] = "0123456789ABCDEF"; // uppercase hex digits
// Powers
const double D_800E9860[] = {
10e0L, 10e1L, 10e3L, 10e7L,
10e15L, 10e31L, 10e63L, 10e127L,
10e255L
};
const char D_800E98A8[] = "NaN";
const char D_800E98AC[] = "Inf";
const int D_800E98B0[2] = {
0x30000000, 0x00000000
};
const int D_800E98B8[2] = {
0x4197D784, 0x00000000
};
const int D_800E98C0[2] = {
0x7F810000, 0x00000000
};