func_8024BE8() match, core1/code_3A70.c done

This commit is contained in:
Banjo Kazooie
2023-01-02 21:01:36 -06:00
parent 1d406e1820
commit 3ea841c6e1
5 changed files with 27 additions and 53 deletions

View File

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

View File

@@ -151,7 +151,7 @@ segments:
- [0xF1C1F0, c, code_2FA0] #DONE - [0xF1C1F0, c, code_2FA0] #DONE
- [0xF1C410, c, code_31C0] #DONE - [0xF1C410, c, code_31C0] #DONE
- [0xF1C4A0, c, code_3250] #DONE - [0xF1C4A0, c, code_3250] #DONE
- [0xF1CCC0, c, code_3A70] - [0xF1CCC0, c, code_3A70] #DONE
- [0xF1E8A0, c, code_5650] - [0xF1E8A0, c, code_5650]
- [0xF202E0, c, code_7090] #DONE - [0xF202E0, c, code_7090] #DONE
- [0xF20500, c, code_72B0] #DONE - [0xF20500, c, code_72B0] #DONE

View File

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

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -202,53 +202,27 @@ void func_802424D4(Gfx **gfx, Mtx **mtx, Vtx **vtx, f32 arg3[3], f32 arg4[3], f3
} }
} }
#ifndef NONMATCHING void func_80242BE8(Gfx **gfx, Vtx **arg1, f32 arg2[2][2][2][3], s32 arg3[3], s32 *arg4, s32 arg5)
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_3A70/func_80242BE8.s") {
#else
void func_80242BE8(Gfx **gfx, Vtx **arg1, f32 arg2[2][2][2][3], s32 arg3[3], s32 *arg4, s32 arg5) {
f32 sp84[3]; f32 sp84[3];
f32 *temp_a0; #define var_v0 ((f32*)((u8*)arg2 + (i << 2) * sizeof(f32[3]) + (j << 1) * sizeof(f32[3]) + k * sizeof(f32[3])))
f32 *var_v0; s32 i;
f32 temp_f12; s32 j;
f32 var_f18; s32 k;
s32 temp_a2;
s32 var_a2;
s32 var_a3;
s32 var_t2;
s32 var_v1;
void *temp_v0;
void *temp_v0_10;
void *temp_v0_11;
void *temp_v0_12;
void *temp_v0_13;
void *temp_v0_14;
void *temp_v0_15;
void *temp_v0_16;
void *temp_v0_2;
void *temp_v0_3;
void *temp_v0_4;
void *temp_v0_5;
void *temp_v0_6;
void *temp_v0_7;
void *temp_v0_8;
void *temp_v0_9;
func_8024C5CC(sp84); func_8024C5CC(sp84);
gSPDisplayList((*gfx)++, D_80275880); gSPDisplayList((*gfx)++, D_80275880);
var_t2 = 0; if (arg5){
if(arg5){
gSPSetGeometryMode((*gfx)++, G_CULL_BACK); gSPSetGeometryMode((*gfx)++, G_CULL_BACK);
} } else {
else{
gSPSetGeometryMode((*gfx)++, G_CULL_FRONT); gSPSetGeometryMode((*gfx)++, G_CULL_FRONT);
} }
gSPVertex((*gfx)++, *arg1, 8, 0); gSPVertex((*gfx)++, *arg1, 8, 0);
for(var_t2 = 0; var_t2 < 2; var_t2++){ for(i = 0; i < 2; i++){
for(var_a3 = 0; var_a3 < 2; var_a3++){ for(j = 0; j < 2; j++){
for(var_v1 = 0; var_v1 < 2; var_v1++){ for(k = 0; k < 2; k++){
(*arg1)->v.ob[0] = arg2[var_t2][var_a3][var_v1][0] - sp84[0]; (*arg1)->v.ob[0] = var_v0[0] - sp84[0];
(*arg1)->v.ob[1] = arg2[var_t2][var_a3][var_v1][1] - sp84[1]; (*arg1)->v.ob[1] = var_v0[1] - sp84[1];
(*arg1)->v.ob[2] = arg2[var_t2][var_a3][var_v1][2] - sp84[2]; (*arg1)->v.ob[2] = var_v0[2] - sp84[2];
(*arg1)->v.flag = 0; (*arg1)->v.flag = 0;
(*arg1)->v.tc[0] = 0; (*arg1)->v.tc[0] = 0;
(*arg1)->v.tc[1] = 0; (*arg1)->v.tc[1] = 0;
@@ -260,19 +234,19 @@ void func_80242BE8(Gfx **gfx, Vtx **arg1, f32 arg2[2][2][2][3], s32 arg3[3], s32
} }
} }
} }
#undef var_v0
gDPPipeSync((*gfx)++); gDPPipeSync((*gfx)++);
gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], *arg4); gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], arg4[0]);
gSP2Triangles((*gfx)++, 7, 3, 5, 0, 5, 3, 1, 0); gSP2Triangles((*gfx)++, 7, 3, 5, 0, 5, 3, 1, 0);
gSP1Quadrangle((*gfx)++, 6, 4, 0, 2, 0); gSP1Quadrangle((*gfx)++, 6, 4, 0, 2, 0);
gDPPipeSync((*gfx)++); gDPPipeSync((*gfx)++);
gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], *arg4); gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], arg4[1]);
gSP1Quadrangle((*gfx)++, 7, 6, 2, 3, 0); gSP1Quadrangle((*gfx)++, 7, 6, 2, 3, 0);
gSP2Triangles((*gfx)++, 4, 5, 0, 0, 5, 1, 0, 0); gSP2Triangles((*gfx)++, 4, 5, 0, 0, 5, 1, 0, 0);
gDPPipeSync((*gfx)++); gDPPipeSync((*gfx)++);
gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], *arg4); gDPSetPrimColor((*gfx)++, 0, 0, arg3[0], arg3[1], arg3[2], arg4[2]);
gSP1Quadrangle((*gfx)++, 5, 4, 6, 7, 0); gSP1Quadrangle((*gfx)++, 5, 4, 6, 7, 0);
gSP2Triangles((*gfx)++, 0, 1, 2, 0, 1, 3, 2, 0); gSP2Triangles((*gfx)++, 0, 1, 2, 0, 1, 3, 2, 0);
} }
#endif