progress definining core1 .data & .rodata sections
This commit is contained in:
@@ -173,7 +173,7 @@ void func_8023DD0C(void){
|
||||
){
|
||||
s32 offset;
|
||||
//render weird CRC failure image
|
||||
for(x= 0x1e; x< D_8027658C - 0x1e; x++){//L8023DEB4
|
||||
for(x= 0x1e; x< framebuffer_height - 0x1e; x++){//L8023DEB4
|
||||
g = x >> 3;
|
||||
for(y = 0x14; y < 0xeb; y++){
|
||||
b = ((func_8023DB5C() << 3) + y*y + x*x) >> 3;
|
||||
@@ -182,7 +182,7 @@ void func_8023DD0C(void){
|
||||
rgba |= _SHIFTL(r, 11, 5 );
|
||||
rgba |= _SHIFTL(g, 6, 5);
|
||||
rgba |= _SHIFTL(1, 0, 1 );
|
||||
offset = ((D_80276588 - 0xff)/2 + y + x*D_80276588);
|
||||
offset = ((framebuffer_width - 0xff)/2 + y + x*framebuffer_width);
|
||||
D_803A5D00[0][offset] = rgba;
|
||||
D_803A5D00[1][offset] = rgba;
|
||||
}
|
||||
|
@@ -33,18 +33,18 @@ typedef struct {
|
||||
f32 joystick[2];
|
||||
}Struct_core1_10A00_1;
|
||||
|
||||
/* .data */
|
||||
extern s32 D_80275D38;
|
||||
|
||||
extern s32 D_80276574; // = CORE2_DATA_CRC2
|
||||
|
||||
/* .data */
|
||||
extern s32 D_80275D30 = 0xC3A68832; //WHAT IS THIS?
|
||||
extern s32 D_80275D34 = 0xDDC3A724; //WHAT IS THIS?
|
||||
extern s32 D_80275D38 = 0;
|
||||
|
||||
/* .bss */
|
||||
UNK_TYPE(s32) D_802810E0[4][5];
|
||||
u8 D_80281130;
|
||||
Struct_core1_10A00_0 D_80281138[4];
|
||||
Struct_core1_10A00_0 D_80281218;
|
||||
// u8 pad_80281230[0x20];
|
||||
Struct_core1_10A00_1 D_80281250[4];
|
||||
OSMesg D_802812B0;
|
||||
OSMesg D_802812B4;
|
||||
@@ -57,7 +57,7 @@ OSContStatus D_80281318;
|
||||
u8 pad_D_80281320[0x8];
|
||||
volatile s32 D_80281328;
|
||||
OSThread D_80281330;
|
||||
u8 pad_D_802814E0[0x200];
|
||||
u8 D_802814E0[0x200];
|
||||
f32 D_802816E0;
|
||||
OSMesgQueue D_802816E8;
|
||||
OSMesg D_80281700[4];
|
||||
@@ -319,7 +319,7 @@ void func_8024EFB0(void *arg0){
|
||||
void func_8024F05C(void){
|
||||
osCreateMesgQueue(&D_802812D8, &D_802812B0, 1);
|
||||
osCreateMesgQueue(&D_802812F0, &D_802812B4, 1);
|
||||
osCreateThread(&D_80281330, 7, func_8024EFB0, NULL, &D_802816E0, 0x28);
|
||||
osCreateThread(&D_80281330, 7, func_8024EFB0, NULL, D_802814E0 + 0x200, 0x28);
|
||||
osSetEventMesg(OS_EVENT_SI, &D_802812D8, &D_802812B0);
|
||||
osContInit(&D_802812D8, &D_80281130, &D_80281318);
|
||||
osContSetCh(1);
|
||||
|
@@ -4,9 +4,6 @@
|
||||
|
||||
|
||||
void func_8024F35C(s32);
|
||||
|
||||
extern f64 D_80278190;
|
||||
|
||||
|
||||
OSMesgQueue D_80282390;
|
||||
OSMesg D_802823A8;
|
||||
@@ -19,7 +16,7 @@ f32 D_80282424;
|
||||
f32 D_80282428;
|
||||
f32 D_8028242C;
|
||||
OSThread D_80282430;
|
||||
u8 pad_D_80282430[0x200];
|
||||
u8 D_802825E0[0x200];
|
||||
|
||||
/* .code */
|
||||
void func_80250D94(f32, f32, f32);
|
||||
@@ -110,7 +107,6 @@ void func_80250C08(void) {
|
||||
}
|
||||
|
||||
void func_80250C84(void){
|
||||
extern s32 D_802827E0;
|
||||
s32 pfs_status;
|
||||
|
||||
func_8024F35C(4);
|
||||
@@ -124,7 +120,7 @@ void func_80250C84(void){
|
||||
D_802823B0 = D_802823AC;
|
||||
if(D_802823AC){
|
||||
osCreateMesgQueue(&D_80282390, &D_802823A8, 1);
|
||||
osCreateThread(&D_80282430, 8, func_8025098C, NULL, &D_802827E0, 0x19);
|
||||
osCreateThread(&D_80282430, 8, func_8025098C, NULL, &D_802825E0[0x200], 0x19);
|
||||
osStartThread(&D_80282430);
|
||||
func_8024BDAC(&D_80282390, 0);
|
||||
}
|
||||
@@ -136,7 +132,7 @@ void func_80250D94(f32 arg0, f32 arg1, f32 arg2){
|
||||
f32 f4;
|
||||
if(arg2 != 0.0f && D_802823AC){
|
||||
if(func_802E4A08() == 0){
|
||||
if(!(D_80278190 < D_80282420 - D_80282424) || !(arg0 + arg1 < D_80282428 + D_8028242C)){
|
||||
if(!(0.1 < D_80282420 - D_80282424) || !(arg0 + arg1 < D_80282428 + D_8028242C)){
|
||||
D_80282420 = arg2;
|
||||
D_80282424 = 0.0f;
|
||||
D_80282428 = arg0;
|
||||
|
@@ -9,13 +9,14 @@ void func_8024632C(Mtx*, f32, f32, f32, f32);
|
||||
f32 func_80263FF0(f32);
|
||||
f32 cosf(f32);
|
||||
|
||||
extern f32 D_80276578;
|
||||
extern f32 D_8027657C;
|
||||
#ifndef CORE2_DATA_CRC2
|
||||
#define CORE2_DATA_CRC2 0
|
||||
#endif
|
||||
|
||||
|
||||
extern f64 D_80278220;
|
||||
extern f64 D_80278228;
|
||||
extern f64 D_80278230;
|
||||
s32 D_80276570 = 0xFF62C2B8; //WHAT IS THIS?
|
||||
s32 D_80276574 = CORE2_DATA_CRC2;
|
||||
f32 D_80276578 = BAD_DTOR;
|
||||
f32 D_8027657C = BAD_DTOR;
|
||||
|
||||
/*.bss*/
|
||||
Mtx_t D_80282810;
|
||||
@@ -170,7 +171,7 @@ void mlMtxRotYaw(f32 arg0) {
|
||||
s32 i;
|
||||
|
||||
if (arg0 != 0.0f) {
|
||||
arg0 *= D_80278220;
|
||||
arg0 *= BAD_DTOR;
|
||||
sin = sinf(arg0);
|
||||
cos = cosf(arg0);
|
||||
for(i = 0; i < 3; i++){
|
||||
@@ -218,7 +219,7 @@ void func_80251F8C(f32 arg0) {
|
||||
s32 i;
|
||||
|
||||
if (arg0 != 0.0f) {
|
||||
arg0 *= D_80278228;
|
||||
arg0 *= BAD_DTOR;
|
||||
sin = sinf(arg0);
|
||||
cos = cosf(arg0);
|
||||
for(i = 0; i < 3; i++){
|
||||
@@ -238,7 +239,7 @@ void func_8025208C(f32 arg0) {
|
||||
s32 i;
|
||||
|
||||
if (arg0 != 0.0f) {
|
||||
arg0 *= D_80278230;
|
||||
arg0 *= BAD_DTOR;
|
||||
sin = sinf(arg0);
|
||||
cos = cosf(arg0);
|
||||
for(i = 0; i < 3; i++){
|
||||
|
@@ -13,14 +13,14 @@ extern u8 D_803A5D00[2][0x1ecc0];
|
||||
void func_80253208(Gfx **gdl, s32 x, s32 y, s32 w, s32 h, void *color_buffer);
|
||||
|
||||
void func_80253190(Gfx **gdl){
|
||||
func_80253208(gdl, 0, 0, D_80276588, D_8027658C, D_803A5D00[func_8024BDA0()]);
|
||||
func_80253208(gdl, 0, 0, framebuffer_width, framebuffer_height, D_803A5D00[func_8024BDA0()]);
|
||||
}
|
||||
|
||||
void func_80253208(Gfx **gdl, s32 x, s32 y, s32 w, s32 h, void *color_buffer){
|
||||
if( D_80282FE0.unk0 != NULL && (getGameMode() != GAME_MODE_4_PAUSED || func_80335134())){
|
||||
//draw z_buffer
|
||||
gDPPipeSync((*gdl)++);
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, D_80276588, OS_K0_TO_PHYSICAL(D_80282FE0.unk0));
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, framebuffer_width, OS_K0_TO_PHYSICAL(D_80282FE0.unk0));
|
||||
gDPSetCycleType((*gdl)++, G_CYC_FILL);
|
||||
gDPSetRenderMode((*gdl)++, G_RM_NOOP, G_RM_NOOP2);
|
||||
gDPSetFillColor((*gdl)++, 0xFFFCFFFC);
|
||||
@@ -28,7 +28,7 @@ void func_80253208(Gfx **gdl, s32 x, s32 y, s32 w, s32 h, void *color_buffer){
|
||||
|
||||
//draw color_buffer
|
||||
gDPPipeSync((*gdl)++);
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, D_80276588, OS_K0_TO_PHYSICAL(color_buffer));
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, framebuffer_width, OS_K0_TO_PHYSICAL(color_buffer));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -14,7 +14,9 @@ typedef struct {
|
||||
extern u8 D_803A5D00[2][0x1ecc0];
|
||||
|
||||
/* .data */
|
||||
extern Gfx *D_80276580[2];
|
||||
Gfx *D_80276580[2] = {NULL, NULL};
|
||||
s32 framebuffer_width = 292;
|
||||
s32 framebuffer_height = 216;
|
||||
|
||||
/* .bss */
|
||||
Mtx *D_80282FF0[2];
|
||||
@@ -70,8 +72,8 @@ void func_80253640(Gfx ** gdl, void *arg1){
|
||||
gDPSetAlphaCompare((*gdl)++, G_AC_NONE);
|
||||
gDPSetColorDither((*gdl)++, G_CD_MAGICSQ);
|
||||
gDPSetScissor((*gdl)++, G_SC_NON_INTERLACE, D_8028320C, D_8028320E, D_80283210, D_80283212);
|
||||
func_80253208(gdl, 0, 0, D_80276588, D_8027658C, arg1);
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, D_80276588, OS_K0_TO_PHYSICAL(arg1));
|
||||
func_80253208(gdl, 0, 0, framebuffer_width, framebuffer_height, arg1);
|
||||
gDPSetColorImage((*gdl)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, framebuffer_width, OS_K0_TO_PHYSICAL(arg1));
|
||||
gDPSetCycleType((*gdl)++, G_CYC_1CYCLE);
|
||||
gDPSetTextureConvert((*gdl)++, G_TC_FILT);
|
||||
gDPSetTextureDetail((*gdl)++, G_TD_CLAMP);
|
||||
@@ -100,7 +102,7 @@ void func_802539AC(Gfx **gdl, s32 arg1){
|
||||
|
||||
void func_80253A58(Gfx **gfx, s32 arg1){
|
||||
gSPSegment((*gfx)++, 0x00, 0x00000000);
|
||||
gDPSetColorImage((*gfx)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, D_80276588, OS_PHYSICAL_TO_K0(arg1));
|
||||
gDPSetColorImage((*gfx)++, G_IM_FMT_RGBA, G_IM_SIZ_16b, framebuffer_width, OS_PHYSICAL_TO_K0(arg1));
|
||||
gSPClearGeometryMode((*gfx)++, G_ZBUFFER | G_SHADE | G_CULL_BOTH | G_FOG | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR | G_LOD | G_SHADING_SMOOTH);
|
||||
gSPTexture((*gfx)++, 0, 0, 0, G_TX_RENDERTILE, G_OFF);
|
||||
gSPSetGeometryMode((*gfx)++, G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH);
|
||||
@@ -222,8 +224,8 @@ void func_8025425C(void){
|
||||
D_80276580[1] = (Gfx *)malloc(29600);
|
||||
D_80282FF0[0] = (Mtx *)malloc(44800);
|
||||
D_80282FF0[1] = (Mtx *)malloc(44800);
|
||||
D_80282FF8[0] = malloc(6880);
|
||||
D_80282FF8[1] = malloc(6880);
|
||||
D_80282FF8[0] = (Vtx *)malloc(6880);
|
||||
D_80282FF8[1] = (Vtx *)malloc(6880);
|
||||
func_80254464();
|
||||
}
|
||||
D_80283000 = 0;
|
||||
@@ -235,8 +237,8 @@ void func_802542F4(s32 arg0, s32 arg1, s32 arg2, s32 arg3) {
|
||||
D_80283210 = arg1;
|
||||
D_8028320E = arg2;
|
||||
D_80283212 = arg3;
|
||||
D_80276588 = arg1 - arg0;
|
||||
D_8027658C = arg3 - arg2;
|
||||
framebuffer_width = arg1 - arg0;
|
||||
framebuffer_height = arg3 - arg2;
|
||||
func_8024CC5C();
|
||||
}
|
||||
|
||||
|
@@ -5,11 +5,31 @@
|
||||
#define BAD_DTOR (BAD_PI/180.0)
|
||||
|
||||
/* .data*/
|
||||
extern u16 *D_80276CB8; //! ml_acosPrecValTblPtr
|
||||
u32 D_80276CB0 = 0xD22FFFD8; //WHAT IS THIS?
|
||||
u32 D_80276CB4 = 0xDEFEF692; //WHAT IS THIS?
|
||||
u16 *D_80276CB8 = NULL; //! ml_acosPrecValTblPtr
|
||||
//! Might not be 90, but 91 or 92? Initial lowerIdx is OOB if 90
|
||||
extern f32 ml_acosValTbl[90]; //D_80276CBC
|
||||
f32 ml_acosValTbl[90] = { //D_80276CBC
|
||||
1.0000000000, 0.9998480080, 0.9993910190, 0.9986299870, 0.9975640180,
|
||||
0.9961950180, 0.9945219760, 0.9925460220, 0.9902679920, 0.9876880050,
|
||||
0.9848080280, 0.9816269870, 0.9781479840, 0.9743700030, 0.9702960250,
|
||||
0.9659259920, 0.9612619880, 0.9563050270, 0.9510570170, 0.9455189700,
|
||||
0.9396929740, 0.9335799810, 0.9271839860, 0.9205049870, 0.9135450120,
|
||||
0.9063079950, 0.8987939950, 0.8910070060, 0.8829479810, 0.8746200200,
|
||||
0.8660249710, 0.8571670060, 0.8480479720, 0.8386710290, 0.8290380240,
|
||||
0.8191519980, 0.8090170030, 0.7986360190, 0.7880110140, 0.7771459820,
|
||||
0.7660440210, 0.7547100190, 0.7431449890, 0.7313539980, 0.7193400260,
|
||||
0.7071070080, 0.6946579810, 0.6819980140, 0.6691309810, 0.6560590270,
|
||||
0.6427879930, 0.6293200250, 0.6156619790, 0.6018149850, 0.5877850060,
|
||||
0.5735759740, 0.5591930150, 0.5446389910, 0.5299190280, 0.5150380130,
|
||||
0.5000000000, 0.4848099950, 0.4694719910, 0.4539909960, 0.4383710030,
|
||||
0.4226180020, 0.4067370000, 0.3907310070, 0.3746069970, 0.3583680090,
|
||||
0.3420200050, 0.3255679910, 0.3090170030, 0.2923719880, 0.2756370010,
|
||||
0.2588190140, 0.2419220060, 0.2249509990, 0.2079119980, 0.1908089970,
|
||||
0.1736480000, 0.1564340000, 0.1391730010, 0.1218689980, 0.1045280020,
|
||||
0.0871559978, 0.0697569996, 0.0523359999, 0.0348990001, 0.0174519997
|
||||
};
|
||||
|
||||
// extern
|
||||
f32 func_8024C788(void);
|
||||
|
||||
// .h
|
||||
|
@@ -20,8 +20,8 @@ void func_8025ABB8(enum comusic_e, s32, s32, s32);
|
||||
void *func_802EDAA4(SLA **, s32*);
|
||||
|
||||
/* .bss */
|
||||
extern CoMusic *D_80276E30; //active track ptr
|
||||
extern int D_80276E34;
|
||||
CoMusic *D_80276E30 = NULL; //active track ptr
|
||||
int D_80276E34 = 0;
|
||||
|
||||
/* .code */
|
||||
CoMusic *func_802598B0(enum comusic_e track_id) {
|
||||
|
@@ -4,6 +4,12 @@
|
||||
#include "SnS.h"
|
||||
#include "save.h"
|
||||
|
||||
bool snsToRestoreItems = FALSE;
|
||||
struct SnsPayload *snsBasePayloadPtr1 = NULL;
|
||||
struct SnsPayload *snsBasePayloadPtr2 = NULL;
|
||||
struct SnsPayload *snsBasePayloadPtr3 = NULL;
|
||||
struct SnsPayload *snsBasePayloadPtr4 = NULL;
|
||||
|
||||
/* .bss */
|
||||
StopNSwop_Data snsParsedKeys;
|
||||
struct GlobalSave gSaveData;
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
s64 D_80376E70;
|
||||
s64 D_80376E70 = 0xAB8D9F7781280783;
|
||||
|
||||
#pragma GLOBAL_ASM("asm/nonmatchings/core1/code_1E820/func_8025C240.s")
|
||||
|
||||
|
@@ -13,9 +13,6 @@ Gfx D_80275880[] = {
|
||||
gsSPEndDisplayList()
|
||||
};
|
||||
|
||||
extern f64 D_80277650;
|
||||
extern f64 D_80277658;
|
||||
|
||||
/* .code */
|
||||
void func_80241490(Gfx **gfx, Vtx **vtx, s32 *arg2[3], s32 arg3[3], s32 arg4[3], s32 arg5[3], s32 arg6, s32 arg7) {
|
||||
s32 spB4[3];
|
||||
@@ -106,7 +103,7 @@ void func_802424D4(Gfx **gfx, Mtx **mtx, Vtx **vtx, f32 arg3[3], f32 arg4[3], f3
|
||||
sp50[2] = arg4[2];
|
||||
if ((arg3[0] != sp50[0]) || (arg3[1] != sp50[1]) || (arg3[2] != sp50[2])) {
|
||||
if ((arg3[0] == sp50[0]) && (arg3[2] == sp50[2])) {
|
||||
sp50[0] += D_80277658;
|
||||
sp50[0] += 0.05;
|
||||
}
|
||||
sp80[0] = sp50[0] - arg3[0];
|
||||
sp80[1] = sp50[1] - arg3[1];
|
||||
|
@@ -11,7 +11,7 @@ typedef struct struct_27_s{
|
||||
u8 pad2[0x12];
|
||||
}struct27s;
|
||||
|
||||
extern s16 * D_802758E0;
|
||||
s16 * D_802758E0 = NULL;
|
||||
|
||||
void func_80244C78(int arg0);
|
||||
|
||||
|
@@ -2,7 +2,8 @@
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
extern f32 D_80275908;
|
||||
u8 D_80275900[] = {0xCF, 0xAD, 0xA2, 0x90, 0x93, 0x4A, 0x83, 0xF1};
|
||||
f32 D_80275908 = BAD_DTOR;
|
||||
|
||||
s32 func_80245980(f32 arg0){
|
||||
return arg0*65536.0f;
|
||||
|
@@ -4,8 +4,8 @@
|
||||
|
||||
|
||||
extern u16 D_803A5D00[2][0xF660]; //framebuffer
|
||||
extern s32 D_80276588; //framebuffer width
|
||||
extern s32 D_8027658C; //framebuffer height
|
||||
extern s32 framebuffer_width; //framebuffer width
|
||||
extern s32 framebuffer_height; //framebuffer height
|
||||
|
||||
/* .data */
|
||||
u8 D_80275A50[8][3] = {
|
||||
@@ -93,11 +93,11 @@ void func_80247750(s32 r, s32 g, s32 b){
|
||||
|
||||
void func_8024776C(s32 x, s32 y) {
|
||||
s32 rgba16;
|
||||
if( ((x >= 0) && (x < D_80276588))
|
||||
&& ((y >= 0) && (y < D_8027658C))
|
||||
if( ((x >= 0) && (x < framebuffer_width))
|
||||
&& ((y >= 0) && (y < framebuffer_height))
|
||||
) {
|
||||
D_803A5D00[0][x + y*D_80276588] = _SHIFTL(D_80275A68 >> 3, 11, 5) | _SHIFTL(D_80275A6C >> 3, 6, 5) | _SHIFTL(D_80275A70 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
D_803A5D00[1][x + y*D_80276588] = _SHIFTL(D_80275A68 >> 3, 11, 5) | _SHIFTL(D_80275A6C >> 3, 6, 5) | _SHIFTL(D_80275A70 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
D_803A5D00[0][x + y*framebuffer_width] = _SHIFTL(D_80275A68 >> 3, 11, 5) | _SHIFTL(D_80275A6C >> 3, 6, 5) | _SHIFTL(D_80275A70 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
D_803A5D00[1][x + y*framebuffer_width] = _SHIFTL(D_80275A68 >> 3, 11, 5) | _SHIFTL(D_80275A6C >> 3, 6, 5) | _SHIFTL(D_80275A70 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -117,7 +117,7 @@ void func_80247818(s32 x, s32 y, s32 w, s32 h) {
|
||||
|
||||
void func_802478C0(s32 r, s32 g, s32 b) {
|
||||
func_80247750(r, g, b);
|
||||
func_80247818((D_80276588 - 128) / 2, (D_8027658C - 100) / 2, 128, 100);
|
||||
func_80247818((framebuffer_width - 128) / 2, (framebuffer_height - 100) / 2, 128, 100);
|
||||
}
|
||||
|
||||
void func_8024792C(void){}
|
||||
@@ -204,7 +204,7 @@ void func_80247C20(void) {
|
||||
}
|
||||
|
||||
if (D_80275BE0) {
|
||||
for(i = 0; i < D_80276588 * D_8027658C; i++){
|
||||
for(i = 0; i < framebuffer_width * framebuffer_height; i++){
|
||||
D_803A5D00[0][i] = 0;
|
||||
D_803A5D00[1][i] = 0;
|
||||
}
|
||||
|
@@ -14,8 +14,8 @@ void func_8024A85C(s32 buffer_indx);
|
||||
|
||||
|
||||
extern u16 D_803A5D00[2][0xF660]; //framebuffer
|
||||
extern s32 D_80276588; //framebuffer width
|
||||
extern s32 D_8027658C; //framebuffer height
|
||||
extern s32 framebuffer_width; //framebuffer width
|
||||
extern s32 framebuffer_height; //framebuffer height
|
||||
|
||||
/* .bss */
|
||||
s32 D_802806E0;
|
||||
@@ -70,12 +70,12 @@ void draw_sprite_ci4(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enable
|
||||
indx1 = ((*tmem) >> 4) & 0xF;
|
||||
indx2 = *tmem & 0xF;
|
||||
fb_x = (chunk->x + x) + ix;
|
||||
if ((0 <= fb_x) && (fb_x < D_80276588))
|
||||
if ((0 <= fb_x) && (fb_x < framebuffer_width))
|
||||
{
|
||||
fb_y = (chunk->y + y) + iy;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C))
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height))
|
||||
{
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * D_80276588);
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * framebuffer_width);
|
||||
color1 = palette[indx1];
|
||||
if (color1 & 1) {
|
||||
*pxl_ptr = color1;
|
||||
@@ -141,12 +141,12 @@ void draw_sprite_ci8(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enable
|
||||
for (iy = 0; iy < chunk->h; iy++){
|
||||
for (ix = 0; ix < chunk->w; ix++){
|
||||
fb_x = (chunk->x + x) + ix;
|
||||
if ((0 <= fb_x) && (fb_x < D_80276588))
|
||||
if ((0 <= fb_x) && (fb_x < framebuffer_width))
|
||||
{
|
||||
fb_y = (chunk->y + y) + iy;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C))
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height))
|
||||
{
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * D_80276588);
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * framebuffer_width);
|
||||
if (palette[*tmem] & 1){
|
||||
*pxl_ptr = palette[*tmem];
|
||||
}
|
||||
@@ -197,10 +197,10 @@ void draw_sprite_rgba16(s32 x, s32 y, BKSprite *sprite, s32 frame, bool alpha_en
|
||||
for(txtr_y = 0; txtr_y < chunk_ptr->h; txtr_y++) {
|
||||
for(txtr_x = 0; txtr_x < chunk_ptr->w; txtr_x++) {
|
||||
fb_x = chunk_ptr->x + x + txtr_x;
|
||||
if ((fb_x >= 0) && (fb_x < D_80276588)) {
|
||||
if ((fb_x >= 0) && (fb_x < framebuffer_width)) {
|
||||
fb_y = chunk_ptr->y + y + txtr_y;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C)) {
|
||||
pxl_ptr = framebuffer_ptr + fb_x + (fb_y * D_80276588);
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height)) {
|
||||
pxl_ptr = framebuffer_ptr + fb_x + (fb_y * framebuffer_width);
|
||||
rgba = *tmem;
|
||||
if (rgba & 1) {
|
||||
*pxl_ptr = rgba;
|
||||
@@ -244,12 +244,12 @@ void draw_sprite_i4(s32 x, s32 y, BKSprite *sprite, s32 frame, bool aplha_enable
|
||||
for(txtr_y = 0; txtr_y < chunk_ptr->h; txtr_y++) {
|
||||
for(txtr_x = 0; txtr_x < chunk_ptr->w; txtr_x += 2) {
|
||||
fb_x = chunk_ptr->x + x + txtr_x;
|
||||
if ((fb_x >= 0) && (fb_x < D_80276588)) {
|
||||
if ((fb_x >= 0) && (fb_x < framebuffer_width)) {
|
||||
fb_y = chunk_ptr->y + y + txtr_y;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C)) {
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height)) {
|
||||
p1 = (*tmem >> 4);
|
||||
p2 = (*tmem & 0xF);
|
||||
fb_pxl_ptr = framebuffer_ptr + fb_x + (fb_y * D_80276588);
|
||||
fb_pxl_ptr = framebuffer_ptr + fb_x + (fb_y * framebuffer_width);
|
||||
if (p1) {
|
||||
*fb_pxl_ptr = (p1 << 0xC) | (p1 << 0x7) | (p1 << 0x2) | 1;
|
||||
} else if (!aplha_enabled) {
|
||||
@@ -301,10 +301,10 @@ void draw_sprite_ia4(s32 x, s32 y, BKSprite *sprite, s32 frame, bool aplha_enabl
|
||||
for(txtr_y = 0; txtr_y < chunk_ptr->h; txtr_y++) {
|
||||
for(txtr_x = 0; txtr_x < chunk_ptr->w; txtr_x += 2) {
|
||||
fb_x = chunk_ptr->x + x + txtr_x;
|
||||
if ((fb_x >= 0) && (fb_x < D_80276588)) {
|
||||
if ((fb_x >= 0) && (fb_x < framebuffer_width)) {
|
||||
fb_y = chunk_ptr->y + y + txtr_y;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C)) {
|
||||
fb_pxl_ptr = framebuffer_ptr + fb_x + (fb_y * D_80276588);\
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height)) {
|
||||
fb_pxl_ptr = framebuffer_ptr + fb_x + (fb_y * framebuffer_width);\
|
||||
p1 = (*tmem >> 4);
|
||||
p2 = (*tmem & 0xF);
|
||||
p1_i = p1 & 0xE;
|
||||
@@ -358,10 +358,10 @@ void draw_sprite_i8(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_enabled
|
||||
for(txtr_x = 0; txtr_x < chunk_ptr->w; txtr_x++){
|
||||
fb_x = chunk_ptr->x + x + txtr_x;
|
||||
if (fb_x >= 0) {
|
||||
if (fb_x < D_80276588) {
|
||||
if (fb_x < framebuffer_width) {
|
||||
fb_y = chunk_ptr->y + y + txtr_y;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C)) {
|
||||
pixel_ptr = framebuffer_ptr + fb_x + fb_y * D_80276588;
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height)) {
|
||||
pixel_ptr = framebuffer_ptr + fb_x + fb_y * framebuffer_width;
|
||||
intensity = (s32) *txtr_ptr >> 3;
|
||||
if (intensity != 0) {
|
||||
*pixel_ptr = (intensity << 0xB) | (intensity << 6) | (intensity << 1) | 1;
|
||||
@@ -406,10 +406,10 @@ void draw_sprite_ia8(s32 x, s32 y, BKSprite *sprite, s32 frame, bool alpha_enabl
|
||||
for(var_t3 = 0; var_t3 < chunk_ptr->h; var_t3++){
|
||||
for(var_a3 = 0; var_a3 < chunk_ptr->w; var_a3++) {
|
||||
fb_x = chunk_ptr->x + x + var_a3;
|
||||
if ((fb_x >= 0) && (fb_x < D_80276588)) {
|
||||
if ((fb_x >= 0) && (fb_x < framebuffer_width)) {
|
||||
fb_y = chunk_ptr->y + y + var_t3;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C)) {
|
||||
temp_a1 = framebuffer_ptr + fb_x + fb_y * D_80276588;
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height)) {
|
||||
temp_a1 = framebuffer_ptr + fb_x + fb_y * framebuffer_width;
|
||||
temp_a2 = *var_t2;
|
||||
if (IA8_A(temp_a2)) {
|
||||
*temp_a1 = I4_2_RGBA16(IA8_I(temp_a2), 1);
|
||||
@@ -469,13 +469,13 @@ void draw_sprite_rgba32(s32 x, s32 y, BKSprite *sprite, s32 frame, s32 alpha_ena
|
||||
for (ix = 0; ix < chunk_ptr->w; ix++)
|
||||
{
|
||||
fb_x = (chunk_ptr->x + x) + ix;
|
||||
if ((fb_x >= 0) && (fb_x < D_80276588))
|
||||
if ((fb_x >= 0) && (fb_x < framebuffer_width))
|
||||
{
|
||||
fb_y = (chunk_ptr->y + y) + iy;
|
||||
if ((fb_y >= 0) && (fb_y < D_8027658C))
|
||||
if ((fb_y >= 0) && (fb_y < framebuffer_height))
|
||||
{
|
||||
txtr_value = *tmem;
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * D_80276588);
|
||||
pxl_ptr = (framebuffer + fb_x) + (fb_y * framebuffer_width);
|
||||
fb_value = (unsigned int) (*pxl_ptr);
|
||||
alpha = _SHIFTR(txtr_value, 0, 8);
|
||||
if (alpha) {//blend texture with existing pixel color
|
||||
@@ -515,7 +515,7 @@ void draw_texture_ci4(s32 x, s32 y, void *tmem, s32 w, s32 h, bool alpha_enabled
|
||||
|
||||
palette_ptr = (u16*)tmem;
|
||||
pixel_ptr = (u8*)&palette_ptr[0x10];
|
||||
framebuffer_ptr = &D_803A5D00[D_802806EC][x + y * D_80276588];
|
||||
framebuffer_ptr = &D_803A5D00[D_802806EC][x + y * framebuffer_width];
|
||||
for(iy = 0; iy < h; iy++){
|
||||
for(ix = 0; ix < w; ix++){
|
||||
icolor = (ix & 1)? pixel_ptr[ix/2 + (iy*w)/2] & 0xF
|
||||
@@ -523,7 +523,7 @@ void draw_texture_ci4(s32 x, s32 y, void *tmem, s32 w, s32 h, bool alpha_enabled
|
||||
*framebuffer_ptr = palette_ptr[icolor];
|
||||
framebuffer_ptr++;
|
||||
}
|
||||
framebuffer_ptr += (D_80276588 - w);
|
||||
framebuffer_ptr += (framebuffer_width - w);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -567,7 +567,7 @@ void func_80249DE0(s32 x, s32 y, s16 *arg2, s32 arg3, s32 arg4) {
|
||||
return;
|
||||
}
|
||||
//otherwise RGBA16
|
||||
framebuffer_ptr = &D_803A5D00[D_802806EC][x + y*D_80276588];
|
||||
framebuffer_ptr = &D_803A5D00[D_802806EC][x + y*framebuffer_width];
|
||||
for(iy = 0; iy < temp_v0->h; iy++){
|
||||
for(ix = 0; ix < temp_v0->w; ix++){
|
||||
temp_v1 = *texture_ptr;
|
||||
@@ -579,7 +579,7 @@ void func_80249DE0(s32 x, s32 y, s16 *arg2, s32 arg3, s32 arg4) {
|
||||
texture_ptr++;
|
||||
framebuffer_ptr++;
|
||||
}
|
||||
framebuffer_ptr += (D_80276588 - temp_v0->w);
|
||||
framebuffer_ptr += (framebuffer_width - temp_v0->w);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -591,14 +591,14 @@ void func_8024A284(s32 x, s32 y, s32 arg2, s32 arg3, s32 horz_spacing, s32 vert_
|
||||
s32 var_s2;
|
||||
s32 var_s3;
|
||||
|
||||
for(var_s2 = 0; var_s2 < D_80276588; var_s2 += horz_spacing){
|
||||
for(var_s3 = 0; var_s3 < D_8027658C; var_s3++){
|
||||
for(var_s2 = 0; var_s2 < framebuffer_width; var_s2 += horz_spacing){
|
||||
for(var_s3 = 0; var_s3 < framebuffer_height; var_s3++){
|
||||
func_8024A3C8(x + var_s2, y + var_s3);
|
||||
|
||||
}
|
||||
}
|
||||
for(var_s3 = 0; var_s3 < D_8027658C; var_s3 += vert_spacing) {
|
||||
for(var_s2 = 0; var_s2 < D_80276588; var_s2++){
|
||||
for(var_s3 = 0; var_s3 < framebuffer_height; var_s3 += vert_spacing) {
|
||||
for(var_s2 = 0; var_s2 < framebuffer_width; var_s2++){
|
||||
func_8024A3C8(x + var_s2, y + var_s3);
|
||||
}
|
||||
}
|
||||
@@ -609,8 +609,8 @@ void func_8024A3C8(s32 x, s32 y) {
|
||||
s32 temp_v0;
|
||||
|
||||
if (x >= 0) {
|
||||
if ((x < D_80276588) && (y >= 0) && (y < D_8027658C)) {
|
||||
D_803A5D00[D_802806EC][x + y * D_80276588] = _SHIFTL(D_802806E0 >> 3, 11, 5) | _SHIFTL(D_802806E4 >> 3, 6, 5) | _SHIFTL(D_802806E8 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
if ((x < framebuffer_width) && (y >= 0) && (y < framebuffer_height)) {
|
||||
D_803A5D00[D_802806EC][x + y * framebuffer_width] = _SHIFTL(D_802806E0 >> 3, 11, 5) | _SHIFTL(D_802806E4 >> 3, 6, 5) | _SHIFTL(D_802806E8 >> 3, 1, 5) | _SHIFTL(1, 0, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -651,8 +651,8 @@ void func_8024A564(s32 x, s32 y, u16 *arg2, s32 arg3, s32 arg4, f32 arg5, f32 ar
|
||||
s16 *var_t0;
|
||||
s16 *var_t2;
|
||||
var_v0 = 0;
|
||||
var_v1 = D_80276588;
|
||||
var_t0 = &D_803A5D00[D_802806EC][x + (y * D_80276588)];
|
||||
var_v1 = framebuffer_width;
|
||||
var_t0 = &D_803A5D00[D_802806EC][x + (y * framebuffer_width)];
|
||||
new_var = (s32) (((f64) (256.0f / (new_var3 = arg6))) + 0.5);
|
||||
new_var2 = (s32) (((f64) (256.0f / arg5)) + 0.5);
|
||||
for (var_t1 = (arg4 * arg6) + 0.5; var_t1 != 0; var_t1--)
|
||||
@@ -667,7 +667,7 @@ void func_8024A564(s32 x, s32 y, u16 *arg2, s32 arg3, s32 arg4, f32 arg5, f32 ar
|
||||
var_t2++;
|
||||
}
|
||||
|
||||
var_t0 += D_80276588;
|
||||
var_t0 += framebuffer_width;
|
||||
var_v0 += new_var;
|
||||
}
|
||||
|
||||
|
@@ -14,8 +14,47 @@ typedef struct struct_1_s{
|
||||
|
||||
extern u32 D_80000300;
|
||||
|
||||
extern OSViMode D_80275C80;
|
||||
extern OSViMode D_80275CD0;
|
||||
OSViMode D_80275C80 = {
|
||||
OS_VI_NTSC_LPN1,
|
||||
{
|
||||
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | 0x3200, /*ctrl*/
|
||||
292, /* width*/
|
||||
0x3E52239, /* burst*/
|
||||
0x20D, /* vSync*/
|
||||
0xC15, /* hSync*/
|
||||
0xC150C15, /* leap */
|
||||
0x8C02D5, /* hstart */
|
||||
0x200, /* xScale */
|
||||
0x0, /* vCurrent */
|
||||
},
|
||||
{
|
||||
{0x248, 0x400, 0x3D01E8, 0xE0204, 2},
|
||||
{0x248, 0x400, 0x3D01E8, 0xE0204, 2},
|
||||
}
|
||||
};
|
||||
|
||||
OSViMode D_80275CD0 = {
|
||||
OS_VI_MPAL_LPN1,
|
||||
{
|
||||
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | 0x3200, /*ctrl*/
|
||||
292, /* width*/
|
||||
0x4651E39, /* burst*/
|
||||
0x20D, /* vSync*/
|
||||
0x40C11, /* hSync*/
|
||||
0xC190C1A, /* leap */
|
||||
0x8C02D5, /* hstart */
|
||||
0x200, /* xScale */
|
||||
0x0, /* vCurrent */
|
||||
},
|
||||
{
|
||||
{0x248, 0x400, 0x3D01E8, 0xE0204, 2},
|
||||
{0x248, 0x400, 0x3D01E8, 0xE0204, 2},
|
||||
}
|
||||
};
|
||||
|
||||
// 42200000 3FAD097B 41F00000 457A0000
|
||||
// C3A68832 DDC3A724 00000000 00000000
|
||||
|
||||
|
||||
u32 D_80280720;
|
||||
u32 D_80280724;
|
||||
@@ -183,8 +222,8 @@ void func_8024C408(s32 arg0){
|
||||
|
||||
void func_8024C428(void) {
|
||||
//zeros all both framebuffers
|
||||
func_80253034(&D_803A5D00, 0, (s32) ((f32)D_80276588*2*D_8027658C*2));
|
||||
osWritebackDCache(&D_803A5D00, (s32) ((f32)D_80276588*2* D_8027658C*2));
|
||||
func_80253034(&D_803A5D00, 0, (s32) ((f32)framebuffer_width*2*framebuffer_height*2));
|
||||
osWritebackDCache(&D_803A5D00, (s32) ((f32)framebuffer_width*2* framebuffer_height*2));
|
||||
}
|
||||
|
||||
s32 func_8024C4E8(void){
|
||||
|
@@ -6,10 +6,10 @@ extern void guPerspective(Mtx *, u16*, f32, f32, f32, f32, f32);
|
||||
extern f32 ml_vec3f_dot_product(f32[3], f32[3]);
|
||||
|
||||
/* .data */
|
||||
extern f32 D_80275D20; //fovy
|
||||
extern f32 D_80275D24; //aspect
|
||||
extern f32 D_80275D28; //near
|
||||
extern f32 D_80275D2C; //far
|
||||
f32 D_80275D20 = 40.0f; //fovy
|
||||
f32 D_80275D24 = 1.35185182f; //aspect
|
||||
f32 D_80275D28 = 30.0f; //near
|
||||
f32 D_80275D2C = 4000.0f; //far
|
||||
|
||||
/* .data */
|
||||
f32 D_80280EA0[3];
|
||||
@@ -96,7 +96,7 @@ void func_8024C794(f32 *arg0, f32 *arg1, f32 *arg2){
|
||||
void func_8024C7B8(Gfx **gfx, Mtx **mtx){
|
||||
gSPViewport((*gfx)++, &D_80280F10[D_80281018]);
|
||||
|
||||
guOrtho(*mtx, -(2*(f32)D_80276588), (2*(f32)D_80276588), -(2*(f32)D_8027658C), (2*(f32)D_8027658C), 1.0f, 20.0f, 1.0f);
|
||||
guOrtho(*mtx, -(2*(f32)framebuffer_width), (2*(f32)framebuffer_width), -(2*(f32)framebuffer_height), (2*(f32)framebuffer_height), 1.0f, 20.0f, 1.0f);
|
||||
gSPMatrix((*gfx)++, OS_K0_TO_PHYSICAL((*mtx)++), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
|
||||
|
||||
guTranslate(*mtx, 0.0f, 0.0f, 0.0f);
|
||||
@@ -153,7 +153,7 @@ f32 func_8024CC50(void){
|
||||
}
|
||||
|
||||
void func_8024CC5C(void){
|
||||
func_8024CE74((s32) ((f32)D_80276588/2), (s32) ((f32)D_8027658C/2), (s32) ((f32)D_80276588/2), (s32) ((f32)D_8027658C/2));
|
||||
func_8024CE74((s32) ((f32)framebuffer_width/2), (s32) ((f32)framebuffer_height/2), (s32) ((f32)framebuffer_width/2), (s32) ((f32)framebuffer_height/2));
|
||||
}
|
||||
|
||||
void func_8024CCC4(void){
|
||||
@@ -395,13 +395,13 @@ bool func_8024E030(f32 arg0[3], f32 *arg1)
|
||||
return 0;
|
||||
}
|
||||
temp_f2 = gu_sqrtf((sp34[1] * sp34[1]) + (sp34[2] * sp34[2])) * sinf(sp28);
|
||||
temp_f2_2 = (((f32) D_80276588) / ((f32) D_8027658C)) * temp_f2;
|
||||
arg1[0] = (f32) (((sp34[0] / temp_f2_2) + 1) * (((f32) D_80276588) / 2));
|
||||
arg1[1] = (f32) ((1 - (sp34[1] / temp_f2)) * (((f32) D_8027658C) / 2));
|
||||
if ((arg1[0] < (-((f32) D_80276588))) || ((((f32) D_80276588) * 2) < arg1[0])) {
|
||||
temp_f2_2 = (((f32) framebuffer_width) / ((f32) framebuffer_height)) * temp_f2;
|
||||
arg1[0] = (f32) (((sp34[0] / temp_f2_2) + 1) * (((f32) framebuffer_width) / 2));
|
||||
arg1[1] = (f32) ((1 - (sp34[1] / temp_f2)) * (((f32) framebuffer_height) / 2));
|
||||
if ((arg1[0] < (-((f32) framebuffer_width))) || ((((f32) framebuffer_width) * 2) < arg1[0])) {
|
||||
return 0;
|
||||
}
|
||||
if ((arg1[1] < (-((f32) D_8027658C))) || ((((f32) D_8027658C) * 2) < arg1[1])) {
|
||||
if ((arg1[1] < (-((f32) framebuffer_height))) || ((((f32) framebuffer_height) * 2) < arg1[1])) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
@@ -5,8 +5,8 @@
|
||||
#include "n_libaudio.h"
|
||||
|
||||
|
||||
extern N_ALSynth *D_80276E80;
|
||||
extern N_ALSynth *n_syn;
|
||||
N_ALSynth *D_80276E80 = NULL;
|
||||
N_ALSynth *n_syn = NULL;
|
||||
|
||||
void n_alInit(N_ALGlobals *g, ALSynConfig *config)
|
||||
{
|
||||
|
@@ -8,7 +8,7 @@
|
||||
* An index used to track the position in the outgoing payload
|
||||
* it should write the next key to.
|
||||
*/
|
||||
extern s32 snsPayloadOutCurrPos;
|
||||
s32 snsPayloadOutCurrPos = 0;
|
||||
|
||||
/*.bss*/
|
||||
/**
|
||||
|
@@ -15,11 +15,19 @@ typedef struct {
|
||||
void func_80250530(s32, u16 chan_mask, f32);
|
||||
|
||||
/* .data */
|
||||
extern s32 D_80275C10;
|
||||
extern s32 D_80275C14;
|
||||
extern u8 D_80275C18;
|
||||
extern u8 D_80275C1C;
|
||||
extern Struct_Core1_CE60_0s D_80275C20[];
|
||||
s32 D_80275C10 = -1;
|
||||
s32 D_80275C14 = 0;
|
||||
u8 D_80275C18 = 0;
|
||||
u8 D_80275C1C = 0;
|
||||
Struct_Core1_CE60_0s D_80275C20[] = {
|
||||
{0xE890, 0xF9D4, 0xDCD8, 0x2328, 0xE7C8, 0xFB34},
|
||||
{0xF95C, 0xFE73, 0xDCD8, 0x2328, 0xE69C, 0xF711},
|
||||
{0xFA83, 0xFFAB, 0xDCD8, 0x2328, 0xE886, 0xEFFB},
|
||||
{0xEA84, 0xF85B, 0xDCD8, 0x2328, 0xF830, 0xFD90},
|
||||
{0xFEC0, 0x0140, 0x05DC, 0x0960, 0xE890, 0xFE7B},
|
||||
{0xFD44, 0x05D8, 0xFD44, 0x06C2, 0xFC2E, 0x03D2},
|
||||
{0xE890, 0xF9D4, 0xDCD8, 0x2328, 0xE7C8, 0xFB34}
|
||||
};
|
||||
|
||||
/* .bss */
|
||||
s32 D_802806F0;
|
||||
|
@@ -43,19 +43,20 @@ typedef struct empty_heap_block{
|
||||
|
||||
extern EmptyHeapBlock D_8002D500[LAST_HEAP_BLOCK + 1];
|
||||
extern EmptyHeapBlock D_8023DA00;
|
||||
extern struct{
|
||||
bool unk0;
|
||||
}D_802765B0;
|
||||
|
||||
extern u32 heap_occupiedBytes; //occupied heap size
|
||||
extern u8 D_80276594;
|
||||
extern u8 D_80276598;
|
||||
extern void *D_8027659C;
|
||||
extern void *D_802765A0;
|
||||
extern s32 D_802765A4;
|
||||
extern void *D_802765A8;
|
||||
extern s32 D_802765AC;
|
||||
extern UNK_TYPE(void *) D_802765B4;
|
||||
/* .data */
|
||||
u32 heap_occupiedBytes = 0; //occupied heap size
|
||||
u8 D_80276594 = 0;
|
||||
u8 D_80276598 = 0;
|
||||
void *D_8027659C = NULL;
|
||||
void *D_802765A0 = NULL;
|
||||
s32 D_802765A4 = 0;
|
||||
void *D_802765A8 = NULL;
|
||||
s32 D_802765AC = 0;
|
||||
struct{
|
||||
bool unk0;
|
||||
}D_802765B0 = {0};
|
||||
UNK_TYPE(void *) D_802765B4 = NULL;
|
||||
|
||||
/* .bss */
|
||||
s32 D_80283220;
|
||||
|
Reference in New Issue
Block a user