Files
cadmic d693726da8 SDK headers cleanup (#26)
* Use #include "..." rather than #include <...>

* Remove unused dolphin headers

* Go through dolphin/base.h

* Remove __cplusplus guards

* Go through dolphin/gx.h

* Move dolphin OS headers to subdirectory

* Go through dolphin/os.h

* Go through the rest of dolphin headers

* Split out si.h

* Split up hw_regs.h

* Change #include <> to #include "" in debug info

* Create dolphin/thp.h

* Go through variables.h

* Create dolphin.h
2024-02-21 13:56:38 -08:00

369 lines
8.1 KiB
C

/*
Compile unit: C:\HOMEBOY\STEPHEN\Japanese Ocarina\Fire\_cpuDecodePPC2.c
Producer: MW EABI PPC C-Compiler
Language: C89
Code range: 0x80068368 -> 0x8006BE68
*/
#include "dolphin/types.h"
// Range: 0x8006BC80 -> 0x8006BE68
static s32 cpuCompile_DSLLV(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r11
s32 nSize; // r1+0x8
}
// Range: 0x8006BA98 -> 0x8006BC80
static s32 cpuCompile_DSRLV(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r11
s32 nSize; // r1+0x8
}
// Range: 0x8006B894 -> 0x8006BA98
static s32 cpuCompile_DSRAV(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r1+0x8
s32 nSize; // r1+0x8
}
// Range: 0x8006B390 -> 0x8006B894
static s32 cpuCompile_DMULT(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r31
// s32* addressGCN; // r27
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x8006B07C -> 0x8006B390
static s32 cpuCompile_DMULTU(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r31
// s32* addressGCN; // r30
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x8006AAC0 -> 0x8006B07C
static s32 cpuCompile_DDIV(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r16
// Local variables
s32* compile; // r1+0x10
s32 count; // r23
s32 nSize; // r1+0x8
}
// Range: 0x8006A6A4 -> 0x8006AAC0
static s32 cpuCompile_DDIVU(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r31
// s32* addressGCN; // r24
// Local variables
s32* compile; // r1+0x10
s32 count; // r9
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_DADD(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_DADDU(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_DSUB(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_DSUBU(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x8006A364 -> 0x8006A6A4
static s32 cpuCompile_S_SQRT(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r19
// s32* addressGCN; // r18
// Local variables
s32* compile; // r1+0x10
s32 count; // r29
s32 nSize; // r1+0x8
}
// Range: 0x80069F30 -> 0x8006A364
static s32 cpuCompile_D_SQRT(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r22
// s32* addressGCN; // r21
// Local variables
s32* compile; // r1+0x10
s32 count; // r21
s32 nSize; // r1+0x8
}
// Range: 0x80069D80 -> 0x80069F30
static s32 cpuCompile_W_CVT_SD(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r31
// s32* addressGCN; // r30
// Local variables
s32* compile; // r1+0x10
s32 count; // r30
s32 nSize; // r1+0x8
}
// Range: 0x80069800 -> 0x80069D80
static s32 cpuCompile_L_CVT_SD(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x80069644 -> 0x80069800
static s32 cpuCompile_CEIL_W(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x80069488 -> 0x80069644
static s32 cpuCompile_FLOOR_W(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_ROUND_W(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Erased
static s32 cpuCompile_TRUNC_W(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x8006931C -> 0x80069488
static s32 cpuCompile_LB(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r9
s32 nSize; // r1+0x8
}
// Range: 0x800691B0 -> 0x8006931C
static s32 cpuCompile_LH(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r9
s32 nSize; // r1+0x8
}
// Range: 0x80069058 -> 0x800691B0
static s32 cpuCompile_LW(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x80068F00 -> 0x80069058
static s32 cpuCompile_LBU(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x80068DA8 -> 0x80068F00
static s32 cpuCompile_LHU(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x80068C4C -> 0x80068DA8
static s32 cpuCompile_SB(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x80068AF0 -> 0x80068C4C
static s32 cpuCompile_SH(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x80068994 -> 0x80068AF0
static s32 cpuCompile_SW(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}
// Range: 0x8006880C -> 0x80068994
static s32 cpuCompile_LDC(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x80068684 -> 0x8006880C
static s32 cpuCompile_SDC(struct _CPU* pCPU, s32* addressGCN) {
// Parameters
// struct _CPU* pCPU; // r30
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r5
s32 nSize; // r1+0x8
}
// Range: 0x800684F4 -> 0x80068684
static s32 cpuCompile_LWL(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r9
s32 nSize; // r1+0x8
}
// Range: 0x80068368 -> 0x800684F4
static s32 cpuCompile_LWR(s32* addressGCN) {
// Parameters
// s32* addressGCN; // r31
// Local variables
s32* compile; // r1+0x10
s32 count; // r7
s32 nSize; // r1+0x8
}