This commit is contained in:
Donkey Kong 2024-09-21 17:38:05 -05:00
parent a9a86e579d
commit f2fd9fe031
7 changed files with 16 additions and 10 deletions

View File

@ -315,7 +315,7 @@ clean:
@$(RM) -f *.ld
# Per-file flag definitions
# build/us/src/global_asm/code_166A0.c.o: OPT_FLAGS = -O3
# build/us/src/global_asm/rand.c.o: OPT_FLAGS = -O3
# build/us/src/global_asm/code_1E2D0.c.o: OPT_FLAGS = -O3
build/us/src/dk64_boot/dk64_boot_3390.c.o: OPT_FLAGS = -O2

View File

@ -220,7 +220,7 @@ segments:
- [0x2015010, c, code_15010]
- [0x2015050, c, heap]
- [0x2016550, c, done/code_16550]
- [0x20166A0, c, code_166A0]
- [0x20166A0, c, rand]
- [0x20169F0, c, code_169F0]
- [0x2016A20, c, code_16A20]
- [0x2016B60, bin, code_16B60]
@ -375,7 +375,7 @@ segments:
- [0x215BE40, .rodata, code_131B0]
- [0x215BF90, .rodata, heap]
- [0x215BFD0, .rodata, done/code_16550]
- [0x215BFF0, rodata] # TODO: code_166A0, code_1E2D0
- [0x215BFF0, rodata] # TODO: rand, code_1E2D0
- [0x215CC70, .rodata, code_2C910]
- [0x215CE00, .rodata, code_2DE90]
- [0x215CE60, .rodata, code_2F550]

View File

@ -1598,7 +1598,7 @@ us,asm,func_global_asm_806E03C8,140,yes
us,asm,func_global_asm_8065FEB8,440,yes
us,asm,n_alClose,76,yes
us,asm,func_global_asm_806C7248,8,yes
us,asm,func_global_asm_806119FC,72,no
us,asm,func_global_asm_806119FC,72,yes
us,asm,func_global_asm_806D0378,68,yes
us,asm,func_global_asm_80688EE4,144,yes
us,asm,func_global_asm_80674884,472,no

1 version section function length matching
1598 us asm func_global_asm_8065FEB8 440 yes
1599 us asm n_alClose 76 yes
1600 us asm func_global_asm_806C7248 8 yes
1601 us asm func_global_asm_806119FC 72 no yes
1602 us asm func_global_asm_806D0378 68 yes
1603 us asm func_global_asm_80688EE4 144 yes
1604 us asm func_global_asm_80674884 472 no

View File

@ -1598,7 +1598,7 @@ us,asm,func_global_asm_806E03C8,140,yes
us,asm,func_global_asm_8065FEB8,440,yes
us,asm,n_alClose,76,yes
us,asm,func_global_asm_806C7248,8,yes
us,asm,func_global_asm_806119FC,72,no
us,asm,func_global_asm_806119FC,72,yes
us,asm,func_global_asm_806D0378,68,yes
us,asm,func_global_asm_80688EE4,144,yes
us,asm,func_global_asm_80674884,472,no

1 version section function length matching
1598 us asm func_global_asm_8065FEB8 440 yes
1599 us asm n_alClose 76 yes
1600 us asm func_global_asm_806C7248 8 yes
1601 us asm func_global_asm_806119FC 72 no yes
1602 us asm func_global_asm_806D0378 68 yes
1603 us asm func_global_asm_80688EE4 144 yes
1604 us asm func_global_asm_80674884 472 no

View File

@ -17,7 +17,7 @@
<text x="38.5" y="14">global_asm</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="111.5" y="15" fill="#010101" fill-opacity=".3">36.4651%</text>
<text x="110.5" y="14">36.4651%</text>
<text x="111.5" y="15" fill="#010101" fill-opacity=".3">36.4710%</text>
<text x="110.5" y="14">36.4710%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -17,7 +17,7 @@
<text x="66.0" y="14">Donkey Kong 64 (US)</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="166.5" y="15" fill="#010101" fill-opacity=".3">38.7692%</text>
<text x="165.5" y="14">38.7692%</text>
<text x="166.5" y="15" fill="#010101" fill-opacity=".3">38.7736%</text>
<text x="165.5" y="14">38.7736%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -17,7 +17,13 @@ void func_global_asm_806119F0(s32 arg0) {
D_global_asm_80746A40 = arg0;
}
#pragma GLOBAL_ASM("asm/nonmatchings/global_asm/code_166A0/func_global_asm_806119FC.s")
f32 func_global_asm_806119FC(void) {
f32 var_f6;
u32 temp_v0;
var_f6 = func_global_asm_806119A0();
return var_f6 * 2.3283064e-10f;
}
s32 rand(void) {
return func_global_asm_806119A0() & 0x7FFFFFFF;