This commit is contained in:
Kelebek1
2025-03-23 01:44:05 +00:00
parent e60879fa4d
commit df43e27f87
3 changed files with 88 additions and 4 deletions

View File

@@ -1,7 +1,82 @@
#include "global.h"
#include "33E30.h"
#include "src/30640.h"
#include "src/6A40.h"
#include "src/12D80.h"
#pragma GLOBAL_ASM("asm/us/nonmatchings/33E30/func_80033230.s")
static Gfx D_800762F0[] = {
gsSPEndDisplayList(),
};
#pragma GLOBAL_ASM("asm/us/nonmatchings/33E30/func_80033264.s")
static Vtx D_800762F8[] = {
VTX(0, 0, 0, 0, 0, 0x88, 0x00, 0x00, 0x80),
VTX(-5, 15, 0, 0, 0, 0x88, 0x00, 0x00, 0x80),
VTX(5, 15, 0, 0, 0, 0x88, 0x00, 0x00, 0x80),
};
#pragma GLOBAL_ASM("asm/us/nonmatchings/33E30/func_80033284.s")
static u8 D_80076328[] = {
0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77,
};
static Gfx D_80076330[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BOTH | G_FOG | G_LIGHTING | G_TEXTURE_GEN |
G_TEXTURE_GEN_LINEAR | G_LOD | G_SHADING_SMOOTH | G_CLIPPING | 0x0040F9FA),
gsSPSetGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
gsDPPipeSync(),
gsDPLoadTextureBlock_4b(D_80076328, G_IM_FMT_I, 4, 4, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 2, 2,
G_TX_NOLOD, G_TX_NOLOD),
gsDPSetCombineMode(G_CC_PRIMITIVE, G_CC_PRIMITIVE),
gsSPVertex(D_800762F8, 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPEndDisplayList(),
};
void func_80033230(s32 arg0) {
s32 i;
s32 j;
for (i = 0; i < 8; i++) {
for (j = 0; j < 2; j++) {}
}
}
void func_80033264(s32 arg0) {
s32 i;
s32 j;
for (i = 0; i < 4; i++) {
for (j = 0; j < 0; j++) {}
}
}
Gfx* func_80033284(Gfx* arg0, Vec3f* arg1, u8 arg2, u8 arg3, u8 arg4, u8 arg5, f32 arg6) {
f32 sp144;
f32 sp140;
f32 sp13C;
Mtx* sp138;
Mtx spF8;
Mtx spB8;
Mtx sp78;
UNUSED s32 pad;
MtxF sp34;
sp144 = arg1->x;
sp140 = arg1->y;
sp13C = arg1->z;
func_80031EF4(&sp34, &D_8006F088->unk_60.mtxf);
guMtxF2L(&sp34, &sp78);
guScale(&spB8, arg6, arg6, arg6);
guTranslate(&spF8, sp144, sp140, sp13C);
sp138 = func_80005F5C(sizeof(Mtx) * 1);
guMtxCatL(&spB8, &spF8, sp138);
guMtxCatL(&sp78, sp138, sp138);
gSPMatrix(arg0++, sp138, G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
gDPSetPrimColor(arg0++, 0, 0, arg2, arg3, arg4, arg5);
gSPDisplayList(arg0++, D_80076330);
gSPPopMatrix(arg0++, G_MTX_MODELVIEW);
return arg0;
}

7
src/33E30.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef _33E30_H_
#define _33E30_H_
#include "global.h"
#endif // _33E30_H_

View File

@@ -357,6 +357,8 @@
- [0x76290, .data, 2D340]
- [0x764A0, .data, 2E460]
- [0x76A40, data, rom_data_76A40]
- [0x76EF0, .data, 33E30]
- [0x76FB0, data, rom_data_76FB0]
- [0x78570, .data, 373A0]
- [0x78890, .data, 38BB0]
- [0x78990, data, rom_data_78990]