Some Libultra data and decompilation work (#200)

* Move osWritebackDCacheAll.s to hasm

* Fix build

* Work on Libultra data and decompilation

* Fix Build

* Fix JP build

* Address comments
This commit is contained in:
JoshDuMan 2021-03-10 00:06:53 -05:00 committed by GitHub
parent dc20524e2d
commit f0585ec87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
99 changed files with 773 additions and 393 deletions

View File

@ -291,6 +291,9 @@ extern MusicPlayer D_8014F6F0;
extern OSThread D_800A4270; // idle thread, id 1
extern OSThread D_800A4420; // id 3
extern s32 D_800B8590;
extern OSThread* __osActiveQueue;
extern OSThread* __osRunningThread;
extern OSThread* __osRunQueue;
// gfx
extern DisplayContext* gDisplayContext;

View File

@ -1,7 +1,7 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3CF80", osContInit, OSMesgQueue* arg0, u8* arg1, OSContStatus* arg2);
INCLUDE_ASM(s32, "os/controller", osContInit, OSMesgQueue* arg0, u8* arg1, OSContStatus* arg2);
INCLUDE_ASM(s32, "os/code_3CF80", osContGetInitData);
INCLUDE_ASM(s32, "os/controller", osContGetInitData);
INCLUDE_ASM(s32, "os/code_3CF80", osPackRequestData);
INCLUDE_ASM(s32, "os/controller", osPackRequestData);

View File

@ -1,5 +1,8 @@
#include "common.h"
char spaces[] = " ";
char zeroes[] = "00000000000000000000000000000000";
INCLUDE_ASM(s32, "os/code_3FEA0", _Printf);
INCLUDE_ASM(s32, "os/code_3FEA0", _Putfld);

View File

@ -1,21 +0,0 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContMgrInit);
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContMgrRemove);
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContDataClose);
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContDataOpen);
INCLUDE_ASM(s32, "os/code_3b910_len_410", contRetrace);
INCLUDE_ASM(s32, "os/code_3b910_len_410", contReadData);
INCLUDE_ASM(s32, "os/code_3b910_len_410", contReadNW);
INCLUDE_ASM(s32, "os/code_3b910_len_410", contQuery);
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContDataLock);
INCLUDE_ASM(s32, "os/code_3b910_len_410", nuContDataUnLock);

View File

@ -1,5 +0,0 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_3bde0_len_3e0", osCreatePiManager, OSPri prio, OSMesgQueue* queue, OSMesg* mesg, s32 unk);
INCLUDE_ASM(s32, "os/code_3bde0_len_3e0", osEPiRawStartDma);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM(OSPiHandle*, "os/code_3c310_len_180", osCartRomInit, void);

View File

@ -1,3 +1,3 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3c490_len_3c0", osDevMgrMain);
INCLUDE_ASM(s32, "os/code_3c490_len_3c0", __osDevMgrMain);

View File

@ -1,7 +1,9 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_3c850_len_f0", osPiCreateAccessQueue);
u32 __osPiAccessQueueEnabled = 0;
INCLUDE_ASM(s32, "os/code_3c850_len_f0", osPiGetAccess);
INCLUDE_ASM(s32, "os/code_3c850_len_f0", __osPiCreateAccessQueue);
INCLUDE_ASM(s32, "os/code_3c850_len_f0", osPiRelAccess);
INCLUDE_ASM(s32, "os/code_3c850_len_f0", __osPiGetAccess);
INCLUDE_ASM(s32, "os/code_3c850_len_f0", __osPiRelAccess);

View File

@ -1,3 +1,5 @@
#include "common.h"
u8 hdwrBugFlag = 0; // Local Static to osAiSetNextBuffer.
INCLUDE_ASM(s32, "os/code_3ca80_len_a0", osAiSetNextBuffer, void* buf, u32 unk);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_3ccd0_len_30", osWritebackDCacheAll, void);

View File

@ -1,5 +1,7 @@
#include "common.h"
f32 dtor = M_DTOR;
INCLUDE_ASM(void, "os/code_3f310_len_3c0", guPositionF, float mf[4][4], float r, float p, float h, float s, float x,
float y, float z);

View File

@ -1,5 +1,7 @@
#include "common.h"
f32 D_80093DD0 = M_DTOR;
INCLUDE_ASM(s32, "os/code_3f6d0_len_320", guRotateAnglesF);
INCLUDE_ASM(s32, "os/code_3f6d0_len_320", guRotateAngles);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM(s16, "os/code_3f9f0_len_60", sins, u16 angle);

View File

@ -1,5 +1,7 @@
#include "common.h"
u32 __osPreNMI = 0;
INCLUDE_ASM(s32, "os/code_40c20_len_1f0", osSendMesg, OSMesgQueue* queue, OSMesg mesg, s32 unk);
INCLUDE_ASM(void, "os/code_40c20_len_1f0", osSetEventMesg, OSEvent event, OSMesgQueue* queue, OSMesg mesg);

View File

@ -1,7 +1,9 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_41170_len_f0", osSiCreateAccessQueue);
u32 __osSiAccessQueueEnabled = 0;
INCLUDE_ASM(s32, "os/code_41170_len_f0", osSiGetAccess);
INCLUDE_ASM(s32, "os/code_41170_len_f0", __osSiCreateAccessQueue);
INCLUDE_ASM(s32, "os/code_41170_len_f0", osSiRelAccess);
INCLUDE_ASM(s32, "os/code_41170_len_f0", __osSiGetAccess);
INCLUDE_ASM(s32, "os/code_41170_len_f0", __osSiRelAccess);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM(void, "os/code_41350_len_d0", osSetThreadPri, OSThread* thread, OSPri pri);

View File

@ -1,3 +1,3 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_41600_len_40", osDequeueThread);
INCLUDE_ASM(s32, "os/code_41600_len_40", __osDequeueThread);

View File

@ -1,3 +1,3 @@
#include "common.h"
INCLUDE_ASM(s32, "os/code_46c50_len_20", osAiDeviceBusy);
INCLUDE_ASM(s32, "os/code_46c50_len_20", __osAiDeviceBusy);

9
src/os/controller.c Normal file
View File

@ -0,0 +1,9 @@
#include "common.h"
u32 __osContinitialized = 0;
INCLUDE_ASM(s32, "controller", osContInit, OSMesgQueue* arg0, u8* arg1, OSContStatus* arg2);
INCLUDE_ASM(s32, "controller", osContGetInitData);
INCLUDE_ASM(s32, "controller", osPackRequestData);

45
src/os/nuContMgr.c Normal file
View File

@ -0,0 +1,45 @@
#include "common.h"
#include "nu/nusys.h"
s32 contRetrace();
s32 contReadData();
s32 contReadNW();
s32 contQuery();
u32 D_80093D20 = 0;
UNK_FUN_PTR(D_80093D24[4]) = {
contRetrace,
contReadData,
contReadNW,
contQuery,
};
s32 D_80093D34 = 0;
NUCallBackList nuContCallBack = {
NULL,
D_80093D24,
0x100,
0,
};
INCLUDE_ASM(u8, "os/nuContMgr", nuContMgrInit);
INCLUDE_ASM(void, "os/nuContMgr", nuContMgrRemove);
INCLUDE_ASM(void, "os/nuContMgr", nuContDataClose);
INCLUDE_ASM(void, "os/nuContMgr", nuContDataOpen);
INCLUDE_ASM(s32, "os/nuContMgr", contRetrace);
INCLUDE_ASM(s32, "os/nuContMgr", contReadData);
INCLUDE_ASM(s32, "os/nuContMgr", contReadNW);
INCLUDE_ASM(s32, "os/nuContMgr", contQuery);
INCLUDE_ASM(void, "os/nuContMgr", nuContDataLock);
INCLUDE_ASM(void, "os/nuContMgr", nuContDataUnLock);

View File

@ -2,11 +2,11 @@
#include "nu/nusys.h"
void nuContPakMgrInit(void) {
nuSiCallBackAdd(&nuContCallBack);
nuSiCallBackAdd(&nuContPakCallBack);
}
void nuContPakMgrRemove(void) {
nuSiCallBackRemove(&nuContCallBack);
nuSiCallBackRemove(&nuContPakCallBack);
}
s32 contPakOpen(NUSiCommonMesg* mesg) {

View File

@ -1,6 +1,8 @@
#include "common.h"
#include "nu/nusys.h"
NUGfxFunc nuGfxFunc = NULL;
void nuGfxFuncSet(NUGfxFunc func) {
OSIntMask intMask;

View File

@ -1,6 +1,8 @@
#include "common.h"
#include "nu/nusys.h"
NUGfxPreNMIFunc nuGfxPreNMIFunc = NULL;
void nuGfxPreNMIFuncSet(NUGfxPreNMIFunc func) {
OSIntMask intMask = osSetIntMask(OS_IM_NONE);

5
src/os/osCartRomInit.c Normal file
View File

@ -0,0 +1,5 @@
#include "common.h"
u32 D_80093D80 = 1;
INCLUDE_ASM(OSPiHandle*, "os/osCartRomInit", osCartRomInit, void);

View File

@ -0,0 +1,12 @@
#include "common.h"
OSDevMgr __osPiDevMgr = {0};
OSPiHandle* __osPiTable = NULL;
extern OSPiHandle CartRomHandle;
extern OSPiHandle LeoDiskHandle;
OSPiHandle *__osCurrentHandle[2] = {&CartRomHandle, &LeoDiskHandle};
INCLUDE_ASM(void, "os/osCreatePiManager", osCreatePiManager, OSPri prio, OSMesgQueue* queue, OSMesg* mesg, s32 unk);
INCLUDE_ASM(s32, "os/osCreatePiManager", osEPiRawStartDma, OSPiHandle *arg0, s32 dir, u32 cart_addr, void *dram_addr, u32 size);

View File

@ -4,9 +4,9 @@
s32 osEPiWriteIo(OSPiHandle* handle, u32 devAddr, u32 data) {
register s32 ret;
osPiGetAccess();
__osPiGetAccess();
ret = osEPiRawWriteIo(handle, devAddr, data);
osPiRelAccess();
__osPiRelAccess();
return ret;
}

38
src/os/osSetThreadPri.c Normal file
View File

@ -0,0 +1,38 @@
#include "common.h"
struct __osThreadTail {
OSThread* next;
OSPri priority;
};
struct __osThreadTail __osThreadTail = {0, -1};
OSThread* __osRunQueue = (OSThread*)&__osThreadTail;
OSThread* __osActiveQueue = (OSThread*)&__osThreadTail;
OSThread* __osRunningThread = NULL;
OSThread* __osFaultedThread = NULL;
#ifdef MOVE_ISSUE
void osSetThreadPri(OSThread* thread, OSPri pri) {
register u32 prevInt = __osDisableInt();
if (thread == NULL) {
thread = __osRunningThread;
}
if (thread->priority != pri) {
thread->priority = pri;
if (thread != __osRunningThread && thread->state != 1) {
__osDequeueThread(thread->queue, thread);
__osEnqueueThread(thread->queue, thread);
}
if (__osRunningThread->priority < __osRunQueue->priority) {
__osRunningThread->state = 2;
__osEnqueueAndYield(&__osRunQueue);
}
}
__osRestoreInt(prevInt);
}
#else
INCLUDE_ASM(void, "os/osSetThreadPri", osSetThreadPri, OSThread* thread, OSPri pri);
#endif

5
src/os/sins.c Normal file
View File

@ -0,0 +1,5 @@
#include "common.h"
#include "sintable.inc.c"
INCLUDE_ASM(s16, "os/sins", sins, u16 angle);

78
src/os/sintable.inc.c Normal file
View File

@ -0,0 +1,78 @@
#include "types.h"
static s16 sintable[0x400] = {
0x0000, 0x0032, 0x0064, 0x0096, 0x00C9, 0x00FB, 0x012D, 0x0160, 0x0192, 0x01C4, 0x01F7, 0x0229, 0x025B, 0x028E,
0x02C0, 0x02F2, 0x0324, 0x0357, 0x0389, 0x03BB, 0x03EE, 0x0420, 0x0452, 0x0484, 0x04B7, 0x04E9, 0x051B, 0x054E,
0x0580, 0x05B2, 0x05E4, 0x0617, 0x0649, 0x067B, 0x06AD, 0x06E0, 0x0712, 0x0744, 0x0776, 0x07A9, 0x07DB, 0x080D,
0x083F, 0x0871, 0x08A4, 0x08D6, 0x0908, 0x093A, 0x096C, 0x099F, 0x09D1, 0x0A03, 0x0A35, 0x0A67, 0x0A99, 0x0ACB,
0x0AFE, 0x0B30, 0x0B62, 0x0B94, 0x0BC6, 0x0BF8, 0x0C2A, 0x0C5C, 0x0C8E, 0x0CC0, 0x0CF2, 0x0D25, 0x0D57, 0x0D89,
0x0DBB, 0x0DED, 0x0E1F, 0x0E51, 0x0E83, 0x0EB5, 0x0EE7, 0x0F19, 0x0F4B, 0x0F7C, 0x0FAE, 0x0FE0, 0x1012, 0x1044,
0x1076, 0x10A8, 0x10DA, 0x110C, 0x113E, 0x116F, 0x11A1, 0x11D3, 0x1205, 0x1237, 0x1269, 0x129A, 0x12CC, 0x12FE,
0x1330, 0x1361, 0x1393, 0x13C5, 0x13F6, 0x1428, 0x145A, 0x148C, 0x14BD, 0x14EF, 0x1520, 0x1552, 0x1584, 0x15B5,
0x15E7, 0x1618, 0x164A, 0x167B, 0x16AD, 0x16DF, 0x1710, 0x1741, 0x1773, 0x17A4, 0x17D6, 0x1807, 0x1839, 0x186A,
0x189B, 0x18CD, 0x18FE, 0x1930, 0x1961, 0x1992, 0x19C3, 0x19F5, 0x1A26, 0x1A57, 0x1A88, 0x1ABA, 0x1AEB, 0x1B1C,
0x1B4D, 0x1B7E, 0x1BAF, 0x1BE1, 0x1C12, 0x1C43, 0x1C74, 0x1CA5, 0x1CD6, 0x1D07, 0x1D38, 0x1D69, 0x1D9A, 0x1DCB,
0x1DFC, 0x1E2D, 0x1E5D, 0x1E8E, 0x1EBF, 0x1EF0, 0x1F21, 0x1F52, 0x1F82, 0x1FB3, 0x1FE4, 0x2015, 0x2045, 0x2076,
0x20A7, 0x20D7, 0x2108, 0x2139, 0x2169, 0x219A, 0x21CA, 0x21FB, 0x222B, 0x225C, 0x228C, 0x22BD, 0x22ED, 0x231D,
0x234E, 0x237E, 0x23AE, 0x23DF, 0x240F, 0x243F, 0x2470, 0x24A0, 0x24D0, 0x2500, 0x2530, 0x2560, 0x2591, 0x25C1,
0x25F1, 0x2621, 0x2651, 0x2681, 0x26B1, 0x26E1, 0x2711, 0x2740, 0x2770, 0x27A0, 0x27D0, 0x2800, 0x2830, 0x285F,
0x288F, 0x28BF, 0x28EE, 0x291E, 0x294E, 0x297D, 0x29AD, 0x29DD, 0x2A0C, 0x2A3C, 0x2A6B, 0x2A9B, 0x2ACA, 0x2AF9,
0x2B29, 0x2B58, 0x2B87, 0x2BB7, 0x2BE6, 0x2C15, 0x2C44, 0x2C74, 0x2CA3, 0x2CD2, 0x2D01, 0x2D30, 0x2D5F, 0x2D8E,
0x2DBD, 0x2DEC, 0x2E1B, 0x2E4A, 0x2E79, 0x2EA8, 0x2ED7, 0x2F06, 0x2F34, 0x2F63, 0x2F92, 0x2FC0, 0x2FEF, 0x301E,
0x304C, 0x307B, 0x30A9, 0x30D8, 0x3107, 0x3135, 0x3163, 0x3192, 0x31C0, 0x31EF, 0x321D, 0x324B, 0x3279, 0x32A8,
0x32D6, 0x3304, 0x3332, 0x3360, 0x338E, 0x33BC, 0x33EA, 0x3418, 0x3446, 0x3474, 0x34A2, 0x34D0, 0x34FE, 0x352B,
0x3559, 0x3587, 0x35B5, 0x35E2, 0x3610, 0x363D, 0x366B, 0x3698, 0x36C6, 0x36F3, 0x3721, 0x374E, 0x377C, 0x37A9,
0x37D6, 0x3803, 0x3831, 0x385E, 0x388B, 0x38B8, 0x38E5, 0x3912, 0x393F, 0x396C, 0x3999, 0x39C6, 0x39F3, 0x3A20,
0x3A4D, 0x3A79, 0x3AA6, 0x3AD3, 0x3B00, 0x3B2C, 0x3B59, 0x3B85, 0x3BB2, 0x3BDE, 0x3C0B, 0x3C37, 0x3C64, 0x3C90,
0x3CBC, 0x3CE9, 0x3D15, 0x3D41, 0x3D6D, 0x3D99, 0x3DC5, 0x3DF1, 0x3E1D, 0x3E49, 0x3E75, 0x3EA1, 0x3ECD, 0x3EF9,
0x3F25, 0x3F50, 0x3F7C, 0x3FA8, 0x3FD3, 0x3FFF, 0x402B, 0x4056, 0x4082, 0x40AD, 0x40D8, 0x4104, 0x412F, 0x415A,
0x4186, 0x41B1, 0x41DC, 0x4207, 0x4232, 0x425D, 0x4288, 0x42B3, 0x42DE, 0x4309, 0x4334, 0x435F, 0x4389, 0x43B4,
0x43DF, 0x4409, 0x4434, 0x445F, 0x4489, 0x44B4, 0x44DE, 0x4508, 0x4533, 0x455D, 0x4587, 0x45B1, 0x45DC, 0x4606,
0x4630, 0x465A, 0x4684, 0x46AE, 0x46D8, 0x4702, 0x472C, 0x4755, 0x477F, 0x47A9, 0x47D2, 0x47FC, 0x4826, 0x484F,
0x4879, 0x48A2, 0x48CC, 0x48F5, 0x491E, 0x4948, 0x4971, 0x499A, 0x49C3, 0x49EC, 0x4A15, 0x4A3E, 0x4A67, 0x4A90,
0x4AB9, 0x4AE2, 0x4B0B, 0x4B33, 0x4B5C, 0x4B85, 0x4BAD, 0x4BD6, 0x4BFE, 0x4C27, 0x4C4F, 0x4C78, 0x4CA0, 0x4CC8,
0x4CF0, 0x4D19, 0x4D41, 0x4D69, 0x4D91, 0x4DB9, 0x4DE1, 0x4E09, 0x4E31, 0x4E58, 0x4E80, 0x4EA8, 0x4ED0, 0x4EF7,
0x4F1F, 0x4F46, 0x4F6E, 0x4F95, 0x4FBD, 0x4FE4, 0x500B, 0x5032, 0x505A, 0x5081, 0x50A8, 0x50CF, 0x50F6, 0x511D,
0x5144, 0x516B, 0x5191, 0x51B8, 0x51DF, 0x5205, 0x522C, 0x5253, 0x5279, 0x52A0, 0x52C6, 0x52EC, 0x5313, 0x5339,
0x535F, 0x5385, 0x53AB, 0x53D1, 0x53F7, 0x541D, 0x5443, 0x5469, 0x548F, 0x54B5, 0x54DA, 0x5500, 0x5525, 0x554B,
0x5571, 0x5596, 0x55BB, 0x55E1, 0x5606, 0x562B, 0x5650, 0x5675, 0x569B, 0x56C0, 0x56E5, 0x5709, 0x572E, 0x5753,
0x5778, 0x579D, 0x57C1, 0x57E6, 0x580A, 0x582F, 0x5853, 0x5878, 0x589C, 0x58C0, 0x58E5, 0x5909, 0x592D, 0x5951,
0x5975, 0x5999, 0x59BD, 0x59E1, 0x5A04, 0x5A28, 0x5A4C, 0x5A6F, 0x5A93, 0x5AB7, 0x5ADA, 0x5AFD, 0x5B21, 0x5B44,
0x5B67, 0x5B8B, 0x5BAE, 0x5BD1, 0x5BF4, 0x5C17, 0x5C3A, 0x5C5D, 0x5C7F, 0x5CA2, 0x5CC5, 0x5CE7, 0x5D0A, 0x5D2D,
0x5D4F, 0x5D71, 0x5D94, 0x5DB6, 0x5DD8, 0x5DFA, 0x5E1D, 0x5E3F, 0x5E61, 0x5E83, 0x5EA5, 0x5EC6, 0x5EE8, 0x5F0A,
0x5F2C, 0x5F4D, 0x5F6F, 0x5F90, 0x5FB2, 0x5FD3, 0x5FF4, 0x6016, 0x6037, 0x6058, 0x6079, 0x609A, 0x60BB, 0x60DC,
0x60FD, 0x611E, 0x613E, 0x615F, 0x6180, 0x61A0, 0x61C1, 0x61E1, 0x6202, 0x6222, 0x6242, 0x6263, 0x6283, 0x62A3,
0x62C3, 0x62E3, 0x6303, 0x6323, 0x6342, 0x6362, 0x6382, 0x63A1, 0x63C1, 0x63E0, 0x6400, 0x641F, 0x643F, 0x645E,
0x647D, 0x649C, 0x64BB, 0x64DA, 0x64F9, 0x6518, 0x6537, 0x6556, 0x6574, 0x6593, 0x65B2, 0x65D0, 0x65EF, 0x660D,
0x662B, 0x664A, 0x6668, 0x6686, 0x66A4, 0x66C2, 0x66E0, 0x66FE, 0x671C, 0x673A, 0x6757, 0x6775, 0x6792, 0x67B0,
0x67CD, 0x67EB, 0x6808, 0x6825, 0x6843, 0x6860, 0x687D, 0x689A, 0x68B7, 0x68D4, 0x68F1, 0x690D, 0x692A, 0x6947,
0x6963, 0x6980, 0x699C, 0x69B9, 0x69D5, 0x69F1, 0x6A0E, 0x6A2A, 0x6A46, 0x6A62, 0x6A7E, 0x6A9A, 0x6AB5, 0x6AD1,
0x6AED, 0x6B08, 0x6B24, 0x6B40, 0x6B5B, 0x6B76, 0x6B92, 0x6BAD, 0x6BC8, 0x6BE3, 0x6BFE, 0x6C19, 0x6C34, 0x6C4F,
0x6C6A, 0x6C84, 0x6C9F, 0x6CBA, 0x6CD4, 0x6CEF, 0x6D09, 0x6D23, 0x6D3E, 0x6D58, 0x6D72, 0x6D8C, 0x6DA6, 0x6DC0,
0x6DDA, 0x6DF3, 0x6E0D, 0x6E27, 0x6E40, 0x6E5A, 0x6E73, 0x6E8D, 0x6EA6, 0x6EBF, 0x6ED9, 0x6EF2, 0x6F0B, 0x6F24,
0x6F3D, 0x6F55, 0x6F6E, 0x6F87, 0x6FA0, 0x6FB8, 0x6FD1, 0x6FE9, 0x7002, 0x701A, 0x7032, 0x704A, 0x7062, 0x707A,
0x7092, 0x70AA, 0x70C2, 0x70DA, 0x70F2, 0x7109, 0x7121, 0x7138, 0x7150, 0x7167, 0x717E, 0x7196, 0x71AD, 0x71C4,
0x71DB, 0x71F2, 0x7209, 0x7220, 0x7236, 0x724D, 0x7264, 0x727A, 0x7291, 0x72A7, 0x72BD, 0x72D4, 0x72EA, 0x7300,
0x7316, 0x732C, 0x7342, 0x7358, 0x736E, 0x7383, 0x7399, 0x73AE, 0x73C4, 0x73D9, 0x73EF, 0x7404, 0x7419, 0x742E,
0x7443, 0x7458, 0x746D, 0x7482, 0x7497, 0x74AC, 0x74C0, 0x74D5, 0x74EA, 0x74FE, 0x7512, 0x7527, 0x753B, 0x754F,
0x7563, 0x7577, 0x758B, 0x759F, 0x75B3, 0x75C7, 0x75DA, 0x75EE, 0x7601, 0x7615, 0x7628, 0x763B, 0x764F, 0x7662,
0x7675, 0x7688, 0x769B, 0x76AE, 0x76C1, 0x76D3, 0x76E6, 0x76F9, 0x770B, 0x771E, 0x7730, 0x7742, 0x7754, 0x7767,
0x7779, 0x778B, 0x779D, 0x77AF, 0x77C0, 0x77D2, 0x77E4, 0x77F5, 0x7807, 0x7818, 0x782A, 0x783B, 0x784C, 0x785D,
0x786E, 0x787F, 0x7890, 0x78A1, 0x78B2, 0x78C3, 0x78D3, 0x78E4, 0x78F4, 0x7905, 0x7915, 0x7925, 0x7936, 0x7946,
0x7956, 0x7966, 0x7976, 0x7985, 0x7995, 0x79A5, 0x79B5, 0x79C4, 0x79D4, 0x79E3, 0x79F2, 0x7A02, 0x7A11, 0x7A20,
0x7A2F, 0x7A3E, 0x7A4D, 0x7A5B, 0x7A6A, 0x7A79, 0x7A87, 0x7A96, 0x7AA4, 0x7AB3, 0x7AC1, 0x7ACF, 0x7ADD, 0x7AEB,
0x7AF9, 0x7B07, 0x7B15, 0x7B23, 0x7B31, 0x7B3E, 0x7B4C, 0x7B59, 0x7B67, 0x7B74, 0x7B81, 0x7B8E, 0x7B9B, 0x7BA8,
0x7BB5, 0x7BC2, 0x7BCF, 0x7BDC, 0x7BE8, 0x7BF5, 0x7C02, 0x7C0E, 0x7C1A, 0x7C27, 0x7C33, 0x7C3F, 0x7C4B, 0x7C57,
0x7C63, 0x7C6F, 0x7C7A, 0x7C86, 0x7C92, 0x7C9D, 0x7CA9, 0x7CB4, 0x7CBF, 0x7CCB, 0x7CD6, 0x7CE1, 0x7CEC, 0x7CF7,
0x7D02, 0x7D0C, 0x7D17, 0x7D22, 0x7D2C, 0x7D37, 0x7D41, 0x7D4B, 0x7D56, 0x7D60, 0x7D6A, 0x7D74, 0x7D7E, 0x7D88,
0x7D91, 0x7D9B, 0x7DA5, 0x7DAE, 0x7DB8, 0x7DC1, 0x7DCB, 0x7DD4, 0x7DDD, 0x7DE6, 0x7DEF, 0x7DF8, 0x7E01, 0x7E0A,
0x7E13, 0x7E1B, 0x7E24, 0x7E2C, 0x7E35, 0x7E3D, 0x7E45, 0x7E4D, 0x7E56, 0x7E5E, 0x7E66, 0x7E6D, 0x7E75, 0x7E7D,
0x7E85, 0x7E8C, 0x7E94, 0x7E9B, 0x7EA3, 0x7EAA, 0x7EB1, 0x7EB8, 0x7EBF, 0x7EC6, 0x7ECD, 0x7ED4, 0x7EDB, 0x7EE1,
0x7EE8, 0x7EEE, 0x7EF5, 0x7EFB, 0x7F01, 0x7F08, 0x7F0E, 0x7F14, 0x7F1A, 0x7F20, 0x7F25, 0x7F2B, 0x7F31, 0x7F36,
0x7F3C, 0x7F41, 0x7F47, 0x7F4C, 0x7F51, 0x7F56, 0x7F5B, 0x7F60, 0x7F65, 0x7F6A, 0x7F6F, 0x7F74, 0x7F78, 0x7F7D,
0x7F81, 0x7F85, 0x7F8A, 0x7F8E, 0x7F92, 0x7F96, 0x7F9A, 0x7F9E, 0x7FA2, 0x7FA6, 0x7FA9, 0x7FAD, 0x7FB0, 0x7FB4,
0x7FB7, 0x7FBA, 0x7FBE, 0x7FC1, 0x7FC4, 0x7FC7, 0x7FCA, 0x7FCC, 0x7FCF, 0x7FD2, 0x7FD4, 0x7FD7, 0x7FD9, 0x7FDC,
0x7FDE, 0x7FE0, 0x7FE2, 0x7FE4, 0x7FE6, 0x7FE8, 0x7FEA, 0x7FEC, 0x7FED, 0x7FEF, 0x7FF1, 0x7FF2, 0x7FF3, 0x7FF5,
0x7FF6, 0x7FF7, 0x7FF8, 0x7FF9, 0x7FFA, 0x7FFB, 0x7FFB, 0x7FFC, 0x7FFD, 0x7FFD, 0x7FFE, 0x7FFE, 0x7FFE, 0x7FFE,
0x7FFE, 0x7FFF,
};

View File

@ -26,5 +26,5 @@ glabel nuContPakCompanyCode
glabel nuContPakGameCode
.word 0x00000000, 0x00000000, contPakOpen, contPakFree, contPakFileOpen, contPakFileReadWrite, contPakFileDelete, contPakFileState, contPakFileNum, contPakRepairId, 0x00000000
glabel nuContCallBack
glabel nuContPakCallBack
.word 0x00000000, 0x80093CA8, 0x02000000, 0x00000000

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,111 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osContInit
/* 3CF80 80061B80 3C028009 */ lui $v0, %hi(__osContinitialized)
/* 3CF84 80061B84 8C423DB0 */ lw $v0, %lo(__osContinitialized)($v0)
/* 3CF88 80061B88 27BDFF80 */ addiu $sp, $sp, -0x80
/* 3CF8C 80061B8C AFB40070 */ sw $s4, 0x70($sp)
/* 3CF90 80061B90 0080A021 */ addu $s4, $a0, $zero
/* 3CF94 80061B94 AFB50074 */ sw $s5, 0x74($sp)
/* 3CF98 80061B98 00A0A821 */ addu $s5, $a1, $zero
/* 3CF9C 80061B9C AFB60078 */ sw $s6, 0x78($sp)
/* 3CFA0 80061BA0 00C0B021 */ addu $s6, $a2, $zero
/* 3CFA4 80061BA4 AFBF007C */ sw $ra, 0x7c($sp)
/* 3CFA8 80061BA8 AFB3006C */ sw $s3, 0x6c($sp)
/* 3CFAC 80061BAC AFB20068 */ sw $s2, 0x68($sp)
/* 3CFB0 80061BB0 AFB10064 */ sw $s1, 0x64($sp)
/* 3CFB4 80061BB4 10400003 */ beqz $v0, .L80061BC4
/* 3CFB8 80061BB8 AFB00060 */ sw $s0, 0x60($sp)
/* 3CFBC 80061BBC 0801873D */ j .L80061CF4
/* 3CFC0 80061BC0 00001021 */ addu $v0, $zero, $zero
.L80061BC4:
/* 3CFC4 80061BC4 24020001 */ addiu $v0, $zero, 1
/* 3CFC8 80061BC8 3C018009 */ lui $at, %hi(__osContinitialized)
/* 3CFCC 80061BCC 0C0198A8 */ jal osGetTime
/* 3CFD0 80061BD0 AC223DB0 */ sw $v0, %lo(__osContinitialized)($at)
/* 3CFD4 80061BD4 00409021 */ addu $s2, $v0, $zero
/* 3CFD8 80061BD8 00609821 */ addu $s3, $v1, $zero
/* 3CFDC 80061BDC 56400022 */ bnel $s2, $zero, .L80061C68
/* 3CFE0 80061BE0 24020004 */ addiu $v0, $zero, 4
/* 3CFE4 80061BE4 16400007 */ bnez $s2, .L80061C04
/* 3CFE8 80061BE8 27B10040 */ addiu $s1, $sp, 0x40
/* 3CFEC 80061BEC 3C020165 */ lui $v0, 0x165
/* 3CFF0 80061BF0 3442A0BB */ ori $v0, $v0, 0xa0bb
/* 3CFF4 80061BF4 0053102B */ sltu $v0, $v0, $s3
/* 3CFF8 80061BF8 1440001B */ bnez $v0, .L80061C68
/* 3CFFC 80061BFC 24020004 */ addiu $v0, $zero, 4
/* 3D000 80061C00 27B10040 */ addiu $s1, $sp, 0x40
.L80061C04:
/* 3D004 80061C04 02202021 */ addu $a0, $s1, $zero
/* 3D008 80061C08 27B00058 */ addiu $s0, $sp, 0x58
/* 3D00C 80061C0C 02002821 */ addu $a1, $s0, $zero
/* 3D010 80061C10 0C019560 */ jal osCreateMesgQueue
/* 3D014 80061C14 24060001 */ addiu $a2, $zero, 1
/* 3D018 80061C18 00004021 */ addu $t0, $zero, $zero
/* 3D01C 80061C1C 00004821 */ addu $t1, $zero, $zero
/* 3D020 80061C20 27A40020 */ addiu $a0, $sp, 0x20
/* 3D024 80061C24 24060000 */ addiu $a2, $zero, 0
/* 3D028 80061C28 3C070165 */ lui $a3, 0x165
/* 3D02C 80061C2C 34E7A0BC */ ori $a3, $a3, 0xa0bc
/* 3D030 80061C30 00F3102B */ sltu $v0, $a3, $s3
/* 3D034 80061C34 00F33823 */ subu $a3, $a3, $s3
/* 3D038 80061C38 00D23023 */ subu $a2, $a2, $s2
/* 3D03C 80061C3C 00C23023 */ subu $a2, $a2, $v0
/* 3D040 80061C40 AFA80010 */ sw $t0, 0x10($sp)
/* 3D044 80061C44 AFA90014 */ sw $t1, 0x14($sp)
/* 3D048 80061C48 AFB10018 */ sw $s1, 0x18($sp)
/* 3D04C 80061C4C 0C0198D4 */ jal osSetTimer
/* 3D050 80061C50 AFB0001C */ sw $s0, 0x1c($sp)
/* 3D054 80061C54 02202021 */ addu $a0, $s1, $zero
/* 3D058 80061C58 02002821 */ addu $a1, $s0, $zero
/* 3D05C 80061C5C 0C0195BC */ jal osRecvMesg
/* 3D060 80061C60 24060001 */ addiu $a2, $zero, 1
/* 3D064 80061C64 24020004 */ addiu $v0, $zero, 4
.L80061C68:
/* 3D068 80061C68 3C01800A */ lui $at, %hi(D_8009A606)
/* 3D06C 80061C6C A022A606 */ sb $v0, %lo(D_8009A606)($at)
/* 3D070 80061C70 0C018774 */ jal osPackRequestData
/* 3D074 80061C74 00002021 */ addu $a0, $zero, $zero
/* 3D078 80061C78 24040001 */ addiu $a0, $zero, 1
/* 3D07C 80061C7C 3C11800B */ lui $s1, %hi(D_800B0ED0)
/* 3D080 80061C80 26310ED0 */ addiu $s1, $s1, %lo(D_800B0ED0)
/* 3D084 80061C84 0C019730 */ jal osSiRawStartDma
/* 3D088 80061C88 02202821 */ addu $a1, $s1, $zero
/* 3D08C 80061C8C 02802021 */ addu $a0, $s4, $zero
/* 3D090 80061C90 27B00058 */ addiu $s0, $sp, 0x58
/* 3D094 80061C94 02002821 */ addu $a1, $s0, $zero
/* 3D098 80061C98 0C0195BC */ jal osRecvMesg
/* 3D09C 80061C9C 24060001 */ addiu $a2, $zero, 1
/* 3D0A0 80061CA0 00002021 */ addu $a0, $zero, $zero
/* 3D0A4 80061CA4 0C019730 */ jal osSiRawStartDma
/* 3D0A8 80061CA8 02202821 */ addu $a1, $s1, $zero
/* 3D0AC 80061CAC 02802021 */ addu $a0, $s4, $zero
/* 3D0B0 80061CB0 02002821 */ addu $a1, $s0, $zero
/* 3D0B4 80061CB4 24060001 */ addiu $a2, $zero, 1
/* 3D0B8 80061CB8 0C0195BC */ jal osRecvMesg
/* 3D0BC 80061CBC 00408021 */ addu $s0, $v0, $zero
/* 3D0C0 80061CC0 02A02021 */ addu $a0, $s5, $zero
/* 3D0C4 80061CC4 0C018747 */ jal osContGetInitData
/* 3D0C8 80061CC8 02C02821 */ addu $a1, $s6, $zero
/* 3D0CC 80061CCC 3C01800A */ lui $at, %hi(D_8009A61C)
/* 3D0D0 80061CD0 0C01975C */ jal __osSiCreateAccessQueue
/* 3D0D4 80061CD4 A020A61C */ sb $zero, %lo(D_8009A61C)($at)
/* 3D0D8 80061CD8 3C04800E */ lui $a0, %hi(D_800DAAC0)
/* 3D0DC 80061CDC 2484AAC0 */ addiu $a0, $a0, %lo(D_800DAAC0)
/* 3D0E0 80061CE0 3C05800A */ lui $a1, %hi(D_8009A620)
/* 3D0E4 80061CE4 24A5A620 */ addiu $a1, $a1, %lo(D_8009A620)
/* 3D0E8 80061CE8 0C019560 */ jal osCreateMesgQueue
/* 3D0EC 80061CEC 24060001 */ addiu $a2, $zero, 1
/* 3D0F0 80061CF0 02001021 */ addu $v0, $s0, $zero
.L80061CF4:
/* 3D0F4 80061CF4 8FBF007C */ lw $ra, 0x7c($sp)
/* 3D0F8 80061CF8 8FB60078 */ lw $s6, 0x78($sp)
/* 3D0FC 80061CFC 8FB50074 */ lw $s5, 0x74($sp)
/* 3D100 80061D00 8FB40070 */ lw $s4, 0x70($sp)
/* 3D104 80061D04 8FB3006C */ lw $s3, 0x6c($sp)
/* 3D108 80061D08 8FB20068 */ lw $s2, 0x68($sp)
/* 3D10C 80061D0C 8FB10064 */ lw $s1, 0x64($sp)
/* 3D110 80061D10 8FB00060 */ lw $s0, 0x60($sp)
/* 3D114 80061D14 03E00008 */ jr $ra
/* 3D118 80061D18 27BD0080 */ addiu $sp, $sp, 0x80

View File

@ -230,8 +230,8 @@ glabel _Printf
/* 4019C 80064D9C 5A00000C */ blezl $s0, .L80064DD0
/* 401A0 80064DA0 02308823 */ subu $s1, $s1, $s0
/* 401A4 80064DA4 02602021 */ addu $a0, $s3, $zero
/* 401A8 80064DA8 3C058009 */ lui $a1, %hi(D_800945E0)
/* 401AC 80064DAC 24A545E0 */ addiu $a1, $a1, %lo(D_800945E0)
/* 401A8 80064DA8 3C058009 */ lui $a1, %hi(spaces)
/* 401AC 80064DAC 24A545E0 */ addiu $a1, $a1, %lo(spaces)
/* 401B0 80064DB0 0280F809 */ jalr $s4
/* 401B4 80064DB4 02003021 */ addu $a2, $s0, $zero
/* 401B8 80064DB8 00409821 */ addu $s3, $v0, $zero
@ -270,8 +270,8 @@ glabel _Printf
/* 40228 80064E28 5A00000C */ blezl $s0, .L80064E5C
/* 4022C 80064E2C 02308823 */ subu $s1, $s1, $s0
/* 40230 80064E30 02602021 */ addu $a0, $s3, $zero
/* 40234 80064E34 3C058009 */ lui $a1, %hi(D_80094604)
/* 40238 80064E38 24A54604 */ addiu $a1, $a1, %lo(D_80094604)
/* 40234 80064E34 3C058009 */ lui $a1, %hi(zeroes)
/* 40238 80064E38 24A54604 */ addiu $a1, $a1, %lo(zeroes)
/* 4023C 80064E3C 0280F809 */ jalr $s4
/* 40240 80064E40 02003021 */ addu $a2, $s0, $zero
/* 40244 80064E44 00409821 */ addu $s3, $v0, $zero
@ -311,8 +311,8 @@ glabel _Printf
/* 402B8 80064EB8 5A00000C */ blezl $s0, .L80064EEC
/* 402BC 80064EBC 02308823 */ subu $s1, $s1, $s0
/* 402C0 80064EC0 02602021 */ addu $a0, $s3, $zero
/* 402C4 80064EC4 3C058009 */ lui $a1, %hi(D_80094604)
/* 402C8 80064EC8 24A54604 */ addiu $a1, $a1, %lo(D_80094604)
/* 402C4 80064EC4 3C058009 */ lui $a1, %hi(zeroes)
/* 402C8 80064EC8 24A54604 */ addiu $a1, $a1, %lo(zeroes)
/* 402CC 80064ECC 0280F809 */ jalr $s4
/* 402D0 80064ED0 02003021 */ addu $a2, $s0, $zero
/* 402D4 80064ED4 00409821 */ addu $s3, $v0, $zero
@ -353,8 +353,8 @@ glabel _Printf
/* 4034C 80064F4C 5A00000C */ blezl $s0, .L80064F80
/* 40350 80064F50 02308823 */ subu $s1, $s1, $s0
/* 40354 80064F54 02602021 */ addu $a0, $s3, $zero
/* 40358 80064F58 3C058009 */ lui $a1, %hi(D_80094604)
/* 4035C 80064F5C 24A54604 */ addiu $a1, $a1, %lo(D_80094604)
/* 40358 80064F58 3C058009 */ lui $a1, %hi(zeroes)
/* 4035C 80064F5C 24A54604 */ addiu $a1, $a1, %lo(zeroes)
/* 40360 80064F60 0280F809 */ jalr $s4
/* 40364 80064F64 02003021 */ addu $a2, $s0, $zero
/* 40368 80064F68 00409821 */ addu $s3, $v0, $zero
@ -383,8 +383,8 @@ glabel _Printf
/* 403B4 80064FB4 5A00000C */ blezl $s0, .L80064FE8
/* 403B8 80064FB8 02308823 */ subu $s1, $s1, $s0
/* 403BC 80064FBC 02602021 */ addu $a0, $s3, $zero
/* 403C0 80064FC0 3C058009 */ lui $a1, %hi(D_800945E0)
/* 403C4 80064FC4 24A545E0 */ addiu $a1, $a1, %lo(D_800945E0)
/* 403C0 80064FC0 3C058009 */ lui $a1, %hi(spaces)
/* 403C4 80064FC4 24A545E0 */ addiu $a1, $a1, %lo(spaces)
/* 403C8 80064FC8 0280F809 */ jalr $s4
/* 403CC 80064FCC 02003021 */ addu $a2, $s0, $zero
/* 403D0 80064FD0 00409821 */ addu $s3, $v0, $zero

View File

@ -2,8 +2,8 @@
.set noreorder # don't insert nops after branches
glabel osEPiStartDma
/* 3C220 80060E20 3C028009 */ lui $v0, %hi(D_80093D50)
/* 3C224 80060E24 8C423D50 */ lw $v0, %lo(D_80093D50)($v0)
/* 3C220 80060E20 3C028009 */ lui $v0, %hi(__osPiDevMgr)
/* 3C224 80060E24 8C423D50 */ lw $v0, %lo(__osPiDevMgr)($v0)
/* 3C228 80060E28 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3C22C 80060E2C AFB00010 */ sw $s0, 0x10($sp)
/* 3C230 80060E30 00A08021 */ addu $s0, $a1, $zero

View File

@ -7,11 +7,11 @@ glabel osEPiLinkHandle
/* 3C2C8 80060EC8 AFBF0014 */ sw $ra, 0x14($sp)
/* 3C2CC 80060ECC 0C01ACD8 */ jal __osDisableInt
/* 3C2D0 80060ED0 00808021 */ addu $s0, $a0, $zero
/* 3C2D4 80060ED4 3C038009 */ lui $v1, %hi(D_80093D6C)
/* 3C2D8 80060ED8 8C633D6C */ lw $v1, %lo(D_80093D6C)($v1)
/* 3C2D4 80060ED4 3C038009 */ lui $v1, %hi(__osPiTable)
/* 3C2D8 80060ED8 8C633D6C */ lw $v1, %lo(__osPiTable)($v1)
/* 3C2DC 80060EDC 00402021 */ addu $a0, $v0, $zero
/* 3C2E0 80060EE0 3C018009 */ lui $at, %hi(D_80093D6C)
/* 3C2E4 80060EE4 AC303D6C */ sw $s0, %lo(D_80093D6C)($at)
/* 3C2E0 80060EE0 3C018009 */ lui $at, %hi(__osPiTable)
/* 3C2E4 80060EE4 AC303D6C */ sw $s0, %lo(__osPiTable)($at)
/* 3C2E8 80060EE8 0C01ACF4 */ jal __osRestoreInt
/* 3C2EC 80060EEC AE030000 */ sw $v1, ($s0)
/* 3C2F0 80060EF0 00001021 */ addu $v0, $zero, $zero

View File

@ -8,7 +8,8 @@ glabel jtbl_80099B20
.section .text
glabel osDevMgrMain
glabel __osDevMgrMain
/* 3C490 80061090 27BDFFB8 */ addiu $sp, $sp, -0x48
/* 3C494 80061094 AFB20030 */ sw $s2, 0x30($sp)
/* 3C498 80061098 00809021 */ addu $s2, $a0, $zero

View File

@ -1,18 +1,18 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osPiCreateAccessQueue
glabel __osPiCreateAccessQueue
/* 3C850 80061450 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3C854 80061454 24020001 */ addiu $v0, $zero, 1
/* 3C858 80061458 AFB00010 */ sw $s0, 0x10($sp)
/* 3C85C 8006145C 3C10800B */ lui $s0, %hi(D_800B4380)
/* 3C860 80061460 26104380 */ addiu $s0, $s0, %lo(D_800B4380)
/* 3C85C 8006145C 3C10800B */ lui $s0, %hi(gOsPiMessageQueue)
/* 3C860 80061460 26104380 */ addiu $s0, $s0, %lo(gOsPiMessageQueue)
/* 3C864 80061464 02002021 */ addu $a0, $s0, $zero
/* 3C868 80061468 3C05800B */ lui $a1, %hi(D_800AF8B0)
/* 3C86C 8006146C 24A5F8B0 */ addiu $a1, $a1, %lo(D_800AF8B0)
/* 3C870 80061470 AFBF0014 */ sw $ra, 0x14($sp)
/* 3C874 80061474 3C018009 */ lui $at, %hi(D_80093D90)
/* 3C878 80061478 AC223D90 */ sw $v0, %lo(D_80093D90)($at)
/* 3C874 80061474 3C018009 */ lui $at, %hi(__osPiAccessQueueEnabled)
/* 3C878 80061478 AC223D90 */ sw $v0, %lo(__osPiAccessQueueEnabled)($at)
/* 3C87C 8006147C 0C019560 */ jal osCreateMesgQueue
/* 3C880 80061480 24060001 */ addiu $a2, $zero, 1
/* 3C884 80061484 02002021 */ addu $a0, $s0, $zero

View File

@ -1,29 +1,29 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osPiGetAccess
/* 3C8A4 800614A4 3C028009 */ lui $v0, %hi(D_80093D90)
/* 3C8A8 800614A8 8C423D90 */ lw $v0, %lo(D_80093D90)($v0)
glabel __osPiGetAccess
/* 3C8A4 800614A4 3C028009 */ lui $v0, %hi(__osPiAccessQueueEnabled)
/* 3C8A8 800614A8 8C423D90 */ lw $v0, %lo(__osPiAccessQueueEnabled)($v0)
/* 3C8AC 800614AC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 3C8B0 800614B0 1440000F */ bnez $v0, .L800614F0
/* 3C8B4 800614B4 AFBF0018 */ sw $ra, 0x18($sp)
/* 3C8B8 800614B8 24020001 */ addiu $v0, $zero, 1
/* 3C8BC 800614BC 3C018009 */ lui $at, %hi(D_80093D90)
/* 3C8C0 800614C0 AC223D90 */ sw $v0, %lo(D_80093D90)($at)
/* 3C8C4 800614C4 3C04800B */ lui $a0, %hi(D_800B4380)
/* 3C8C8 800614C8 24844380 */ addiu $a0, $a0, %lo(D_800B4380)
/* 3C8BC 800614BC 3C018009 */ lui $at, %hi(__osPiAccessQueueEnabled)
/* 3C8C0 800614C0 AC223D90 */ sw $v0, %lo(__osPiAccessQueueEnabled)($at)
/* 3C8C4 800614C4 3C04800B */ lui $a0, %hi(gOsPiMessageQueue)
/* 3C8C8 800614C8 24844380 */ addiu $a0, $a0, %lo(gOsPiMessageQueue)
/* 3C8CC 800614CC 3C05800B */ lui $a1, %hi(D_800AF8B0)
/* 3C8D0 800614D0 24A5F8B0 */ addiu $a1, $a1, %lo(D_800AF8B0)
/* 3C8D4 800614D4 0C019560 */ jal osCreateMesgQueue
/* 3C8D8 800614D8 24060001 */ addiu $a2, $zero, 1
/* 3C8DC 800614DC 3C04800B */ lui $a0, %hi(D_800B4380)
/* 3C8E0 800614E0 24844380 */ addiu $a0, $a0, %lo(D_800B4380)
/* 3C8DC 800614DC 3C04800B */ lui $a0, %hi(gOsPiMessageQueue)
/* 3C8E0 800614E0 24844380 */ addiu $a0, $a0, %lo(gOsPiMessageQueue)
/* 3C8E4 800614E4 00002821 */ addu $a1, $zero, $zero
/* 3C8E8 800614E8 0C019608 */ jal osSendMesg
/* 3C8EC 800614EC 00003021 */ addu $a2, $zero, $zero
.L800614F0:
/* 3C8F0 800614F0 3C04800B */ lui $a0, %hi(D_800B4380)
/* 3C8F4 800614F4 24844380 */ addiu $a0, $a0, %lo(D_800B4380)
/* 3C8F0 800614F0 3C04800B */ lui $a0, %hi(gOsPiMessageQueue)
/* 3C8F4 800614F4 24844380 */ addiu $a0, $a0, %lo(gOsPiMessageQueue)
/* 3C8F8 800614F8 27A50010 */ addiu $a1, $sp, 0x10
/* 3C8FC 800614FC 0C0195BC */ jal osRecvMesg
/* 3C900 80061500 24060001 */ addiu $a2, $zero, 1

View File

@ -1,11 +1,11 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osPiRelAccess
glabel __osPiRelAccess
/* 3C910 80061510 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3C914 80061514 AFBF0010 */ sw $ra, 0x10($sp)
/* 3C918 80061518 3C04800B */ lui $a0, %hi(D_800B4380)
/* 3C91C 8006151C 24844380 */ addiu $a0, $a0, %lo(D_800B4380)
/* 3C918 80061518 3C04800B */ lui $a0, %hi(gOsPiMessageQueue)
/* 3C91C 8006151C 24844380 */ addiu $a0, $a0, %lo(gOsPiMessageQueue)
/* 3C920 80061520 00002821 */ addu $a1, $zero, $zero
/* 3C924 80061524 0C019608 */ jal osSendMesg
/* 3C928 80061528 00003021 */ addu $a2, $zero, $zero

View File

@ -7,12 +7,12 @@ glabel osAiSetNextBuffer
/* 3CA88 80061688 00808021 */ addu $s0, $a0, $zero
/* 3CA8C 8006168C AFB10014 */ sw $s1, 0x14($sp)
/* 3CA90 80061690 AFBF0018 */ sw $ra, 0x18($sp)
/* 3CA94 80061694 0C01AE14 */ jal osAiDeviceBusy
/* 3CA94 80061694 0C01AE14 */ jal __osAiDeviceBusy
/* 3CA98 80061698 00A08821 */ addu $s1, $a1, $zero
/* 3CA9C 8006169C 14400018 */ bnez $v0, .L80061700
/* 3CAA0 800616A0 2402FFFF */ addiu $v0, $zero, -1
/* 3CAA4 800616A4 3C028009 */ lui $v0, %hi(D_80093DA0)
/* 3CAA8 800616A8 90423DA0 */ lbu $v0, %lo(D_80093DA0)($v0)
/* 3CAA4 800616A4 3C028009 */ lui $v0, %hi(hdwrBugFlag)
/* 3CAA8 800616A8 90423DA0 */ lbu $v0, %lo(hdwrBugFlag)($v0)
/* 3CAAC 800616AC 10400002 */ beqz $v0, .L800616B8
/* 3CAB0 800616B0 02002021 */ addu $a0, $s0, $zero
/* 3CAB4 800616B4 2484E000 */ addiu $a0, $a0, -0x2000
@ -21,12 +21,12 @@ glabel osAiSetNextBuffer
/* 3CABC 800616BC 30421FFF */ andi $v0, $v0, 0x1fff
/* 3CAC0 800616C0 14400004 */ bnez $v0, .L800616D4
/* 3CAC4 800616C4 24020001 */ addiu $v0, $zero, 1
/* 3CAC8 800616C8 3C018009 */ lui $at, %hi(D_80093DA0)
/* 3CAC8 800616C8 3C018009 */ lui $at, %hi(hdwrBugFlag)
/* 3CACC 800616CC 080185B7 */ j .L800616DC
/* 3CAD0 800616D0 A0223DA0 */ sb $v0, %lo(D_80093DA0)($at)
/* 3CAD0 800616D0 A0223DA0 */ sb $v0, %lo(hdwrBugFlag)($at)
.L800616D4:
/* 3CAD4 800616D4 3C018009 */ lui $at, %hi(D_80093DA0)
/* 3CAD8 800616D8 A0203DA0 */ sb $zero, %lo(D_80093DA0)($at)
/* 3CAD4 800616D4 3C018009 */ lui $at, %hi(hdwrBugFlag)
/* 3CAD8 800616D8 A0203DA0 */ sb $zero, %lo(hdwrBugFlag)($at)
.L800616DC:
/* 3CADC 800616DC 0C0187A4 */ jal osVirtualToPhysical
/* 3CAE0 800616E0 00000000 */ nop

View File

@ -1,17 +0,0 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osWritebackDCacheAll
/* 3CCD0 800618D0 3C088000 */ lui $t0, 0x8000
/* 3CCD4 800618D4 240A2000 */ addiu $t2, $zero, 0x2000
/* 3CCD8 800618D8 010A4821 */ addu $t1, $t0, $t2
/* 3CCDC 800618DC 2529FFF0 */ addiu $t1, $t1, -0x10
.L800618E0:
/* 3CCE0 800618E0 BD010000 */ cache 1, ($t0)
/* 3CCE4 800618E4 0109082B */ sltu $at, $t0, $t1
/* 3CCE8 800618E8 1420FFFD */ bnez $at, .L800618E0
/* 3CCEC 800618EC 25080010 */ addiu $t0, $t0, 0x10
/* 3CCF0 800618F0 03E00008 */ jr $ra
/* 3CCF4 800618F4 00000000 */ nop
/* 3CCF8 800618F8 00000000 */ nop
/* 3CCFC 800618FC 00000000 */ nop

View File

@ -5,7 +5,7 @@ glabel osContStartQuery
/* 3CD00 80061900 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3CD04 80061904 AFB00010 */ sw $s0, 0x10($sp)
/* 3CD08 80061908 AFBF0014 */ sw $ra, 0x14($sp)
/* 3CD0C 8006190C 0C019771 */ jal osSiGetAccess
/* 3CD0C 8006190C 0C019771 */ jal __osSiGetAccess
/* 3CD10 80061910 00808021 */ addu $s0, $a0, $zero
/* 3CD14 80061914 3C02800A */ lui $v0, %hi(D_8009A61C)
/* 3CD18 80061918 9042A61C */ lbu $v0, %lo(D_8009A61C)($v0)
@ -28,7 +28,7 @@ glabel osContStartQuery
/* 3CD58 80061958 00002021 */ addu $a0, $zero, $zero
/* 3CD5C 8006195C 3C01800A */ lui $at, %hi(D_8009A61C)
/* 3CD60 80061960 A020A61C */ sb $zero, %lo(D_8009A61C)($at)
/* 3CD64 80061964 0C01978C */ jal osSiRelAccess
/* 3CD64 80061964 0C01978C */ jal __osSiRelAccess
/* 3CD68 80061968 00408021 */ addu $s0, $v0, $zero
/* 3CD6C 8006196C 02001021 */ addu $v0, $s0, $zero
/* 3CD70 80061970 8FBF0014 */ lw $ra, 0x14($sp)

View File

@ -5,7 +5,7 @@ glabel osContStartReadData
/* 3CDA0 800619A0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3CDA4 800619A4 AFB00010 */ sw $s0, 0x10($sp)
/* 3CDA8 800619A8 AFBF0014 */ sw $ra, 0x14($sp)
/* 3CDAC 800619AC 0C019771 */ jal osSiGetAccess
/* 3CDAC 800619AC 0C019771 */ jal __osSiGetAccess
/* 3CDB0 800619B0 00808021 */ addu $s0, $a0, $zero
/* 3CDB4 800619B4 3C03800A */ lui $v1, %hi(D_8009A61C)
/* 3CDB8 800619B8 9063A61C */ lbu $v1, %lo(D_8009A61C)($v1)
@ -30,7 +30,7 @@ glabel osContStartReadData
/* 3CE00 80061A00 24030001 */ addiu $v1, $zero, 1
/* 3CE04 80061A04 3C01800A */ lui $at, %hi(D_8009A61C)
/* 3CE08 80061A08 A023A61C */ sb $v1, %lo(D_8009A61C)($at)
/* 3CE0C 80061A0C 0C01978C */ jal osSiRelAccess
/* 3CE0C 80061A0C 0C01978C */ jal __osSiRelAccess
/* 3CE10 80061A10 00408021 */ addu $s0, $v0, $zero
/* 3CE14 80061A14 02001021 */ addu $v0, $s0, $zero
/* 3CE18 80061A18 8FBF0014 */ lw $ra, 0x14($sp)

View File

@ -2,8 +2,8 @@
.set noreorder # don't insert nops after branches
glabel guPosition
/* 3F4E8 800640E8 3C018009 */ lui $at, %hi(D_80093DC0)
/* 3F4EC 800640EC C4203DC0 */ lwc1 $f0, %lo(D_80093DC0)($at)
/* 3F4E8 800640E8 3C018009 */ lui $at, %hi(dtor)
/* 3F4EC 800640EC C4203DC0 */ lwc1 $f0, %lo(dtor)($at)
/* 3F4F0 800640F0 44859000 */ mtc1 $a1, $f18
/* 3F4F4 800640F4 27BDFF70 */ addiu $sp, $sp, -0x90
/* 3F4F8 800640F8 F7B40060 */ sdc1 $f20, 0x60($sp)

View File

@ -2,8 +2,8 @@
.set noreorder # don't insert nops after branches
glabel guPositionF
/* 3F310 80063F10 3C018009 */ lui $at, %hi(D_80093DC0)
/* 3F314 80063F14 C4203DC0 */ lwc1 $f0, %lo(D_80093DC0)($at)
/* 3F310 80063F10 3C018009 */ lui $at, %hi(dtor)
/* 3F314 80063F14 C4203DC0 */ lwc1 $f0, %lo(dtor)($at)
/* 3F318 80063F18 44859000 */ mtc1 $a1, $f18
/* 3F31C 80063F1C 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 3F320 80063F20 F7BC0040 */ sdc1 $f28, 0x40($sp)

View File

@ -29,9 +29,9 @@ glabel osJamMesg
/* 40A0C 8006560C 080195B0 */ j .L800656C0
/* 40A10 80065610 2402FFFF */ addiu $v0, $zero, -1
.L80065614:
/* 40A14 80065614 3C028009 */ lui $v0, %hi(D_80094660)
/* 40A18 80065618 8C424660 */ lw $v0, %lo(D_80094660)($v0)
/* 40A1C 8006561C 0C01AC1B */ jal osEnqueueAndYield
/* 40A14 80065614 3C028009 */ lui $v0, %hi(__osRunningThread)
/* 40A18 80065618 8C424660 */ lw $v0, %lo(__osRunningThread)($v0)
/* 40A1C 8006561C 0C01AC1B */ jal __osEnqueueAndYield
/* 40A20 80065620 A4530010 */ sh $s3, 0x10($v0)
/* 40A24 80065624 8E020008 */ lw $v0, 8($s0)
/* 40A28 80065628 8E030010 */ lw $v1, 0x10($s0)

View File

@ -25,9 +25,9 @@ glabel osRecvMesg
/* 40B3C 8006573C 080195FD */ j .L800657F4
/* 40B40 80065740 2402FFFF */ addiu $v0, $zero, -1
.L80065744:
/* 40B44 80065744 3C028009 */ lui $v0, %hi(D_80094660)
/* 40B48 80065748 8C424660 */ lw $v0, %lo(D_80094660)($v0)
/* 40B4C 8006574C 0C01AC1B */ jal osEnqueueAndYield
/* 40B44 80065744 3C028009 */ lui $v0, %hi(__osRunningThread)
/* 40B48 80065748 8C424660 */ lw $v0, %lo(__osRunningThread)($v0)
/* 40B4C 8006574C 0C01AC1B */ jal __osEnqueueAndYield
/* 40B50 80065750 A4530010 */ sh $s3, 0x10($v0)
/* 40B54 80065754 8E020008 */ lw $v0, 8($s0)
/* 40B58 80065758 1040FFF4 */ beqz $v0, .L8006572C

View File

@ -29,9 +29,9 @@ glabel osSendMesg
/* 40C7C 8006587C 0801964B */ j .L8006592C
/* 40C80 80065880 2402FFFF */ addiu $v0, $zero, -1
.L80065884:
/* 40C84 80065884 3C028009 */ lui $v0, %hi(D_80094660)
/* 40C88 80065888 8C424660 */ lw $v0, %lo(D_80094660)($v0)
/* 40C8C 8006588C 0C01AC1B */ jal osEnqueueAndYield
/* 40C84 80065884 3C028009 */ lui $v0, %hi(__osRunningThread)
/* 40C88 80065888 8C424660 */ lw $v0, %lo(__osRunningThread)($v0)
/* 40C8C 8006588C 0C01AC1B */ jal __osEnqueueAndYield
/* 40C90 80065890 A4530010 */ sh $s3, 0x10($v0)
/* 40C94 80065894 8E020008 */ lw $v0, 8($s0)
/* 40C98 80065898 8E030010 */ lw $v1, 0x10($s0)

View File

@ -25,8 +25,8 @@ glabel osSetEventMesg
/* 40DA0 800659A0 8C4258FC */ lw $v0, %lo(D_800958FC)($v0)
/* 40DA4 800659A4 1040000A */ beqz $v0, .L800659D0
/* 40DA8 800659A8 24020001 */ addiu $v0, $zero, 1
/* 40DAC 800659AC 3C028009 */ lui $v0, %hi(D_80094630)
/* 40DB0 800659B0 8C424630 */ lw $v0, %lo(D_80094630)($v0)
/* 40DAC 800659AC 3C028009 */ lui $v0, %hi(__osPreNMI)
/* 40DB0 800659B0 8C424630 */ lw $v0, %lo(__osPreNMI)($v0)
/* 40DB4 800659B4 14400006 */ bnez $v0, .L800659D0
/* 40DB8 800659B8 24020001 */ addiu $v0, $zero, 1
/* 40DBC 800659BC 02202021 */ addu $a0, $s1, $zero
@ -35,8 +35,8 @@ glabel osSetEventMesg
/* 40DC8 800659C8 00003021 */ addu $a2, $zero, $zero
/* 40DCC 800659CC 24020001 */ addiu $v0, $zero, 1
.L800659D0:
/* 40DD0 800659D0 3C018009 */ lui $at, %hi(D_80094630)
/* 40DD4 800659D4 AC224630 */ sw $v0, %lo(D_80094630)($at)
/* 40DD0 800659D0 3C018009 */ lui $at, %hi(__osPreNMI)
/* 40DD4 800659D4 AC224630 */ sw $v0, %lo(__osPreNMI)($at)
.L800659D8:
/* 40DD8 800659D8 0C01ACF4 */ jal __osRestoreInt
/* 40DDC 800659DC 02602021 */ addu $a0, $s3, $zero

View File

@ -1,7 +1,7 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSiCreateAccessQueue
glabel __osSiCreateAccessQueue
/* 41170 80065D70 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 41174 80065D74 24020001 */ addiu $v0, $zero, 1
/* 41178 80065D78 AFB00010 */ sw $s0, 0x10($sp)
@ -11,8 +11,8 @@ glabel osSiCreateAccessQueue
/* 41188 80065D88 3C05800B */ lui $a1, %hi(D_800AF900)
/* 4118C 80065D8C 24A5F900 */ addiu $a1, $a1, %lo(D_800AF900)
/* 41190 80065D90 AFBF0014 */ sw $ra, 0x14($sp)
/* 41194 80065D94 3C018009 */ lui $at, %hi(D_80094640)
/* 41198 80065D98 AC224640 */ sw $v0, %lo(D_80094640)($at)
/* 41194 80065D94 3C018009 */ lui $at, %hi(__osSiAccessQueueEnabled)
/* 41198 80065D98 AC224640 */ sw $v0, %lo(__osSiAccessQueueEnabled)($at)
/* 4119C 80065D9C 0C019560 */ jal osCreateMesgQueue
/* 411A0 80065DA0 24060001 */ addiu $a2, $zero, 1
/* 411A4 80065DA4 02002021 */ addu $a0, $s0, $zero

View File

@ -1,15 +1,15 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSiGetAccess
/* 411C4 80065DC4 3C028009 */ lui $v0, %hi(D_80094640)
/* 411C8 80065DC8 8C424640 */ lw $v0, %lo(D_80094640)($v0)
glabel __osSiGetAccess
/* 411C4 80065DC4 3C028009 */ lui $v0, %hi(__osSiAccessQueueEnabled)
/* 411C8 80065DC8 8C424640 */ lw $v0, %lo(__osSiAccessQueueEnabled)($v0)
/* 411CC 80065DCC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 411D0 80065DD0 1440000F */ bnez $v0, .L80065E10
/* 411D4 80065DD4 AFBF0018 */ sw $ra, 0x18($sp)
/* 411D8 80065DD8 24020001 */ addiu $v0, $zero, 1
/* 411DC 80065DDC 3C018009 */ lui $at, %hi(D_80094640)
/* 411E0 80065DE0 AC224640 */ sw $v0, %lo(D_80094640)($at)
/* 411DC 80065DDC 3C018009 */ lui $at, %hi(__osSiAccessQueueEnabled)
/* 411E0 80065DE0 AC224640 */ sw $v0, %lo(__osSiAccessQueueEnabled)($at)
/* 411E4 80065DE4 3C04800E */ lui $a0, %hi(D_800DACA8)
/* 411E8 80065DE8 2484ACA8 */ addiu $a0, $a0, %lo(D_800DACA8)
/* 411EC 80065DEC 3C05800B */ lui $a1, %hi(D_800AF900)

View File

@ -1,7 +1,7 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osSiRelAccess
glabel __osSiRelAccess
/* 41230 80065E30 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 41234 80065E34 AFBF0010 */ sw $ra, 0x10($sp)
/* 41238 80065E38 3C04800E */ lui $a0, %hi(D_800DACA8)

View File

@ -17,29 +17,29 @@ glabel osStartThread
/* 41450 80066050 1462001E */ bne $v1, $v0, .L800660CC
/* 41454 80066054 24020002 */ addiu $v0, $zero, 2
/* 41458 80066058 A6020010 */ sh $v0, 0x10($s0)
/* 4145C 8006605C 3C048009 */ lui $a0, %hi(D_80094658)
/* 41460 80066060 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 4145C 8006605C 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 41460 80066060 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
/* 41464 80066064 08019831 */ j .L800660C4
/* 41468 80066068 02002821 */ addu $a1, $s0, $zero
.L8006606C:
/* 4146C 8006606C 8E020008 */ lw $v0, 8($s0)
/* 41470 80066070 50400006 */ beql $v0, $zero, .L8006608C
/* 41474 80066074 24020002 */ addiu $v0, $zero, 2
/* 41478 80066078 3C118009 */ lui $s1, %hi(D_80094658)
/* 4147C 8006607C 26314658 */ addiu $s1, $s1, %lo(D_80094658)
/* 41478 80066078 3C118009 */ lui $s1, %hi(__osRunQueue)
/* 4147C 8006607C 26314658 */ addiu $s1, $s1, %lo(__osRunQueue)
/* 41480 80066080 14510007 */ bne $v0, $s1, .L800660A0
/* 41484 80066084 02002821 */ addu $a1, $s0, $zero
/* 41488 80066088 24020002 */ addiu $v0, $zero, 2
.L8006608C:
/* 4148C 8006608C A6020010 */ sh $v0, 0x10($s0)
/* 41490 80066090 3C048009 */ lui $a0, %hi(D_80094658)
/* 41494 80066094 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 41490 80066090 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 41494 80066094 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
/* 41498 80066098 08019831 */ j .L800660C4
/* 4149C 8006609C 02002821 */ addu $a1, $s0, $zero
.L800660A0:
/* 414A0 800660A0 8E040008 */ lw $a0, 8($s0)
/* 414A4 800660A4 24020008 */ addiu $v0, $zero, 8
/* 414A8 800660A8 0C01AC5D */ jal osEnqueueThread
/* 414A8 800660A8 0C01AC5D */ jal __osEnqueueThread
/* 414AC 800660AC A6020010 */ sh $v0, 0x10($s0)
/* 414B0 800660B0 8E040008 */ lw $a0, 8($s0)
/* 414B4 800660B4 0C01AC6F */ jal osPopThread
@ -47,11 +47,11 @@ glabel osStartThread
/* 414BC 800660BC 02202021 */ addu $a0, $s1, $zero
/* 414C0 800660C0 00402821 */ addu $a1, $v0, $zero
.L800660C4:
/* 414C4 800660C4 0C01AC5D */ jal osEnqueueThread
/* 414C4 800660C4 0C01AC5D */ jal __osEnqueueThread
/* 414C8 800660C8 00000000 */ nop
.L800660CC:
/* 414CC 800660CC 3C048009 */ lui $a0, %hi(D_80094660)
/* 414D0 800660D0 8C844660 */ lw $a0, %lo(D_80094660)($a0)
/* 414CC 800660CC 3C048009 */ lui $a0, %hi(__osRunningThread)
/* 414D0 800660D0 8C844660 */ lw $a0, %lo(__osRunningThread)($a0)
/* 414D4 800660D4 14800005 */ bnez $a0, .L800660EC
/* 414D8 800660D8 00000000 */ nop
/* 414DC 800660DC 0C01AC75 */ jal osDispatchThread
@ -59,17 +59,17 @@ glabel osStartThread
/* 414E4 800660E4 08019846 */ j .L80066118
/* 414E8 800660E8 00000000 */ nop
.L800660EC:
/* 414EC 800660EC 3C028009 */ lui $v0, %hi(D_80094658)
/* 414F0 800660F0 8C424658 */ lw $v0, %lo(D_80094658)($v0)
/* 414EC 800660EC 3C028009 */ lui $v0, %hi(__osRunQueue)
/* 414F0 800660F0 8C424658 */ lw $v0, %lo(__osRunQueue)($v0)
/* 414F4 800660F4 8C830004 */ lw $v1, 4($a0)
/* 414F8 800660F8 8C420004 */ lw $v0, 4($v0)
/* 414FC 800660FC 0062182A */ slt $v1, $v1, $v0
/* 41500 80066100 10600005 */ beqz $v1, .L80066118
/* 41504 80066104 24020002 */ addiu $v0, $zero, 2
/* 41508 80066108 A4820010 */ sh $v0, 0x10($a0)
/* 4150C 8006610C 3C048009 */ lui $a0, %hi(D_80094658)
/* 41510 80066110 0C01AC1B */ jal osEnqueueAndYield
/* 41514 80066114 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 4150C 8006610C 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 41510 80066110 0C01AC1B */ jal __osEnqueueAndYield
/* 41514 80066114 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
.L80066118:
/* 41518 80066118 0C01ACF4 */ jal __osRestoreInt
/* 4151C 8006611C 02402021 */ addu $a0, $s2, $zero

View File

@ -30,11 +30,11 @@ glabel osStopThread
/* 4159C 8006619C 08019876 */ j .L800661D8
/* 415A0 800661A0 00000000 */ nop
.L800661A4:
/* 415A4 800661A4 3C038009 */ lui $v1, %hi(D_80094660)
/* 415A8 800661A8 8C634660 */ lw $v1, %lo(D_80094660)($v1)
/* 415A4 800661A4 3C038009 */ lui $v1, %hi(__osRunningThread)
/* 415A8 800661A8 8C634660 */ lw $v1, %lo(__osRunningThread)($v1)
/* 415AC 800661AC 00002021 */ addu $a0, $zero, $zero
/* 415B0 800661B0 24020001 */ addiu $v0, $zero, 1
/* 415B4 800661B4 0C01AC1B */ jal osEnqueueAndYield
/* 415B4 800661B4 0C01AC1B */ jal __osEnqueueAndYield
/* 415B8 800661B8 A4620010 */ sh $v0, 0x10($v1)
/* 415BC 800661BC 08019876 */ j .L800661D8
/* 415C0 800661C0 00000000 */ nop
@ -42,7 +42,7 @@ glabel osStopThread
/* 415C4 800661C4 8E040008 */ lw $a0, 8($s0)
/* 415C8 800661C8 24020001 */ addiu $v0, $zero, 1
/* 415CC 800661CC 02002821 */ addu $a1, $s0, $zero
/* 415D0 800661D0 0C019880 */ jal osDequeueThread
/* 415D0 800661D0 0C019880 */ jal __osDequeueThread
/* 415D4 800661D4 A6020010 */ sh $v0, 0x10($s0)
.L800661D8:
/* 415D8 800661D8 0C01ACF4 */ jal __osRestoreInt

View File

@ -1,7 +1,7 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osDequeueThread
glabel __osDequeueThread
/* 41600 80066200 8C820000 */ lw $v0, ($a0)
/* 41604 80066204 10400009 */ beqz $v0, .L8006622C
/* 41608 80066208 00000000 */ nop

View File

@ -6,13 +6,13 @@ glabel osYieldThread
/* 41644 80066244 AFBF0014 */ sw $ra, 0x14($sp)
/* 41648 80066248 0C01ACD8 */ jal __osDisableInt
/* 4164C 8006624C AFB00010 */ sw $s0, 0x10($sp)
/* 41650 80066250 3C038009 */ lui $v1, %hi(D_80094660)
/* 41654 80066254 8C634660 */ lw $v1, %lo(D_80094660)($v1)
/* 41658 80066258 3C048009 */ lui $a0, %hi(D_80094658)
/* 4165C 8006625C 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 41650 80066250 3C038009 */ lui $v1, %hi(__osRunningThread)
/* 41654 80066254 8C634660 */ lw $v1, %lo(__osRunningThread)($v1)
/* 41658 80066258 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 4165C 8006625C 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
/* 41660 80066260 24050002 */ addiu $a1, $zero, 2
/* 41664 80066264 00408021 */ addu $s0, $v0, $zero
/* 41668 80066268 0C01AC1B */ jal osEnqueueAndYield
/* 41668 80066268 0C01AC1B */ jal __osEnqueueAndYield
/* 4166C 8006626C A4650010 */ sh $a1, 0x10($v1)
/* 41670 80066270 0C01ACF4 */ jal __osRestoreInt
/* 41674 80066274 02002021 */ addu $a0, $s0, $zero

View File

@ -2,7 +2,7 @@
.set noreorder # don't insert nops after branches
glabel osGetActiveQueue
/* 41690 80066290 3C028009 */ lui $v0, %hi(D_8009465C)
/* 41690 80066290 3C028009 */ lui $v0, %hi(__osActiveQueue)
/* 41694 80066294 03E00008 */ jr $ra
/* 41698 80066298 8C42465C */ lw $v0, %lo(D_8009465C)($v0)
/* 41698 80066298 8C42465C */ lw $v0, %lo(__osActiveQueue)($v0)
/* 4169C 8006629C 00000000 */ nop

View File

@ -21,7 +21,7 @@ glabel __osMotorAccess
/* 43240 80067E40 08019FCA */ j .L80067F28
/* 43244 80067E44 24020005 */ addiu $v0, $zero, 5
.L80067E48:
/* 43248 80067E48 0C019771 */ jal osSiGetAccess
/* 43248 80067E48 0C019771 */ jal __osSiGetAccess
/* 4324C 80067E4C 00000000 */ nop
/* 43250 80067E50 8E220008 */ lw $v0, 8($s1)
/* 43254 80067E54 24030001 */ addiu $v1, $zero, 1
@ -77,7 +77,7 @@ glabel __osMotorAccess
/* 43314 80067F14 54620001 */ bnel $v1, $v0, .L80067F1C
/* 43318 80067F18 24100004 */ addiu $s0, $zero, 4
.L80067F1C:
/* 4331C 80067F1C 0C01978C */ jal osSiRelAccess
/* 4331C 80067F1C 0C01978C */ jal __osSiRelAccess
/* 43320 80067F20 00000000 */ nop
/* 43324 80067F24 02001021 */ addu $v0, $s0, $zero
.L80067F28:

View File

@ -10,12 +10,12 @@ glabel osPfsInitPak
/* 445A4 800691A4 AFB30064 */ sw $s3, 0x64($sp)
/* 445A8 800691A8 00C09821 */ addu $s3, $a2, $zero
/* 445AC 800691AC AFBF0068 */ sw $ra, 0x68($sp)
/* 445B0 800691B0 0C019771 */ jal osSiGetAccess
/* 445B0 800691B0 0C019771 */ jal __osSiGetAccess
/* 445B4 800691B4 AFB00058 */ sw $s0, 0x58($sp)
/* 445B8 800691B8 02402021 */ addu $a0, $s2, $zero
/* 445BC 800691BC 0C01A530 */ jal osPfsGetStatus
/* 445C0 800691C0 02602821 */ addu $a1, $s3, $zero
/* 445C4 800691C4 0C01978C */ jal osSiRelAccess
/* 445C4 800691C4 0C01978C */ jal __osSiRelAccess
/* 445C8 800691C8 00408021 */ addu $s0, $v0, $zero
/* 445CC 800691CC 16000067 */ bnez $s0, .L8006936C
/* 445D0 800691D0 02001021 */ addu $v0, $s0, $zero

View File

@ -17,7 +17,7 @@ glabel osContRamRead
/* 45600 8006A200 AFB60040 */ sw $s6, 0x40($sp)
/* 45604 8006A204 AFB20030 */ sw $s2, 0x30($sp)
/* 45608 8006A208 AFB1002C */ sw $s1, 0x2c($sp)
/* 4560C 8006A20C 0C019771 */ jal osSiGetAccess
/* 4560C 8006A20C 0C019771 */ jal __osSiGetAccess
/* 45610 8006A210 AFA70014 */ sw $a3, 0x14($sp)
/* 45614 8006A214 24170002 */ addiu $s7, $zero, 2
/* 45618 8006A218 3216FFFF */ andi $s6, $s0, 0xffff
@ -118,7 +118,7 @@ glabel osContRamRead
/* 45774 8006A374 0441FFAD */ bgez $v0, .L8006A22C
/* 45778 8006A378 26B5FFFF */ addiu $s5, $s5, -1
.L8006A37C:
/* 4577C 8006A37C 0C01978C */ jal osSiRelAccess
/* 4577C 8006A37C 0C01978C */ jal __osSiRelAccess
/* 45780 8006A380 00000000 */ nop
/* 45784 8006A384 02201021 */ addu $v0, $s1, $zero
/* 45788 8006A388 8FBF004C */ lw $ra, 0x4c($sp)

View File

@ -28,7 +28,7 @@ glabel osContRamWrite
/* 4581C 8006A41C 1480005D */ bnez $a0, .L8006A594
/* 45820 8006A420 00001021 */ addu $v0, $zero, $zero
.L8006A424:
/* 45824 8006A424 0C019771 */ jal osSiGetAccess
/* 45824 8006A424 0C019771 */ jal __osSiGetAccess
/* 45828 8006A428 241E0003 */ addiu $fp, $zero, 3
/* 4582C 8006A42C 3216FFFF */ andi $s6, $s0, 0xffff
/* 45830 8006A430 00108140 */ sll $s0, $s0, 5
@ -124,7 +124,7 @@ glabel osContRamWrite
/* 45980 8006A580 0441FFAD */ bgez $v0, .L8006A438
/* 45984 8006A584 26B5FFFF */ addiu $s5, $s5, -1
.L8006A588:
/* 45988 8006A588 0C01978C */ jal osSiRelAccess
/* 45988 8006A588 0C01978C */ jal __osSiRelAccess
/* 4598C 8006A58C 00000000 */ nop
/* 45990 8006A590 02201021 */ addu $v0, $s1, $zero
.L8006A594:

View File

@ -17,9 +17,9 @@ glabel osEPiRawReadIo
.L8006B59C:
/* 4699C 8006B59C 90880009 */ lbu $t0, 9($a0)
/* 469A0 8006B5A0 00081080 */ sll $v0, $t0, 2
/* 469A4 8006B5A4 3C078009 */ lui $a3, %hi(D_80093D70)
/* 469A4 8006B5A4 3C078009 */ lui $a3, %hi(__osCurrentHandle)
/* 469A8 8006B5A8 00E23821 */ addu $a3, $a3, $v0
/* 469AC 8006B5AC 8CE73D70 */ lw $a3, %lo(D_80093D70)($a3)
/* 469AC 8006B5AC 8CE73D70 */ lw $a3, %lo(__osCurrentHandle)($a3)
/* 469B0 8006B5B0 90820004 */ lbu $v0, 4($a0)
/* 469B4 8006B5B4 90E30004 */ lbu $v1, 4($a3)
/* 469B8 8006B5B8 1062003F */ beq $v1, $v0, .L8006B6B8

View File

@ -2,12 +2,12 @@
.set noreorder # don't insert nops after branches
glabel osPiGetCmdQueue
/* 46950 8006B550 3C038009 */ lui $v1, %hi(D_80093D50)
/* 46954 8006B554 8C633D50 */ lw $v1, %lo(D_80093D50)($v1)
/* 46950 8006B550 3C038009 */ lui $v1, %hi(__osPiDevMgr)
/* 46954 8006B554 8C633D50 */ lw $v1, %lo(__osPiDevMgr)($v1)
/* 46958 8006B558 10600003 */ beqz $v1, .L8006B568
/* 4695C 8006B55C 00001021 */ addu $v0, $zero, $zero
/* 46960 8006B560 3C028009 */ lui $v0, %hi(D_80093D58)
/* 46964 8006B564 8C423D58 */ lw $v0, %lo(D_80093D58)($v0)
/* 46960 8006B560 3C028009 */ lui $v0, %hi(__osPiDevMgr + 8)
/* 46964 8006B564 8C423D58 */ lw $v0, %lo(__osPiDevMgr + 8)($v0)
.L8006B568:
/* 46968 8006B568 03E00008 */ jr $ra
/* 4696C 8006B56C 00000000 */ nop

View File

@ -17,9 +17,9 @@ glabel osEPiRawWriteIo
.L8006B70C:
/* 46B0C 8006B70C 90880009 */ lbu $t0, 9($a0)
/* 46B10 8006B710 00081080 */ sll $v0, $t0, 2
/* 46B14 8006B714 3C078009 */ lui $a3, %hi(D_80093D70)
/* 46B14 8006B714 3C078009 */ lui $a3, %hi(__osCurrentHandle)
/* 46B18 8006B718 00E23821 */ addu $a3, $a3, $v0
/* 46B1C 8006B71C 8CE73D70 */ lw $a3, %lo(D_80093D70)($a3)
/* 46B1C 8006B71C 8CE73D70 */ lw $a3, %lo(__osCurrentHandle)($a3)
/* 46B20 8006B720 90820004 */ lbu $v0, 4($a0)
/* 46B24 8006B724 90E30004 */ lbu $v1, 4($a3)
/* 46B28 8006B728 1062003F */ beq $v1, $v0, .L8006B828

View File

@ -1,7 +1,7 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osAiDeviceBusy
glabel __osAiDeviceBusy
/* 46C50 8006B850 3C02A450 */ lui $v0, 0xa450
/* 46C54 8006B854 3442000C */ ori $v0, $v0, 0xc
/* 46C58 8006B858 8C420000 */ lw $v0, ($v0)

View File

@ -10,26 +10,26 @@ glabel osDestroyThread
/* 47D64 8006C964 AFB10014 */ sw $s1, 0x14($sp)
/* 47D68 8006C968 16000004 */ bnez $s0, .L8006C97C
/* 47D6C 8006C96C 00408821 */ addu $s1, $v0, $zero
/* 47D70 8006C970 3C108009 */ lui $s0, %hi(D_80094660)
/* 47D70 8006C970 3C108009 */ lui $s0, %hi(__osRunningThread)
/* 47D74 8006C974 0801B266 */ j .L8006C998
/* 47D78 8006C978 8E104660 */ lw $s0, %lo(D_80094660)($s0)
/* 47D78 8006C978 8E104660 */ lw $s0, %lo(__osRunningThread)($s0)
.L8006C97C:
/* 47D7C 8006C97C 96030010 */ lhu $v1, 0x10($s0)
/* 47D80 8006C980 24020001 */ addiu $v0, $zero, 1
/* 47D84 8006C984 10620004 */ beq $v1, $v0, .L8006C998
/* 47D88 8006C988 00000000 */ nop
/* 47D8C 8006C98C 8E040008 */ lw $a0, 8($s0)
/* 47D90 8006C990 0C019880 */ jal osDequeueThread
/* 47D90 8006C990 0C019880 */ jal __osDequeueThread
/* 47D94 8006C994 02002821 */ addu $a1, $s0, $zero
.L8006C998:
/* 47D98 8006C998 3C028009 */ lui $v0, %hi(D_8009465C)
/* 47D9C 8006C99C 8C42465C */ lw $v0, %lo(D_8009465C)($v0)
/* 47D98 8006C998 3C028009 */ lui $v0, %hi(__osActiveQueue)
/* 47D9C 8006C99C 8C42465C */ lw $v0, %lo(__osActiveQueue)($v0)
/* 47DA0 8006C9A0 14500008 */ bne $v0, $s0, .L8006C9C4
/* 47DA4 8006C9A4 00402021 */ addu $a0, $v0, $zero
/* 47DA8 8006C9A8 8E02000C */ lw $v0, 0xc($s0)
/* 47DAC 8006C9AC 3C018009 */ lui $at, %hi(D_8009465C)
/* 47DAC 8006C9AC 3C018009 */ lui $at, %hi(__osActiveQueue)
/* 47DB0 8006C9B0 0801B27D */ j .L8006C9F4
/* 47DB4 8006C9B4 AC22465C */ sw $v0, %lo(D_8009465C)($at)
/* 47DB4 8006C9B4 AC22465C */ sw $v0, %lo(__osActiveQueue)($at)
.L8006C9B8:
/* 47DB8 8006C9B8 8E02000C */ lw $v0, 0xc($s0)
/* 47DBC 8006C9BC 0801B27D */ j .L8006C9F4
@ -49,8 +49,8 @@ glabel osDestroyThread
/* 47DEC 8006C9EC 1443FFFA */ bne $v0, $v1, .L8006C9D8
/* 47DF0 8006C9F0 00000000 */ nop
.L8006C9F4:
/* 47DF4 8006C9F4 3C028009 */ lui $v0, %hi(D_80094660)
/* 47DF8 8006C9F8 8C424660 */ lw $v0, %lo(D_80094660)($v0)
/* 47DF4 8006C9F4 3C028009 */ lui $v0, %hi(__osRunningThread)
/* 47DF8 8006C9F8 8C424660 */ lw $v0, %lo(__osRunningThread)($v0)
/* 47DFC 8006C9FC 16020003 */ bne $s0, $v0, .L8006CA0C
/* 47E00 8006CA00 00000000 */ nop
/* 47E04 8006CA04 0C01AC75 */ jal osDispatchThread

View File

@ -15,7 +15,7 @@ glabel osPfsIsPlug
/* 48768 8006D368 AFB60050 */ sw $s6, 0x50($sp)
/* 4876C 8006D36C AFB5004C */ sw $s5, 0x4c($sp)
/* 48770 8006D370 AFB40048 */ sw $s4, 0x48($sp)
/* 48774 8006D374 0C019771 */ jal osSiGetAccess
/* 48774 8006D374 0C019771 */ jal __osSiGetAccess
/* 48778 8006D378 AFB1003C */ sw $s1, 0x3c($sp)
/* 4877C 8006D37C 3C14800E */ lui $s4, %hi(D_800DA000)
/* 48780 8006D380 2694A000 */ addiu $s4, $s4, %lo(D_800DA000)
@ -89,7 +89,7 @@ glabel osPfsIsPlug
/* 48878 8006D478 1440FFF4 */ bnez $v0, .L8006D44C
/* 4887C 8006D47C 24630004 */ addiu $v1, $v1, 4
.L8006D480:
/* 48880 8006D480 0C01978C */ jal osSiRelAccess
/* 48880 8006D480 0C01978C */ jal __osSiRelAccess
/* 48884 8006D484 00000000 */ nop
/* 48888 8006D488 A2F30000 */ sb $s3, ($s7)
/* 4888C 8006D48C 02C01021 */ addu $v0, $s6, $zero

View File

@ -0,0 +1,52 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osContGetInitData
/* 3D11C 80061D1C 27BDFFF0 */ addiu $sp, $sp, -0x10
/* 3D120 80061D20 00805821 */ addu $t3, $a0, $zero
/* 3D124 80061D24 00A04821 */ addu $t1, $a1, $zero
/* 3D128 80061D28 00005021 */ addu $t2, $zero, $zero
/* 3D12C 80061D2C 3C02800A */ lui $v0, %hi(D_8009A606)
/* 3D130 80061D30 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
/* 3D134 80061D34 3C08800B */ lui $t0, %hi(D_800B0ED0)
/* 3D138 80061D38 25080ED0 */ addiu $t0, $t0, %lo(D_800B0ED0)
/* 3D13C 80061D3C 18400021 */ blez $v0, .L80061DC4
/* 3D140 80061D40 00003821 */ addu $a3, $zero, $zero
/* 3D144 80061D44 240C0001 */ addiu $t4, $zero, 1
/* 3D148 80061D48 24A60002 */ addiu $a2, $a1, 2
.L80061D4C:
/* 3D14C 80061D4C 89020000 */ lwl $v0, ($t0)
/* 3D150 80061D50 99020003 */ lwr $v0, 3($t0)
/* 3D154 80061D54 89030004 */ lwl $v1, 4($t0)
/* 3D158 80061D58 99030007 */ lwr $v1, 7($t0)
/* 3D15C 80061D5C ABA20000 */ swl $v0, ($sp)
/* 3D160 80061D60 BBA20003 */ swr $v0, 3($sp)
/* 3D164 80061D64 ABA30004 */ swl $v1, 4($sp)
/* 3D168 80061D68 BBA30007 */ swr $v1, 7($sp)
/* 3D16C 80061D6C 93A20002 */ lbu $v0, 2($sp)
/* 3D170 80061D70 304200C0 */ andi $v0, $v0, 0xc0
/* 3D174 80061D74 00021102 */ srl $v0, $v0, 4
/* 3D178 80061D78 1440000A */ bnez $v0, .L80061DA4
/* 3D17C 80061D7C A0C20001 */ sb $v0, 1($a2)
/* 3D180 80061D80 93A20005 */ lbu $v0, 5($sp)
/* 3D184 80061D84 93A30004 */ lbu $v1, 4($sp)
/* 3D188 80061D88 00021200 */ sll $v0, $v0, 8
/* 3D18C 80061D8C 00621825 */ or $v1, $v1, $v0
/* 3D190 80061D90 A5230000 */ sh $v1, ($t1)
/* 3D194 80061D94 93A30006 */ lbu $v1, 6($sp)
/* 3D198 80061D98 00EC1004 */ sllv $v0, $t4, $a3
/* 3D19C 80061D9C 01425025 */ or $t2, $t2, $v0
/* 3D1A0 80061DA0 A0C30000 */ sb $v1, ($a2)
.L80061DA4:
/* 3D1A4 80061DA4 24E70001 */ addiu $a3, $a3, 1
/* 3D1A8 80061DA8 25080008 */ addiu $t0, $t0, 8
/* 3D1AC 80061DAC 3C02800A */ lui $v0, %hi(D_8009A606)
/* 3D1B0 80061DB0 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
/* 3D1B4 80061DB4 24C60004 */ addiu $a2, $a2, 4
/* 3D1B8 80061DB8 00E2102A */ slt $v0, $a3, $v0
/* 3D1BC 80061DBC 1440FFE3 */ bnez $v0, .L80061D4C
/* 3D1C0 80061DC0 25290004 */ addiu $t1, $t1, 4
.L80061DC4:
/* 3D1C4 80061DC4 A16A0000 */ sb $t2, ($t3)
/* 3D1C8 80061DC8 03E00008 */ jr $ra
/* 3D1CC 80061DCC 27BD0010 */ addiu $sp, $sp, 0x10

View File

@ -89,7 +89,7 @@ glabel osContInit
/* 3D0C4 80061CC4 0C018747 */ jal osContGetInitData
/* 3D0C8 80061CC8 02C02821 */ addu $a1, $s6, $zero
/* 3D0CC 80061CCC 3C01800A */ lui $at, %hi(D_8009A61C)
/* 3D0D0 80061CD0 0C01975C */ jal osSiCreateAccessQueue
/* 3D0D0 80061CD0 0C01975C */ jal __osSiCreateAccessQueue
/* 3D0D4 80061CD4 A020A61C */ sb $zero, %lo(D_8009A61C)($at)
/* 3D0D8 80061CD8 3C04800E */ lui $a0, %hi(D_800DAAC0)
/* 3D0DC 80061CDC 2484AAC0 */ addiu $a0, $a0, %lo(D_800DAAC0)

View File

@ -0,0 +1,55 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osPackRequestData
/* 3D1D0 80061DD0 27BDFFF0 */ addiu $sp, $sp, -0x10
/* 3D1D4 80061DD4 00802821 */ addu $a1, $a0, $zero
/* 3D1D8 80061DD8 2406000E */ addiu $a2, $zero, 0xe
/* 3D1DC 80061DDC 3C02800B */ lui $v0, %hi(D_800B0F08)
/* 3D1E0 80061DE0 24420F08 */ addiu $v0, $v0, %lo(D_800B0F08)
.L80061DE4:
/* 3D1E4 80061DE4 AC400000 */ sw $zero, ($v0)
/* 3D1E8 80061DE8 24C6FFFF */ addiu $a2, $a2, -1
/* 3D1EC 80061DEC 04C1FFFD */ bgez $a2, .L80061DE4
/* 3D1F0 80061DF0 2442FFFC */ addiu $v0, $v0, -4
/* 3D1F4 80061DF4 3C03800B */ lui $v1, %hi(D_800B0F0C)
/* 3D1F8 80061DF8 24630F0C */ addiu $v1, $v1, %lo(D_800B0F0C)
/* 3D1FC 80061DFC 2467FFC4 */ addiu $a3, $v1, -0x3c
/* 3D200 80061E00 3C04800A */ lui $a0, %hi(D_8009A606)
/* 3D204 80061E04 9084A606 */ lbu $a0, %lo(D_8009A606)($a0)
/* 3D208 80061E08 00003021 */ addu $a2, $zero, $zero
/* 3D20C 80061E0C 24020001 */ addiu $v0, $zero, 1
/* 3D210 80061E10 AC620000 */ sw $v0, ($v1)
/* 3D214 80061E14 240300FF */ addiu $v1, $zero, 0xff
/* 3D218 80061E18 24020001 */ addiu $v0, $zero, 1
/* 3D21C 80061E1C A3A20001 */ sb $v0, 1($sp)
/* 3D220 80061E20 24020003 */ addiu $v0, $zero, 3
/* 3D224 80061E24 A3A30000 */ sb $v1, ($sp)
/* 3D228 80061E28 A3A20002 */ sb $v0, 2($sp)
/* 3D22C 80061E2C A3A50003 */ sb $a1, 3($sp)
/* 3D230 80061E30 A3A30004 */ sb $v1, 4($sp)
/* 3D234 80061E34 A3A30005 */ sb $v1, 5($sp)
/* 3D238 80061E38 A3A30006 */ sb $v1, 6($sp)
/* 3D23C 80061E3C 1880000F */ blez $a0, .L80061E7C
/* 3D240 80061E40 A3A30007 */ sb $v1, 7($sp)
.L80061E44:
/* 3D244 80061E44 8BA20000 */ lwl $v0, ($sp)
/* 3D248 80061E48 9BA20003 */ lwr $v0, 3($sp)
/* 3D24C 80061E4C 8BA30004 */ lwl $v1, 4($sp)
/* 3D250 80061E50 9BA30007 */ lwr $v1, 7($sp)
/* 3D254 80061E54 A8E20000 */ swl $v0, ($a3)
/* 3D258 80061E58 B8E20003 */ swr $v0, 3($a3)
/* 3D25C 80061E5C A8E30004 */ swl $v1, 4($a3)
/* 3D260 80061E60 B8E30007 */ swr $v1, 7($a3)
/* 3D264 80061E64 3C02800A */ lui $v0, %hi(D_8009A606)
/* 3D268 80061E68 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
/* 3D26C 80061E6C 24C60001 */ addiu $a2, $a2, 1
/* 3D270 80061E70 00C2102A */ slt $v0, $a2, $v0
/* 3D274 80061E74 1440FFF3 */ bnez $v0, .L80061E44
/* 3D278 80061E78 24E70008 */ addiu $a3, $a3, 8
.L80061E7C:
/* 3D27C 80061E7C 240200FE */ addiu $v0, $zero, 0xfe
/* 3D280 80061E80 A0E20000 */ sb $v0, ($a3)
/* 3D284 80061E84 03E00008 */ jr $ra
/* 3D288 80061E88 27BD0010 */ addiu $sp, $sp, 0x10
/* 3D28C 80061E8C 00000000 */ nop

View File

@ -18,9 +18,9 @@ glabel nuContMgrInit
/* 3B944 80060544 24A5E6D4 */ addiu $a1, $a1, %lo(D_800AE6D4)
/* 3B948 80060548 0C019560 */ jal osCreateMesgQueue
/* 3B94C 8006054C 24060001 */ addiu $a2, $zero, 1
/* 3B950 80060550 3C048009 */ lui $a0, %hi(D_80093D38)
/* 3B950 80060550 3C048009 */ lui $a0, %hi(nuContCallBack)
/* 3B954 80060554 0C0180FC */ jal nuSiCallBackAdd
/* 3B958 80060558 24843D38 */ addiu $a0, $a0, %lo(D_80093D38)
/* 3B958 80060558 24843D38 */ addiu $a0, $a0, %lo(nuContCallBack)
/* 3B95C 8006055C 0C018248 */ jal nuContQueryRead
/* 3B960 80060560 00000000 */ nop
/* 3B964 80060564 24050001 */ addiu $a1, $zero, 1

View File

@ -3,8 +3,8 @@
glabel nuContMgrRemove
/* 3B9E8 800605E8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3B9EC 800605EC 3C048009 */ lui $a0, %hi(D_80093D38)
/* 3B9F0 800605F0 24843D38 */ addiu $a0, $a0, %lo(D_80093D38)
/* 3B9EC 800605EC 3C048009 */ lui $a0, %hi(nuContCallBack)
/* 3B9F0 800605F0 24843D38 */ addiu $a0, $a0, %lo(nuContCallBack)
/* 3B9F4 800605F4 AFBF0010 */ sw $ra, 0x10($sp)
/* 3B9F8 800605F8 0C018124 */ jal nuSiCallBackRemove
/* 3B9FC 800605FC 00000000 */ nop

View File

@ -5,7 +5,7 @@ glabel osCartRomInit
/* 3C310 80060F10 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 3C314 80060F14 AFBF0018 */ sw $ra, 0x18($sp)
/* 3C318 80060F18 AFB10014 */ sw $s1, 0x14($sp)
/* 3C31C 80060F1C 0C018529 */ jal osPiGetAccess
/* 3C31C 80060F1C 0C018529 */ jal __osPiGetAccess
/* 3C320 80060F20 AFB00010 */ sw $s0, 0x10($sp)
/* 3C324 80060F24 3C028009 */ lui $v0, %hi(D_80093D80)
/* 3C328 80060F28 8C423D80 */ lw $v0, %lo(D_80093D80)($v0)
@ -82,15 +82,15 @@ glabel osCartRomInit
/* 3C43C 8006103C A0234310 */ sb $v1, %lo(D_800B4310)($at)
/* 3C440 80061040 0C01ACD8 */ jal __osDisableInt
/* 3C444 80061044 2630FFF4 */ addiu $s0, $s1, -0xc
/* 3C448 80061048 3C038009 */ lui $v1, %hi(D_80093D6C)
/* 3C44C 8006104C 8C633D6C */ lw $v1, %lo(D_80093D6C)($v1)
/* 3C448 80061048 3C038009 */ lui $v1, %hi(__osPiTable)
/* 3C44C 8006104C 8C633D6C */ lw $v1, %lo(__osPiTable)($v1)
/* 3C450 80061050 00402021 */ addu $a0, $v0, $zero
/* 3C454 80061054 3C018009 */ lui $at, %hi(D_80093D6C)
/* 3C458 80061058 AC303D6C */ sw $s0, %lo(D_80093D6C)($at)
/* 3C454 80061054 3C018009 */ lui $at, %hi(__osPiTable)
/* 3C458 80061058 AC303D6C */ sw $s0, %lo(__osPiTable)($at)
/* 3C45C 8006105C 0C01ACF4 */ jal __osRestoreInt
/* 3C460 80061060 AE23FFF4 */ sw $v1, -0xc($s1)
.L80061064:
/* 3C464 80061064 0C018544 */ jal osPiRelAccess
/* 3C464 80061064 0C018544 */ jal __osPiRelAccess
/* 3C468 80061068 00000000 */ nop
/* 3C46C 8006106C 3C02800B */ lui $v0, %hi(D_800B4308)
/* 3C470 80061070 24424308 */ addiu $v0, $v0, %lo(D_800B4308)

View File

@ -2,8 +2,8 @@
.set noreorder # don't insert nops after branches
glabel osCreateMesgQueue
/* 40980 80065580 3C028009 */ lui $v0, %hi(D_80094650)
/* 40984 80065584 24424650 */ addiu $v0, $v0, %lo(D_80094650)
/* 40980 80065580 3C028009 */ lui $v0, %hi(__osThreadTail)
/* 40984 80065584 24424650 */ addiu $v0, $v0, %lo(__osThreadTail)
/* 40988 80065588 AC820000 */ sw $v0, ($a0)
/* 4098C 8006558C AC820004 */ sw $v0, 4($a0)
/* 40990 80065590 AC800008 */ sw $zero, 8($a0)

View File

@ -8,8 +8,8 @@ glabel osCreatePiManager
/* 3BDEC 800609EC AFB5002C */ sw $s5, 0x2c($sp)
/* 3BDF0 800609F0 00A0A821 */ addu $s5, $a1, $zero
/* 3BDF4 800609F4 AFB40028 */ sw $s4, 0x28($sp)
/* 3BDF8 800609F8 3C148009 */ lui $s4, %hi(D_80093D50)
/* 3BDFC 800609FC 26943D50 */ addiu $s4, $s4, %lo(D_80093D50)
/* 3BDF8 800609F8 3C148009 */ lui $s4, %hi(__osPiDevMgr)
/* 3BDFC 800609FC 26943D50 */ addiu $s4, $s4, %lo(__osPiDevMgr)
/* 3BE00 80060A00 AFBF0030 */ sw $ra, 0x30($sp)
/* 3BE04 80060A04 AFB30024 */ sw $s3, 0x24($sp)
/* 3BE08 80060A08 AFB20020 */ sw $s2, 0x20($sp)
@ -20,18 +20,18 @@ glabel osCreatePiManager
/* 3BE1C 80060A1C 00E03021 */ addu $a2, $a3, $zero
/* 3BE20 80060A20 0C019560 */ jal osCreateMesgQueue
/* 3BE24 80060A24 02A02021 */ addu $a0, $s5, $zero
/* 3BE28 80060A28 3C13800B */ lui $s3, %hi(D_800AF890)
/* 3BE2C 80060A2C 2673F890 */ addiu $s3, $s3, %lo(D_800AF890)
/* 3BE28 80060A28 3C13800B */ lui $s3, %hi(__osPiMesgQueue)
/* 3BE2C 80060A2C 2673F890 */ addiu $s3, $s3, %lo(__osPiMesgQueue)
/* 3BE30 80060A30 02602021 */ addu $a0, $s3, $zero
/* 3BE34 80060A34 3C05800B */ lui $a1, %hi(D_800AF8A8)
/* 3BE38 80060A38 24A5F8A8 */ addiu $a1, $a1, %lo(D_800AF8A8)
/* 3BE34 80060A34 3C05800B */ lui $a1, %hi(piMgrMesgBuff)
/* 3BE38 80060A38 24A5F8A8 */ addiu $a1, $a1, %lo(piMgrMesgBuff)
/* 3BE3C 80060A3C 0C019560 */ jal osCreateMesgQueue
/* 3BE40 80060A40 24060001 */ addiu $a2, $zero, 1
/* 3BE44 80060A44 3C028009 */ lui $v0, %hi(D_80093D90)
/* 3BE48 80060A48 8C423D90 */ lw $v0, %lo(D_80093D90)($v0)
/* 3BE44 80060A44 3C028009 */ lui $v0, %hi(__osPiAccessQueueEnabled)
/* 3BE48 80060A48 8C423D90 */ lw $v0, %lo(__osPiAccessQueueEnabled)($v0)
/* 3BE4C 80060A4C 54400004 */ bnel $v0, $zero, .L80060A60
/* 3BE50 80060A50 24040008 */ addiu $a0, $zero, 8
/* 3BE54 80060A54 0C018514 */ jal osPiCreateAccessQueue
/* 3BE54 80060A54 0C018514 */ jal __osPiCreateAccessQueue
/* 3BE58 80060A58 00000000 */ nop
/* 3BE5C 80060A5C 24040008 */ addiu $a0, $zero, 8
.L80060A60:
@ -53,37 +53,37 @@ glabel osCreatePiManager
.L80060A9C:
/* 3BE9C 80060A9C 0C01ACD8 */ jal __osDisableInt
/* 3BEA0 80060AA0 00000000 */ nop
/* 3BEA4 80060AA4 3C11800B */ lui $s1, %hi(D_800AE6E0)
/* 3BEA8 80060AA8 2631E6E0 */ addiu $s1, $s1, %lo(D_800AE6E0)
/* 3BEA4 80060AA4 3C11800B */ lui $s1, %hi(piMgrThread)
/* 3BEA8 80060AA8 2631E6E0 */ addiu $s1, $s1, %lo(piMgrThread)
/* 3BEAC 80060AAC 02202021 */ addu $a0, $s1, $zero
/* 3BEB0 80060AB0 00002821 */ addu $a1, $zero, $zero
/* 3BEB4 80060AB4 3C068006 */ lui $a2, %hi(osDevMgrMain)
/* 3BEB8 80060AB8 24C61090 */ addiu $a2, $a2, %lo(osDevMgrMain)
/* 3BEB4 80060AB4 3C068006 */ lui $a2, %hi(__osDevMgrMain)
/* 3BEB8 80060AB8 24C61090 */ addiu $a2, $a2, %lo(__osDevMgrMain)
/* 3BEBC 80060ABC 24030001 */ addiu $v1, $zero, 1
/* 3BEC0 80060AC0 AE830000 */ sw $v1, ($s4)
/* 3BEC4 80060AC4 3C03800B */ lui $v1, %hi(D_800B4380)
/* 3BEC8 80060AC8 24634380 */ addiu $v1, $v1, %lo(D_800B4380)
/* 3BECC 80060ACC 3C018009 */ lui $at, %hi(D_80093D60)
/* 3BED0 80060AD0 AC233D60 */ sw $v1, %lo(D_80093D60)($at)
/* 3BEC4 80060AC4 3C03800B */ lui $v1, %hi(gOsPiMessageQueue)
/* 3BEC8 80060AC8 24634380 */ addiu $v1, $v1, %lo(gOsPiMessageQueue)
/* 3BECC 80060ACC 3C018009 */ lui $at, %hi(__osPiDevMgr + 0x10)
/* 3BED0 80060AD0 AC233D60 */ sw $v1, %lo(__osPiDevMgr + 0x10)($at)
/* 3BED4 80060AD4 3C038007 */ lui $v1, %hi(osPiRawStartDma)
/* 3BED8 80060AD8 2463B480 */ addiu $v1, $v1, %lo(osPiRawStartDma)
/* 3BEDC 80060ADC 3C018009 */ lui $at, %hi(D_80093D64)
/* 3BEE0 80060AE0 AC233D64 */ sw $v1, %lo(D_80093D64)($at)
/* 3BEDC 80060ADC 3C018009 */ lui $at, %hi(__osPiDevMgr + 0x14)
/* 3BEE0 80060AE0 AC233D64 */ sw $v1, %lo(__osPiDevMgr + 0x14)($at)
/* 3BEE4 80060AE4 3C038006 */ lui $v1, %hi(osEPiRawStartDma)
/* 3BEE8 80060AE8 24630B70 */ addiu $v1, $v1, %lo(osEPiRawStartDma)
/* 3BEEC 80060AEC 3C018009 */ lui $at, %hi(D_80093D68)
/* 3BEF0 80060AF0 AC233D68 */ sw $v1, %lo(D_80093D68)($at)
/* 3BEF4 80060AF4 3C03800B */ lui $v1, %hi(D_800AF890)
/* 3BEF8 80060AF8 2463F890 */ addiu $v1, $v1, %lo(D_800AF890)
/* 3BEEC 80060AEC 3C018009 */ lui $at, %hi(__osPiDevMgr + 0x18)
/* 3BEF0 80060AF0 AC233D68 */ sw $v1, %lo(__osPiDevMgr + 0x18)($at)
/* 3BEF4 80060AF4 3C03800B */ lui $v1, %hi(__osPiMesgQueue)
/* 3BEF8 80060AF8 2463F890 */ addiu $v1, $v1, %lo(__osPiMesgQueue)
/* 3BEFC 80060AFC AFB00014 */ sw $s0, 0x14($sp)
/* 3BF00 80060B00 00408021 */ addu $s0, $v0, $zero
/* 3BF04 80060B04 02803821 */ addu $a3, $s4, $zero
/* 3BF08 80060B08 3C018009 */ lui $at, %hi(D_80093D54)
/* 3BF0C 80060B0C AC313D54 */ sw $s1, %lo(D_80093D54)($at)
/* 3BF10 80060B10 3C018009 */ lui $at, %hi(D_80093D58)
/* 3BF14 80060B14 AC353D58 */ sw $s5, %lo(D_80093D58)($at)
/* 3BF18 80060B18 3C018009 */ lui $at, %hi(D_80093D5C)
/* 3BF1C 80060B1C AC333D5C */ sw $s3, %lo(D_80093D5C)($at)
/* 3BF08 80060B08 3C018009 */ lui $at, %hi(__osPiDevMgr + 0x4)
/* 3BF0C 80060B0C AC313D54 */ sw $s1, %lo(__osPiDevMgr + 0x4)($at)
/* 3BF10 80060B10 3C018009 */ lui $at, %hi(__osPiDevMgr + 0x8)
/* 3BF14 80060B14 AC353D58 */ sw $s5, %lo(__osPiDevMgr + 0x8)($at)
/* 3BF18 80060B18 3C018009 */ lui $at, %hi(__osPiDevMgr + 0xC)
/* 3BF1C 80060B1C AC333D5C */ sw $s3, %lo(__osPiDevMgr + 0xC)($at)
/* 3BF20 80060B20 0C019798 */ jal osCreateThread
/* 3BF24 80060B24 AFA30010 */ sw $v1, 0x10($sp)
/* 3BF28 80060B28 0C019808 */ jal osStartThread

View File

@ -28,9 +28,9 @@ glabel osEPiRawStartDma
.L80060BC8:
/* 3BFC8 80060BC8 92060009 */ lbu $a2, 9($s0)
/* 3BFCC 80060BCC 00061080 */ sll $v0, $a2, 2
/* 3BFD0 80060BD0 3C058009 */ lui $a1, %hi(D_80093D70)
/* 3BFD0 80060BD0 3C058009 */ lui $a1, %hi(__osCurrentHandle)
/* 3BFD4 80060BD4 00A22821 */ addu $a1, $a1, $v0
/* 3BFD8 80060BD8 8CA53D70 */ lw $a1, %lo(D_80093D70)($a1)
/* 3BFD8 80060BD8 8CA53D70 */ lw $a1, %lo(__osCurrentHandle)($a1)
/* 3BFDC 80060BDC 92020004 */ lbu $v0, 4($s0)
/* 3BFE0 80060BE0 90A30004 */ lbu $v1, 4($a1)
/* 3BFE4 80060BE4 1062003D */ beq $v1, $v0, .L80060CDC

View File

@ -43,11 +43,11 @@ glabel osCreateThread
/* 412F8 80065EF8 AE0A00F0 */ sw $t2, 0xf0($s0)
/* 412FC 80065EFC 0C01ACD8 */ jal __osDisableInt
/* 41300 80065F00 AE0B00F4 */ sw $t3, 0xf4($s0)
/* 41304 80065F04 3C038009 */ lui $v1, %hi(D_8009465C)
/* 41308 80065F08 8C63465C */ lw $v1, %lo(D_8009465C)($v1)
/* 41304 80065F04 3C038009 */ lui $v1, %hi(__osActiveQueue)
/* 41308 80065F08 8C63465C */ lw $v1, %lo(__osActiveQueue)($v1)
/* 4130C 80065F0C 00402021 */ addu $a0, $v0, $zero
/* 41310 80065F10 3C018009 */ lui $at, %hi(D_8009465C)
/* 41314 80065F14 AC30465C */ sw $s0, %lo(D_8009465C)($at)
/* 41310 80065F10 3C018009 */ lui $at, %hi(__osActiveQueue)
/* 41314 80065F14 AC30465C */ sw $s0, %lo(__osActiveQueue)($at)
/* 41318 80065F18 0C01ACF4 */ jal __osRestoreInt
/* 4131C 80065F1C AE03000C */ sw $v1, 0xc($s0)
/* 41320 80065F20 8FBF0014 */ lw $ra, 0x14($sp)

View File

@ -9,13 +9,13 @@ glabel osEPiReadIo
/* 3C1D0 80060DD0 00A08821 */ addu $s1, $a1, $zero
/* 3C1D4 80060DD4 AFB20018 */ sw $s2, 0x18($sp)
/* 3C1D8 80060DD8 AFBF001C */ sw $ra, 0x1c($sp)
/* 3C1DC 80060DDC 0C018529 */ jal osPiGetAccess
/* 3C1DC 80060DDC 0C018529 */ jal __osPiGetAccess
/* 3C1E0 80060DE0 00C09021 */ addu $s2, $a2, $zero
/* 3C1E4 80060DE4 02002021 */ addu $a0, $s0, $zero
/* 3C1E8 80060DE8 02202821 */ addu $a1, $s1, $zero
/* 3C1EC 80060DEC 0C01AD5C */ jal osEPiRawReadIo
/* 3C1F0 80060DF0 02403021 */ addu $a2, $s2, $zero
/* 3C1F4 80060DF4 0C018544 */ jal osPiRelAccess
/* 3C1F4 80060DF4 0C018544 */ jal __osPiRelAccess
/* 3C1F8 80060DF8 00408021 */ addu $s0, $v0, $zero
/* 3C1FC 80060DFC 02001021 */ addu $v0, $s0, $zero
/* 3C200 80060E00 8FBF001C */ lw $ra, 0x1c($sp)

View File

@ -9,13 +9,13 @@ glabel osEPiWriteIo
/* 3C170 80060D70 00A08821 */ addu $s1, $a1, $zero
/* 3C174 80060D74 AFB20018 */ sw $s2, 0x18($sp)
/* 3C178 80060D78 AFBF001C */ sw $ra, 0x1c($sp)
/* 3C17C 80060D7C 0C018529 */ jal osPiGetAccess
/* 3C17C 80060D7C 0C018529 */ jal __osPiGetAccess
/* 3C180 80060D80 00C09021 */ addu $s2, $a2, $zero
/* 3C184 80060D84 02002021 */ addu $a0, $s0, $zero
/* 3C188 80060D88 02202821 */ addu $a1, $s1, $zero
/* 3C18C 80060D8C 0C01ADB8 */ jal osEPiRawWriteIo
/* 3C190 80060D90 02403021 */ addu $a2, $s2, $zero
/* 3C194 80060D94 0C018544 */ jal osPiRelAccess
/* 3C194 80060D94 0C018544 */ jal __osPiRelAccess
/* 3C198 80060D98 00408021 */ addu $s0, $v0, $zero
/* 3C19C 80060D9C 02001021 */ addu $v0, $s0, $zero
/* 3C1A0 80060DA0 8FBF001C */ lw $ra, 0x1c($sp)

View File

@ -4,8 +4,8 @@
glabel osGetThreadPri
/* 41330 80065F30 14800003 */ bnez $a0, .L80065F40
/* 41334 80065F34 00000000 */ nop
/* 41338 80065F38 3C048009 */ lui $a0, %hi(D_80094660)
/* 4133C 80065F3C 8C844660 */ lw $a0, %lo(D_80094660)($a0)
/* 41338 80065F38 3C048009 */ lui $a0, %hi(__osRunningThread)
/* 4133C 80065F3C 8C844660 */ lw $a0, %lo(__osRunningThread)($a0)
.L80065F40:
/* 41340 80065F40 03E00008 */ jr $ra
/* 41344 80065F44 8C820004 */ lw $v0, 4($a0)

View File

@ -12,14 +12,14 @@ glabel osSetThreadPri
/* 4136C 80065F6C AFB20018 */ sw $s2, 0x18($sp)
/* 41370 80065F70 16000003 */ bnez $s0, .L80065F80
/* 41374 80065F74 00409021 */ addu $s2, $v0, $zero
/* 41378 80065F78 3C108009 */ lui $s0, %hi(D_80094660)
/* 4137C 80065F7C 8E104660 */ lw $s0, %lo(D_80094660)($s0)
/* 41378 80065F78 3C108009 */ lui $s0, %hi(__osRunningThread)
/* 4137C 80065F7C 8E104660 */ lw $s0, %lo(__osRunningThread)($s0)
.L80065F80:
/* 41380 80065F80 8E020004 */ lw $v0, 4($s0)
/* 41384 80065F84 1051001C */ beq $v0, $s1, .L80065FF8
/* 41388 80065F88 00000000 */ nop
/* 4138C 80065F8C 3C028009 */ lui $v0, %hi(D_80094660)
/* 41390 80065F90 8C424660 */ lw $v0, %lo(D_80094660)($v0)
/* 4138C 80065F8C 3C028009 */ lui $v0, %hi(__osRunningThread)
/* 41390 80065F90 8C424660 */ lw $v0, %lo(__osRunningThread)($v0)
/* 41394 80065F94 1202000B */ beq $s0, $v0, .L80065FC4
/* 41398 80065F98 AE110004 */ sw $s1, 4($s0)
/* 4139C 80065F9C 96030010 */ lhu $v1, 0x10($s0)
@ -27,25 +27,25 @@ glabel osSetThreadPri
/* 413A4 80065FA4 10620007 */ beq $v1, $v0, .L80065FC4
/* 413A8 80065FA8 00000000 */ nop
/* 413AC 80065FAC 8E040008 */ lw $a0, 8($s0)
/* 413B0 80065FB0 0C019880 */ jal osDequeueThread
/* 413B0 80065FB0 0C019880 */ jal __osDequeueThread
/* 413B4 80065FB4 02002821 */ addu $a1, $s0, $zero
/* 413B8 80065FB8 8E040008 */ lw $a0, 8($s0)
/* 413BC 80065FBC 0C01AC5D */ jal osEnqueueThread
/* 413BC 80065FBC 0C01AC5D */ jal __osEnqueueThread
/* 413C0 80065FC0 02002821 */ addu $a1, $s0, $zero
.L80065FC4:
/* 413C4 80065FC4 3C048009 */ lui $a0, %hi(D_80094660)
/* 413C8 80065FC8 8C844660 */ lw $a0, %lo(D_80094660)($a0)
/* 413CC 80065FCC 3C028009 */ lui $v0, %hi(D_80094658)
/* 413D0 80065FD0 8C424658 */ lw $v0, %lo(D_80094658)($v0)
/* 413C4 80065FC4 3C048009 */ lui $a0, %hi(__osRunningThread)
/* 413C8 80065FC8 8C844660 */ lw $a0, %lo(__osRunningThread)($a0)
/* 413CC 80065FCC 3C028009 */ lui $v0, %hi(__osRunQueue)
/* 413D0 80065FD0 8C424658 */ lw $v0, %lo(__osRunQueue)($v0)
/* 413D4 80065FD4 8C830004 */ lw $v1, 4($a0)
/* 413D8 80065FD8 8C420004 */ lw $v0, 4($v0)
/* 413DC 80065FDC 0062182A */ slt $v1, $v1, $v0
/* 413E0 80065FE0 10600005 */ beqz $v1, .L80065FF8
/* 413E4 80065FE4 24020002 */ addiu $v0, $zero, 2
/* 413E8 80065FE8 A4820010 */ sh $v0, 0x10($a0)
/* 413EC 80065FEC 3C048009 */ lui $a0, %hi(D_80094658)
/* 413F0 80065FF0 0C01AC1B */ jal osEnqueueAndYield
/* 413F4 80065FF4 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 413EC 80065FEC 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 413F0 80065FF0 0C01AC1B */ jal __osEnqueueAndYield
/* 413F4 80065FF4 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
.L80065FF8:
/* 413F8 80065FF8 0C01ACF4 */ jal __osRestoreInt
/* 413FC 80065FFC 02402021 */ addu $a0, $s2, $zero

View File

@ -14,9 +14,9 @@ glabel sins
/* 3FA10 80064610 308203FF */ andi $v0, $a0, 0x3ff
.L80064614:
/* 3FA14 80064614 00021040 */ sll $v0, $v0, 1
/* 3FA18 80064618 3C038009 */ lui $v1, %hi(D_80093DE0)
/* 3FA18 80064618 3C038009 */ lui $v1, %hi(sintable)
/* 3FA1C 8006461C 00621821 */ addu $v1, $v1, $v0
/* 3FA20 80064620 94633DE0 */ lhu $v1, %lo(D_80093DE0)($v1)
/* 3FA20 80064620 94633DE0 */ lhu $v1, %lo(sintable)($v1)
/* 3FA24 80064624 30A20800 */ andi $v0, $a1, 0x800
/* 3FA28 80064628 14400003 */ bnez $v0, .L80064638
/* 3FA2C 8006462C 00031023 */ negu $v0, $v1

View File

@ -20,8 +20,8 @@ glabel __osDisableInt
/* 46784 8006B384 8D480000 */ lw $t0, ($t2)
/* 46788 8006B388 3108FF00 */ andi $t0, $t0, 0xff00
/* 4678C 8006B38C 110B000E */ beq $t0, $t3, .L8006B3C8
/* 46790 8006B390 3C0A8009 */ lui $t2, %hi(D_80094660)
/* 46794 8006B394 254A4660 */ addiu $t2, $t2, %lo(D_80094660)
/* 46790 8006B390 3C0A8009 */ lui $t2, %hi(__osRunningThread)
/* 46794 8006B394 254A4660 */ addiu $t2, $t2, %lo(__osRunningThread)
/* 46798 8006B398 8D490118 */ lw $t1, 0x118($t2)
/* 4679C 8006B39C 312AFF00 */ andi $t2, $t1, 0xff00
/* 467A0 8006B3A0 01485024 */ and $t2, $t2, $t0

View File

@ -38,8 +38,8 @@ glabel osExceptionPreamble
glabel func_8006AA34
/* 45E34 8006AA34 03404021 */ addu $t0, $k0, $zero
/* 45E38 8006AA38 3C1A8009 */ lui $k0, %hi(D_80094660)
/* 45E3C 8006AA3C 8F5A4660 */ lw $k0, %lo(D_80094660)($k0)
/* 45E38 8006AA38 3C1A8009 */ lui $k0, %hi(__osRunningThread)
/* 45E3C 8006AA3C 8F5A4660 */ lw $k0, %lo(__osRunningThread)($k0)
/* 45E40 8006AA40 DD090020 */ ld $t1, 0x20($t0)
/* 45E44 8006AA44 FF490020 */ sd $t1, 0x20($k0)
/* 45E48 8006AA48 DD090118 */ ld $t1, 0x118($t0)
@ -335,8 +335,8 @@ glabel L8006AE3C_4623C
/* 46278 8006AE78 24040070 */ addiu $a0, $zero, 0x70
/* 4627C 8006AE7C 2401EFFF */ addiu $at, $zero, -0x1001
/* 46280 8006AE80 02018024 */ and $s0, $s0, $at
/* 46284 8006AE84 3C0A8009 */ lui $t2, %hi(D_80094658)
/* 46288 8006AE88 8D4A4658 */ lw $t2, %lo(D_80094658)($t2)
/* 46284 8006AE84 3C0A8009 */ lui $t2, %hi(__osRunQueue)
/* 46288 8006AE88 8D4A4658 */ lw $t2, %lo(__osRunQueue)($t2)
/* 4628C 8006AE8C 8D5B0118 */ lw $k1, 0x118($t2)
/* 46290 8006AE90 2401EFFF */ addiu $at, $zero, -0x1001
/* 46294 8006AE94 0361D824 */ and $k1, $k1, $at
@ -372,28 +372,28 @@ glabel L8006AEC4_462C4
.L8006AF00:
glabel L8006AF00_46300
/* 46300 8006AF00 8F490004 */ lw $t1, 4($k0)
/* 46304 8006AF04 3C0A8009 */ lui $t2, %hi(D_80094658)
/* 46308 8006AF08 8D4A4658 */ lw $t2, %lo(D_80094658)($t2)
/* 46304 8006AF04 3C0A8009 */ lui $t2, %hi(__osRunQueue)
/* 46308 8006AF08 8D4A4658 */ lw $t2, %lo(__osRunQueue)($t2)
/* 4630C 8006AF0C 8D4B0004 */ lw $t3, 4($t2)
/* 46310 8006AF10 012B082A */ slt $at, $t1, $t3
/* 46314 8006AF14 10200007 */ beqz $at, .L8006AF34
/* 46318 8006AF18 00000000 */ nop
/* 4631C 8006AF1C 03402821 */ addu $a1, $k0, $zero
/* 46320 8006AF20 3C048009 */ lui $a0, %hi(D_80094658)
/* 46324 8006AF24 0C01AC5D */ jal osEnqueueThread
/* 46328 8006AF28 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 46320 8006AF20 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 46324 8006AF24 0C01AC5D */ jal __osEnqueueThread
/* 46328 8006AF28 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
/* 4632C 8006AF2C 0801AC75 */ j osDispatchThread
/* 46330 8006AF30 00000000 */ nop
.L8006AF34:
/* 46334 8006AF34 3C098009 */ lui $t1, %hi(D_80094658)
/* 46338 8006AF38 25294658 */ addiu $t1, $t1, %lo(D_80094658)
/* 46334 8006AF34 3C098009 */ lui $t1, %hi(__osRunQueue)
/* 46338 8006AF38 25294658 */ addiu $t1, $t1, %lo(__osRunQueue)
/* 4633C 8006AF3C 8D2A0000 */ lw $t2, ($t1)
/* 46340 8006AF40 AF4A0000 */ sw $t2, ($k0)
/* 46344 8006AF44 0801AC75 */ j osDispatchThread
/* 46348 8006AF48 AD3A0000 */ sw $k0, ($t1)
.L8006AF4C:
/* 4634C 8006AF4C 3C018009 */ lui $at, %hi(D_80094664)
/* 46350 8006AF50 AC3A4664 */ sw $k0, %lo(D_80094664)($at)
/* 4634C 8006AF4C 3C018009 */ lui $at, %hi(__osFaultedThread)
/* 46350 8006AF50 AC3A4664 */ sw $k0, %lo(__osFaultedThread)($at)
/* 46354 8006AF54 24090001 */ addiu $t1, $zero, 1
/* 46358 8006AF58 A7490010 */ sh $t1, 0x10($k0)
/* 4635C 8006AF5C 24090002 */ addiu $t1, $zero, 2
@ -450,9 +450,9 @@ glabel send_mesg
/* 46418 8006B018 01202021 */ addu $a0, $t1, $zero
/* 4641C 8006B01C 00405021 */ addu $t2, $v0, $zero
/* 46420 8006B020 01402821 */ addu $a1, $t2, $zero
/* 46424 8006B024 3C048009 */ lui $a0, %hi(D_80094658)
/* 46428 8006B028 0C01AC5D */ jal osEnqueueThread
/* 4642C 8006B02C 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 46424 8006B024 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 46428 8006B028 0C01AC5D */ jal __osEnqueueThread
/* 4642C 8006B02C 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
.L8006B030:
/* 46430 8006B030 02400008 */ jr $s2
/* 46434 8006B034 00000000 */ nop
@ -472,9 +472,9 @@ glabel handle_CPU
/* 46464 8006B064 1000FFB3 */ b .L8006AF34
/* 46468 8006B068 AF5B0118 */ sw $k1, 0x118($k0)
glabel osEnqueueAndYield
/* 4646C 8006B06C 3C058009 */ lui $a1, %hi(D_80094660)
/* 46470 8006B070 8CA54660 */ lw $a1, %lo(D_80094660)($a1)
glabel __osEnqueueAndYield
/* 4646C 8006B06C 3C058009 */ lui $a1, %hi(__osRunningThread)
/* 46470 8006B070 8CA54660 */ lw $a1, %lo(__osRunningThread)($a1)
/* 46474 8006B074 40086000 */ mfc0 $t0, $12
/* 46478 8006B078 35080002 */ ori $t0, $t0, 2
/* 4647C 8006B07C ACA80118 */ sw $t0, 0x118($a1)
@ -538,13 +538,13 @@ glabel osEnqueueAndYield
.L8006B15C:
/* 4655C 8006B15C 10800003 */ beqz $a0, .L8006B16C
/* 46560 8006B160 ACBB0128 */ sw $k1, 0x128($a1)
/* 46564 8006B164 0C01AC5D */ jal osEnqueueThread
/* 46564 8006B164 0C01AC5D */ jal __osEnqueueThread
/* 46568 8006B168 00000000 */ nop
.L8006B16C:
/* 4656C 8006B16C 0801AC75 */ j osDispatchThread
/* 46570 8006B170 00000000 */ nop
glabel osEnqueueThread
glabel __osEnqueueThread
/* 46574 8006B174 0080C821 */ addu $t9, $a0, $zero
/* 46578 8006B178 8C980000 */ lw $t8, ($a0)
/* 4657C 8006B17C 8CAF0004 */ lw $t7, 4($a1)
@ -575,11 +575,11 @@ glabel osPopThread
/* 465D0 8006B1D0 00000000 */ nop
glabel osDispatchThread
/* 465D4 8006B1D4 3C048009 */ lui $a0, %hi(D_80094658)
/* 465D4 8006B1D4 3C048009 */ lui $a0, %hi(__osRunQueue)
/* 465D8 8006B1D8 0C01AC6F */ jal osPopThread
/* 465DC 8006B1DC 24844658 */ addiu $a0, $a0, %lo(D_80094658)
/* 465E0 8006B1E0 3C018009 */ lui $at, %hi(D_80094660)
/* 465E4 8006B1E4 AC224660 */ sw $v0, %lo(D_80094660)($at)
/* 465DC 8006B1DC 24844658 */ addiu $a0, $a0, %lo(__osRunQueue)
/* 465E0 8006B1E0 3C018009 */ lui $at, %hi(__osRunningThread)
/* 465E4 8006B1E4 AC224660 */ sw $v0, %lo(__osRunningThread)($at)
/* 465E8 8006B1E8 24080004 */ addiu $t0, $zero, 4
/* 465EC 8006B1EC A4480010 */ sh $t0, 0x10($v0)
/* 465F0 8006B1F0 0040D021 */ addu $k0, $v0, $zero

View File

@ -0,0 +1,18 @@
.include "macro.inc"
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .text, "ax"
glabel osWritebackDCacheAll
lui $t0, 0x8000
addiu $t2, $zero, 0x2000
addu $t1, $t0, $t2
addiu $t1, $t1, -0x10
.L800618E0:
cache 1, ($t0)
sltu $at, $t0, $t1
bnez $at, .L800618E0
addiu $t0, $t0, 0x10
jr $ra

View File

@ -101,24 +101,24 @@ segments:
- [0x3b750, c, os/code_3b750_len_20]
- [0x3b770, c, os/code_3b770_len_80]
- [0x3b7f0, c, os/code_3b7f0_len_120]
- [0x3b910, c, os/code_3b910_len_410]
- [0x3b910, c, os/nuContMgr]
- [0x3bd20, c, os/code_3bd20_len_c0]
- [0x3BD40, hasm, os/osSetIntMask]
- [0x3bde0, c, os/code_3bde0_len_3e0]
- [0x3bde0, c, os/osCreatePiManager]
- [0x3C160, c, os/osEPiWriteIo]
- [0x3c1c0, c, os/osEPiReadIo]
- [0x3c220, c, os/code_3c220_len_a0]
- [0x3c2c0, c, os/code_3c2c0_len_50]
- [0x3c310, c, os/code_3c310_len_180]
- [0x3c310, c, os/osCartRomInit]
- [0x3c490, c, os/code_3c490_len_3c0]
- [0x3c850, c, os/code_3c850_len_f0]
- [0x3c940, c, os/code_3c940_len_140]
- [0x3ca80, c, os/code_3ca80_len_a0]
- [0x3cb20, c, os/code_3cb20_len_130]
- [0x3cc50, c, os/code_3cc50_len_80]
- [0x3ccd0, c, os/code_3ccd0_len_30]
- [0x3ccd0, hasm, os/osWritebackDCacheAll]
- [0x3cd00, c, os/code_3cd00_len_5f0]
- [0x3CF80, c, os/code_3CF80]
- [0x3CF80, c, os/controller]
- [0x3D290, c, os/osVirtualToPhysical]
- [0x3d2f0, c, os/code_3d2f0_len_10]
- [0x3d300, c, os/code_3d300_len_30]
@ -130,7 +130,7 @@ segments:
- [0x3ef90, c, os/code_3ef90_len_600]
- [0x3f310, c, os/code_3f310_len_3c0]
- [0x3f6d0, c, os/code_3f6d0_len_320]
- [0x3f9f0, c, os/code_3f9f0_len_60]
- [0x3f9f0, c, os/sins]
- [0x3fa50, c, os/code_3fa50_len_f60]
- [0x3FEA0, c, os/code_3FEA0]
- [0x40980, c, os/osCreateMesgQueue]
@ -145,7 +145,7 @@ segments:
- [0x41170, c, os/code_41170_len_f0]
- [0x41260, c, os/osCreateThread]
- [0x41330, c, os/osGetThreadPri]
- [0x41350, c, os/code_41350_len_d0]
- [0x41350, c, os/osSetThreadPri]
- [0x41420, c, os/code_41420_len_120]
- [0x41540, c, os/code_41540_len_c0]
- [0x41600, c, os/code_41600_len_40]
@ -245,7 +245,22 @@ segments:
- [0x6B450, .data, world/world]
- [0x6EAC0, data] # has scripts
- [0x6F0E0, .data, os/nusys/nuContRmbMgr]
- [0x6F110, data] # has scripts?
- [0x6F110, .data, os/nusys/nuGfxFuncSet]
- [0x6F114, .data, os/nusys/nuGfxPreNMIFuncSet]
- [0x6F120, .data, os/nuContMgr]
- [0x6F120, .data, os/osCreatePiManager]
- [0x6F180, .data, os/osCartRomInit]
- [0x6F190, .data, os/code_3c850_len_f0]
- [0x6F1A0, .data, os/code_3ca80_len_a0]
- [0x6F1B0, .data, os/controller]
- [0x6F1C0, .data, os/code_3f310_len_3c0]
- [0x6F1D0, .data, os/code_3f6d0_len_320]
- [0x6F1E0, .data, os/sins]
- [0x6F9E0, .data, os/code_3FEA0]
- [0x6FA30, .data, os/code_40c20_len_1f0]
- [0x6FA40, .data, os/code_41170_len_f0]
- [0x6FA50, .data, os/osSetThreadPri]
- [0x6FA70, data] # has scripts?
- [0x70E30, .data, battle/battle]
- [0x71430, data]
- [0x73130, rodata, code_1060_len_310]

View File

@ -922,10 +922,10 @@ osEPiReadIo = 0x80060DC0; // type:func rom:0x3C1C0
osEPiStartDma = 0x80060E20; // type:func rom:0x3C220
osEPiLinkHandle = 0x80060EC0; // type:func rom:0x3C2C0
osCartRomInit = 0x80060F10; // type:func rom:0x3C310
osDevMgrMain = 0x80061090; // type:func rom:0x3C490
osPiCreateAccessQueue = 0x80061450; // type:func rom:0x3C850
osPiGetAccess = 0x800614A4; // type:func rom:0x3C8A4
osPiRelAccess = 0x80061510; // type:func rom:0x3C910
__osDevMgrMain = 0x80061090; // type:func rom:0x3C490
__osPiCreateAccessQueue = 0x80061450; // type:func rom:0x3C850
__osPiGetAccess = 0x800614A4; // type:func rom:0x3C8A4
__osPiRelAccess = 0x80061510; // type:func rom:0x3C910
osAiGetLength = 0x80061540; // type:func rom:0x3C940
osAiGetStatus = 0x80061550; // type:func rom:0x3C950
osAiSetFrequency = 0x80061560; // type:func rom:0x3C960
@ -982,15 +982,15 @@ osSpTaskStartGo = 0x80065C1C; // type:func rom:0x4101C
osSpTaskYield = 0x80065C50; // type:func rom:0x41050
osSpTaskYielded = 0x80065C70; // type:func rom:0x41070
osSiRawStartDma = 0x80065CC0; // type:func rom:0x410C0
osSiCreateAccessQueue = 0x80065D70; // type:func rom:0x41170
osSiGetAccess = 0x80065DC4; // type:func rom:0x411C4
osSiRelAccess = 0x80065E30; // type:func rom:0x41230
__osSiCreateAccessQueue = 0x80065D70; // type:func rom:0x41170
__osSiGetAccess = 0x80065DC4; // type:func rom:0x411C4
__osSiRelAccess = 0x80065E30; // type:func rom:0x41230
osCreateThread = 0x80065E60; // type:func rom:0x41260
osGetThreadPri = 0x80065F30; // type:func rom:0x41330
osSetThreadPri = 0x80065F50; // type:func rom:0x41350
osStartThread = 0x80066020; // type:func rom:0x41420
osStopThread = 0x80066140; // type:func rom:0x41540
osDequeueThread = 0x80066200; // type:func rom:0x41600
__osDequeueThread = 0x80066200; // type:func rom:0x41600
osYieldThread = 0x80066240; // type:func rom:0x41640
osGetActiveQueue = 0x80066290; // type:func rom:0x41690
osGetTime = 0x800662A0; // type:func rom:0x416A0
@ -1067,8 +1067,8 @@ osExceptionPreamble = 0x8006AA00; // type:label rom:0x45E00
func_8006AA34 = 0x8006AA34; // type:func rom:0x45E34
send_mesg = 0x8006AF7C; // rom:0x4637C !
handle_CPU = 0x8006B038; // rom:0x46438 !
osEnqueueAndYield = 0x8006B06C; // rom:0x4646C !
osEnqueueThread = 0x8006B174; // rom:0x46574 !
__osEnqueueAndYield = 0x8006B06C; // rom:0x4646C !
__osEnqueueThread = 0x8006B174; // rom:0x46574 !
osPopThread = 0x8006B1BC; // rom:0x465BC !
osDispatchThread = 0x8006B1D4; // rom:0x465D4 !
osCleanupThread = 0x8006B350; // type:func rom:0x46750
@ -1080,7 +1080,7 @@ osPiRawStartDma = 0x8006B480; // type:func rom:0x46880
osPiGetCmdQueue = 0x8006B550; // type:func rom:0x46950
osEPiRawReadIo = 0x8006B570; // type:func rom:0x46970
osEPiRawWriteIo = 0x8006B6E0; // type:func rom:0x46AE0
osAiDeviceBusy = 0x8006B850; // type:func rom:0x46C50
__osAiDeviceBusy = 0x8006B850; // type:func rom:0x46C50
bcmp = 0x8006B870; // type:func rom:0x46C70
_Litob = 0x8006B980; // type:func rom:0x46D80
_Ldtob = 0x8006BBD0; // type:func rom:0x46FD0
@ -1306,7 +1306,7 @@ D_80078DB4 = 0x80078DB4; // rom:0x541B4
FrameBuf = 0x80093BA8; // rom:0x6EFA8
nuContPakCompanyCode = 0x80093CA0; // rom:0x6F0A0
nuContPakGameCode = 0x80093CA4; // rom:0x6F0A4
nuContCallBack = 0x80093CD0; // rom:0x6F0D0
nuContPakCallBack = 0x80093CD0; // rom:0x6F0D0
nuContRmbSearchTime = 0x80093CE0; // rom:0x6F0E0
D_80093CE4 = 0x80093CE4; // type:data rom:0x6F0E4
nuContRmbCallBack = 0x80093D00; // rom:0x6F100
@ -15114,9 +15114,9 @@ D_800AC5E8 = 0x800AC5E8; // type:data
D_800AC6B0 = 0x800AC6B0; // type:data
D_800AE6D0 = 0x800AE6D0; // type:data
D_800AE6D4 = 0x800AE6D4; // type:data
D_800AE6E0 = 0x800AE6E0; // type:data
D_800AF890 = 0x800AF890; // type:data
D_800AF8A8 = 0x800AF8A8; // type:data
piMgrThread = 0x800AE6E0; // type:data
__osPiMesgQueue = 0x800AF890; // type:data
piMgrMesgBuff = 0x800AF8A8; // type:data
D_800AF8B0 = 0x800AF8B0; // type:data
D_800AF8C0 = 0x800AF8C0; // type:data
D_800AF8C4 = 0x800AF8C4; // type:data
@ -15196,7 +15196,7 @@ D_800B4310 = 0x800B4310; // type:data
D_800B4311 = 0x800B4311; // type:data
D_800B4314 = 0x800B4314; // type:data
D_800B4318 = 0x800B4318; // type:data
D_800B4380 = 0x800B4380; // type:data
gOsPiMessageQueue = 0x800B4380; // type:data
D_800B4398 = 0x800B4398; // type:data
D_800B4514 = 0x800B4514; // type:data
D_800B451C = 0x800B451C; // type:data

View File

@ -44,6 +44,8 @@ spiked_goomba = 0x8021B0AC;
paragoomba = 0x8021CD00;
StartRumbleWithParams = 0x80267D9C;
rdpstateinit_dl = 0x80093bb8;
LeoDiskHandle = 0x800B1B08;
CartRomHandle = 0x800B4518;
D_802BFEFC = 0x802BFEFC;
D_802E9170 = 0x802E9170;
D_802E91F0 = 0x802E91F0;

View File

@ -2116,9 +2116,9 @@ D_800AC5E8 = 0x800AC5E8;
D_800AC6B0 = 0x800AC6B0;
D_800AE6D0 = 0x800AE6D0;
D_800AE6D4 = 0x800AE6D4;
D_800AE6E0 = 0x800AE6E0;
D_800AF890 = 0x800AF890;
D_800AF8A8 = 0x800AF8A8;
piMgrThread = 0x800AE6E0;
__osPiMesgQueue = 0x800AF890;
piMgrMesgBuff = 0x800AF8A8;
D_800AF8B0 = 0x800AF8B0;
D_800AF8C0 = 0x800AF8C0;
D_800AF8C4 = 0x800AF8C4;
@ -2198,7 +2198,7 @@ D_800B4310 = 0x800B4310;
D_800B4311 = 0x800B4311;
D_800B4314 = 0x800B4314;
D_800B4318 = 0x800B4318;
D_800B4380 = 0x800B4380;
gOsPiMessageQueue = 0x800B4380;
D_800B4398 = 0x800B4398;
D_800B4514 = 0x800B4514;
D_800B451C = 0x800B451C;