Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match all 12-byte functions #1471

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,519 changes: 1,279 additions & 1,240 deletions asm/dolphin/gx/GXTexture.s

Large diffs are not rendered by default.

5,773 changes: 3,341 additions & 2,432 deletions asm/melee/db/db_2253.s

Large diffs are not rendered by default.

1,386 changes: 1,277 additions & 109 deletions asm/melee/gm/gm_1A36.s

Large diffs are not rendered by default.

67,056 changes: 33,531 additions & 33,525 deletions asm/sysdolphin/baselib/hsd_40FF.s

Large diffs are not rendered by default.

22 changes: 4 additions & 18 deletions config/GALE01/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18309,22 +18309,8 @@ GXSetChanMatColor = .text:0x8033E3F4; // type:function size:0x168 scope:global
GXSetNumChans = .text:0x8033E55C; // type:function size:0x4C scope:global
GXSetChanCtrl = .text:0x8033E5A8; // type:function size:0x1E4 scope:global
GXGetTexBufferSize = .text:0x8033E78C; // type:function size:0x15C scope:global
GXTexture_8033E7B4 = .text:0x8033E7B4; // type:label scope:global
GXTexture_8033E7C0 = .text:0x8033E7C0; // type:label scope:global
GXTexture_8033E7CC = .text:0x8033E7CC; // type:label scope:global
GXTexture_8033E7D8 = .text:0x8033E7D8; // type:label scope:global
__GetImageTileCount = .text:0x8033E8E8; // type:function size:0xC8 scope:global
GXTexture_8033E908 = .text:0x8033E908; // type:label scope:global
GXTexture_8033E914 = .text:0x8033E914; // type:label scope:global
GXTexture_8033E920 = .text:0x8033E920; // type:label scope:global
GXTexture_8033E92C = .text:0x8033E92C; // type:label scope:global
GXInitTexObj = .text:0x8033E9B0; // type:function size:0x274 scope:global
GXTexture_8033EB58 = .text:0x8033EB58; // type:label scope:global
GXTexture_8033EB6C = .text:0x8033EB6C; // type:label scope:global
GXTexture_8033EB80 = .text:0x8033EB80; // type:label scope:global
GXTexture_8033EB94 = .text:0x8033EB94; // type:label scope:global
GXTexture_8033EBA8 = .text:0x8033EBA8; // type:label scope:global
GXTexture_8033EBBC = .text:0x8033EBBC; // type:label scope:global
GXInitTexObjCI = .text:0x8033EC24; // type:function size:0x48 scope:global
GXInitTexObjLOD = .text:0x8033EC6C; // type:function size:0x194 scope:global
GXGetTexObjWidth = .text:0x8033EE00; // type:function size:0x10 scope:global
Expand Down Expand Up @@ -22222,10 +22208,10 @@ gm_803DBFCC = .data:0x803DBFCC; // type:object size:0xC scope:global
gm_803DBFD8 = .data:0x803DBFD8; // type:object size:0x10F0 scope:global
gm_803DD0C8 = .data:0x803DD0C8; // type:object size:0x14 scope:global
gm_803DD0DC = .data:0x803DD0DC; // type:object size:0x1E4 scope:global
gm_803DD2C0 = .data:0x803DD2C0; // type:object size:0x128 scope:global
gm_803DD3E8 = .data:0x803DD3E8; // type:object size:0x10 scope:global
gm_803DD3F8 = .data:0x803DD3F8; // type:object size:0x10 scope:global
gm_803DD408 = .data:0x803DD408; // type:object size:0x50 scope:global
gm_803DD2C0 = .data:0x803DD2C0; // type:object size:0x128 scope:global data:int
gm_803DD3E8 = .data:0x803DD3E8; // type:object size:0xD scope:global data:string
gm_803DD3F8 = .data:0x803DD3F8; // type:object size:0xF scope:global data:string
gm_803DD408 = .data:0x803DD408; // type:object size:0x50 scope:global data:string
jumptable_803DD458 = .data:0x803DD458; // type:object size:0x5C scope:local
gm_803DD4B4 = .data:0x803DD4B4; // type:object size:0x1C scope:global
gm_803DD4D0 = .data:0x803DD4D0; // type:object size:0x80 scope:global data:4byte
Expand Down
14 changes: 11 additions & 3 deletions src/dolphin/ax/AXOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@

#include <dolphin/ax.h>

static void (*__AXUserFrameCallback)(void);
/* 4D7548 */ static void (*__AXUserFrameCallback)(void);
/* 4D754C */ static int __AXDSPInitFlag;
/* 4D7550 */ static int __AXDSPDoneFlag;

/// #__AXOutNewFrame

/// #__AXOutAiCallback

/// #__AXDSPInitCallback
void __AXDSPInitCallback(void)
{
__AXDSPInitFlag = 1;
}

/// #__AXDSPResumeCallback

/// #__AXDSPDoneCallback
void __AXDSPDoneCallback(void)
{
__AXDSPDoneFlag = 1;
}

/// #__AXOutInitDSP

Expand Down
15 changes: 15 additions & 0 deletions src/dolphin/ax/AXSPB.c
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
#include <platform.h>

#include "AXSPB.h"

static AXSPB __AXStudio ATTRIBUTE_ALIGN(32);

AXSPB* __AXGetStudio(void)
{
return &__AXStudio;
}

/// #__AXPrintStudio

/// #__AXSPBInit

/// #__AXDepopVoice
12 changes: 9 additions & 3 deletions src/dolphin/ax/AXSPB.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#ifndef DOLPHIN_AX_AXSPB_H
#define DOLPHIN_AX_AXSPB_H
#ifndef GALE01_359D8C
#define GALE01_359D8C

void __AXSPBInit(void);
#include <placeholder.h>
#include <dolphin/ax.h>

/* 359D8C */ AXSPB* __AXGetStudio(void);
/* 359D98 */ UNK_RET __AXPrintStudio(UNK_PARAMS);
/* 35A190 */ void __AXSPBInit(void);
/* 35A1BC */ UNK_RET __AXDepopVoice(UNK_PARAMS);

#endif
8 changes: 6 additions & 2 deletions src/dolphin/ax/AXVPB.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "AXVPB.h"

static u32 __AXNumVoices;
/* 4B09E0 */ static AXPB __AXPB;
/* 4D7588 */ static u32 __AXNumVoices;

u32 __AXGetNumVoices(void)
{
Expand All @@ -11,7 +12,10 @@ u32 __AXGetNumVoices(void)

/// #__AXSyncPBs

/// #__AXGetPBs
AXPB* __AXGetPBs(void)
{
return &__AXPB;
}

/// #__AXSetPBDefault

Expand Down
8 changes: 3 additions & 5 deletions src/dolphin/ax/AXVPB.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#ifndef DOLPHIN_AX_AXVPB_H
#define DOLPHIN_AX_AXVPB_H
#ifndef GALE01_35A250
#define GALE01_35A250

#include <platform.h>

#include <placeholder.h>
#include <dolphin/ax.h>

void __AXDumpVPB(AXVPB* pvpb);
void __AXVPBQuit(void);

/* 35A250 */ u32 __AXGetNumVoices(void);
/* 35A258 */ void __AXServiceVPB(AXVPB* pvpb);
/* 35A934 */ void __AXSyncPBs(u32 lessDspCycles);
Expand Down
31 changes: 31 additions & 0 deletions src/dolphin/mcc/fio.c
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
#include "fio.h"

/* 4D70DC */ static s32 gProcBusy;

/// #fioMccChannelEvent

/// #FIOInit

/// #FIOExit

/// #FIOQuery

/// #FIOFopen

/// #FIOFclose

/// #FIOFwrite

/// #fioPacketMakeHeader

/// #fioPacketSendPacket

/// #fioPacketReceiveResult

void fioPacketReceiveDone(void)
{
gProcBusy = 0;
}

/// #fioPacketWrite

/// #fioPacketResultWrite
19 changes: 19 additions & 0 deletions src/dolphin/mcc/fio.h
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
#ifndef DOLPHIN_MCC_FIO_H
#define DOLPHIN_MCC_FIO_H

#include <placeholder.h>

/* 32EA84 */ UNK_RET fioMccChannelEvent(UNK_PARAMS);
/* 32EB44 */ UNK_RET FIOInit(UNK_PARAMS);
/* 32EC00 */ UNK_RET FIOExit(UNK_PARAMS);
/* 32EC6C */ UNK_RET FIOQuery(UNK_PARAMS);
/* 32ED8C */ UNK_RET FIOFopen(UNK_PARAMS);
/* 32EE94 */ UNK_RET FIOFclose(UNK_PARAMS);
/* 32EF48 */ UNK_RET FIOFwrite(UNK_PARAMS);
/* 32F020 */ UNK_RET fioPacketMakeHeader(UNK_PARAMS);
/* 32F0E4 */ UNK_RET fioPacketSendPacket(UNK_PARAMS);
/* 32F228 */ UNK_RET fioPacketReceiveResult(UNK_PARAMS);
/* 32F390 */ UNK_RET fioPacketReceiveDone(UNK_PARAMS);
/* 32F39C */ UNK_RET fioPacketWrite(UNK_PARAMS);
/* 32F468 */ UNK_RET fioPacketResultWrite(UNK_PARAMS);

#endif
167 changes: 167 additions & 0 deletions src/melee/db/db_2253.c
Original file line number Diff line number Diff line change
@@ -1 +1,168 @@
#include "db_2253.h"

#include <dolphin/mtx/types.h>

/* 4D6B50 */ static IntVec2 lbl_804D6B50;

/// #db_80225374

/// #db_802254B8

/// #fn_8022558C

/// #fn_802255A4

/// #fn_802255BC

/// #db_802255D4

/// #db_802256CC

/// #db_80225754

/// #fn_80225A00

/// #fn_80225A54

/// #db_80225B0C

/// #db_80225B20

/// #db_80225B34

/// #fn_80225B48

/// #fn_80225B9C

/// #fn_80225BF0

/// #fn_80225C44

/// #fn_80225C8C

/// #fn_80225CD4

/// #db_80225D1C

/// #db_80225D2C

/// #db_80225D40

/// #db_80225D54

/// #db_80225D64

/// #fn_80225D7C

/// #db_80225DD8

/// #fn_80225E6C

/// #fn_80225F20

/// #fn_802260D4

/// #fn_802261BC

/// #fn_802262E0

/// #fn_802264C4

/// #fn_8022659C

/// #fn_8022666C

/// #fn_80226730

/// #fn_802267C8

/// #fn_802268B8

/// #fn_8022697C

/// #fn_802269C0

/// #fn_80226BD4

void fn_80226E00(void)
{
lbl_804D6B50.x = 0;
}

/// #fn_80226E0C

/// #fn_802270C4

/// #fn_8022713C

/// #fn_80227174

/// #fn_80227188

/// #fn_80227484

/// #fn_802277E8

/// #fn_80227904

/// #fn_802279E8

/// #fn_80227B64

/// #fn_80227BA8

/// #fn_80227CAC

/// #fn_80227D38

/// #fn_80227EB0

/// #fn_80227FE0

/// #fn_80228124

/// #fn_80228318

/// #fn_802283F0

/// #fn_80228620

/// #fn_8022873C

/// #fn_802287C4

/// #fn_802287D8

/// #fn_80228820

/// #db_8022886C

/// #db_8022887C

/// #db_8022892C

/// #fn_802289F8

/// #db_80228A64

/// #fn_80228AB4

/// #fn_80228B28

/// #db_80228C4C

/// #fn_80228CF4

/// #fn_80228D18

/// #fn_80228D38

/// #fn_80228E54

/// #fn_8022900C

/// #fn_802291A0

/// #fn_80229220

/// #fn_80229240
Loading
Loading