core1/code_9D30.c progress

This commit is contained in:
Banjo Kazooie
2022-11-05 16:50:25 -05:00
parent 657f5a80b3
commit cf25186021
6 changed files with 54 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# banjo (92.8322%)
# banjo (92.8727%)
<img src="./progress/progress_total.svg">

View File

@@ -9,7 +9,7 @@
</mask>
<g mask="url(#anybadge_1)">
<path fill="#555" d="M0 0h44v20H0z"/>
<path fill="#3ee000" d="M44 0h67v20H44z"/>
<path fill="#3ce000" d="M44 0h67v20H44z"/>
<path fill="url(#b)" d="M0 0h111v20H0z"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
@@ -17,7 +17,7 @@
<text x="22.0" y="14">core1</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">86.2221%</text>
<text x="77.5" y="14">86.2221%</text>
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">86.5006%</text>
<text x="77.5" y="14">86.5006%</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="75.0" y="14">Banjo-Kazooie (us.v10)</text>
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">92.8322%</text>
<text x="183.5" y="14">92.8322%</text>
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">92.8727%</text>
<text x="183.5" y="14">92.8727%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -130,6 +130,7 @@ void func_80245FB8(float mf[4][4], u16 *perspNorm, float fovy, float aspect, flo
}
#endif
void guPerspective(Mtx *m, u16 *perspNorm, f32 fovy, f32 aspect, f32 near, f32 far, f32 scale) {
f32 sp28[4][4];

View File

@@ -240,9 +240,53 @@ void func_80247F9C(s32 arg0){
func_802484D0();
}
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_9D30/func_80247FD0.s")
void func_80247FD0(u32 arg0) {
s32 var_s0;
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_9D30/func_80248098.s")
D_80275BC4 = D_80275BBC;
D_80275BD4 = 2;
func_80247CEC(D_80275BCC, 0x25, 2);
var_s0 = (arg0 >= 0x01000000U) ? 0x1C
: (arg0 >= 0x10000U) ? 0x14
:0xC;
if (var_s0 >= 0) {
do {
func_80247CEC(D_80275BCC, ((s32) arg0 >> var_s0) & 0xF, 2);
var_s0 -= 4;
} while (var_s0 >= 0);
}
func_80248520();
}
void func_80248098(f32 arg0) {
f32 var_f22;
s32 var_s0;
D_80275BC4 = D_80275BBC;
D_80275BD4 = 2;
if (arg0 < 0.0f) {
func_80247CEC(D_80275BCC, 0x26, 2);
arg0 *= -1.0f;
}
var_f22 = 1e+09;
while((var_f22 >= 10.0f) && (arg0 < var_f22)) {
var_f22 /= 10.0f;
}
while (1e-09 <= var_f22) {
if ((0.09 < var_f22) && (var_f22 < 0.11)) {
func_80247CEC(D_80275BCC, 0x24, 2);
}
var_s0 = 0;
while (var_f22 <= arg0) {
arg0 -= var_f22;
var_s0 += 1;
}
func_80247CEC(D_80275BCC, var_s0, 2);
var_f22 /= 10.0f;
}
func_80248520();
}
s32 func_8024824C(s32 arg0) {
if ((arg0 >= (s32) D_80275BE8[0]) && ((s32) D_80275BE8[1] >= arg0)) {

View File

@@ -286,7 +286,7 @@ segments:
- [0x39C40, .rodata, code_5650]
- [0x39CA0, .rodata, code_72B0]
- [0x39CC0, .rodata, code_7F60]
- [0x39CE0, bin, data_39CE0] # .rodata, code_9D30]
- [0x39CE0, .rodata, code_9D30]
- [0x39D00, .rodata, done/code_CE60]
- [0x39FD0, .rodata, code_EAF0]
- [0x3A050, .rodata, code_10A00]