Moved rodata from C to GLOBAL_ASM in lib/unknown_0CA530

This commit is contained in:
David Benepe
2021-06-05 16:49:19 -05:00
parent e14b59689f
commit 17de52bff7
5 changed files with 19 additions and 11 deletions
@@ -1,3 +1,8 @@
.late_rodata
glabel D_800E94B0
.double 1000000.0
.text
glabel func_800C8284
/* 0C8E84 800C8284 8C8E0000 */ lw $t6, ($a0)
/* 0C8E88 800C8288 44856000 */ mtc1 $a1, $f12
@@ -1,3 +1,8 @@
.late_rodata
glabel D_800E94B8
.double 1000000.0
.text
glabel func_800C8380
/* 0C8F80 800C8380 44852000 */ mtc1 $a1, $f4
/* 0C8F84 800C8384 44864000 */ mtc1 $a2, $f8
@@ -1,3 +1,10 @@
.late_rodata
glabel D_800E94C0
.float 1.0005778075
glabel D_800E94C4
.float 0.999422551
.text
glabel alCents2Ratio
/* 0CA5E0 800C99E0 3C013F80 */ li $at, 0x3F800000 # 1.000000
/* 0CA5E4 800C99E4 44811000 */ mtc1 $at, $f2
-9
View File
@@ -4,15 +4,6 @@
#include "types.h"
#include "macros.h"
/************ .rodata ************/
const DoubleLiteral D_800E94B0 = { 1000000.0 };
const DoubleLiteral D_800E94B8 = { 1000000.0 };
const FloatLiteral D_800E94C0 = { 1.0005778075f };
const FloatLiteral D_800E94C4 = { 0.999422551f };
/*********************************/
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA530/alSynFreeVoice.s")
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA530/alCents2Ratio.s")
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA530/osSetIntMask.s")
+2 -2
View File
@@ -12,8 +12,8 @@ C_JMPTABLE_REGEX = r"(?:(?:D_)|0x)[0-9A-Fa-f]{8}"
NO_OUTPUT = False # If True, then no files will be changed.
ONLY_THE_FIRST_ASM_FILE = False # If True, then only one asm file will be changed.
#ASM_DIRECTORY = 'asm/non_matchings/'
ASM_DIRECTORY = 'lib/asm/non_matchings/'
ASM_DIRECTORY = 'asm/non_matchings/'
#ASM_DIRECTORY = 'lib/asm/non_matchings/'
def getMatches(string, regex):
out = []