Commit Graph

328 Commits

Author SHA1 Message Date
gijs 0872cce98b Fix proper stack sizes
Add `DECLARE_STACK` and `STACK_START` macros
Fix addresses so `nuStackIdle` and `obStackMain` are 0x2000 in size
2023-10-22 00:07:08 +02:00
gijs b035cebc4f Add proper symbol for `nuStackSiMgrThread` 2023-10-21 23:24:00 +02:00
gijs ac627304f0 Add proper symbol for `obStackMain` 2023-10-21 22:05:37 +02:00
gijs 1a1dd9503f Add proper symbol for `nuStackIdle` 2023-10-21 21:23:37 +02:00
gijs 7668b38b44 Rename `_ob_painful_roll` to `nugfxswapcfb` 2023-10-21 20:06:31 +02:00
gijs a30c8fe5d1 Decompile `nuSiCallBackRemove` 2023-10-21 20:04:51 +02:00
gijs 9ace1366f9 Decompile `nuSiCallBackAdd` 2023-10-21 20:04:22 +02:00
gijs ad75b6d5f3 Split `1B530`, remove `nuIdle` definition
Move `nuSiCallBackAdd` to `nusicallbackadd.c`
Move `nuSiCallBackRemove` to `nusicallbackremove.c`
2023-10-21 19:53:42 +02:00
gijs 0f70a6bf41 Change `UnpackProc` to take void * parameter 2023-10-21 19:39:54 +02:00
gijs d803e66638 Rename `MQ_800AF320` to `obUnpackQueue` 2023-10-21 19:28:24 +02:00
gijs 52c76621f6 Delete `lha.c`
Since all functions have been migrated, there's no use for this file anymore.
2023-10-21 19:27:19 +02:00
gijs 40e528eb4d Change signature of `Unpack` 2023-10-21 19:18:17 +02:00
gijs e5f075888a Rename `func_8008A6E0` to `nuContPakOpen` 2023-10-21 19:10:03 +02:00
gijs 1616b6a0b1 Rename `func_8008A730` to `nuContPakGetFree` 2023-10-21 19:08:09 +02:00
gijs 37d8a3185b Rename `func_8008A758` to `nuContPakFileReadWrite` 2023-10-21 19:06:12 +02:00
gijs 16339aaa7c Rename `func_8008A798` to `nuContPakFileOpen` 2023-10-21 19:04:59 +02:00
gijs f38c7a0f3e Rename `func_8008A850` to `nuContPakFileDelete` 2023-10-21 18:17:27 +02:00
gijs c62b4a3636 Rename `func_8008A8BC` to `nuContPakFileNum` 2023-10-21 18:15:56 +02:00
gijs 9c23db285b Rename `func_8008A890` to `nuContPakFileState` 2023-10-21 18:13:39 +02:00
gijs 32c7a5b95d Rename `func_8008A8E8` to `nuContPakRepairId` 2023-10-21 18:12:30 +02:00
gijs d4b40689b4 Rename `_ob_dull_silver.c` to `nucontpakmgr.c`
Rename `func_8008A6A0` to `nuContPakMgrInit`
Rename `func_8008A6C0` to `nuContPakMgrRemove`
Rename `D_800AA040` to `nuContPakCallBack`
2023-10-21 18:11:30 +02:00
gijs 30721ffd6c Clean up around `nuContRetrace`
Rename `__calls_read_controller_0` to `nuContRetrace`
Rename `D_800A9FE0` to `nuContReadFunc`
Rename `__set_fp_8008A660` to `nuContReadFuncSet`
Rename `_ob_proper_regret.c` to `nucontreadfuncset.c`
2023-10-21 18:05:22 +02:00
gijs 19551728c2 Split `_ob_classy_fold.c`
Rename `_ob_classy_fold.c` to `nucontmgr.c`
Rename `__GLOBAL_CONTROLLER_DATA` to `nuContData`
Rename `__copy_global_controller_data` to `nuContDataGetAll`
Split `nuContQueryRead` to it's own file
Split `nuContDataGetAll` to it's own file
2023-10-21 17:54:44 +02:00
gijs 3dab52ce7d Rename `_ob_silly_cactus.c` to `nucontdatalock.c` 2023-10-21 17:39:57 +02:00
gijs 37df9533bc Rename `D_800C4B30` to `nuContDataLockKey` 2023-10-21 17:39:09 +02:00
gijs a689d76967 Rename `func_8008A5A0` to `nuContDataLock` 2023-10-21 17:38:17 +02:00
gijs 24e91ef028 Rename `_ob_prized_reading.c` to `nucontmgr.c` 2023-10-21 17:37:13 +02:00
gijs f03558ef48 Rename a couple files and split them into their own
Rename `_ob_icy_coast.c` to `nusimgr.c`
Add decompiled `nuPiInit` to `nupiinit.c`
Add decompiled `nuPiReadRom` to `nupireadrom.c`
2023-10-21 17:33:47 +02:00
gijs a5a10f03cd Rename `_ob_grumpy_island.c` to `nugfxthread.c` and move it to `nu` folder 2023-10-21 17:25:30 +02:00
gijs 6499c2fe8f Rename `__start_copy_global_controller_data` to `nuContDataClose` and `__end_copy_global_controller_data` to `nuContDataOpen` 2023-10-20 21:20:36 +02:00
gijs 92fd0c2213 Rename `func_8008B1D0` to `nuSiCallBackRemove` 2023-10-20 21:17:55 +02:00
gijs 1fa7c6930f Rename `func_8008A334` to `nuContMgrRemove` 2023-10-20 21:15:53 +02:00
gijs 6290ea1045 Clean up `nuContMgrInit` 2023-10-20 19:53:46 +02:00
gijs 5ce4b39095 Rename `obStackMain` to `nuContNum` 2023-10-20 19:53:24 +02:00
gijs 84c9518b4c Rename `__GLOBAL_CONT_STATUS` to `nuContStatus` 2023-10-20 19:49:28 +02:00
gijs 118c79854c Rename `D_800A9FF8` to `nuContCallBack` 2023-10-20 19:47:12 +02:00
gijs c1974f2e83 Rename `OSMESG_800BE194` to `nuContDataMutexBuf` 2023-10-20 19:43:59 +02:00
gijs 7bd8d54843 Rename `MQ_800E9BF0` to `nuContDataMutexQ` 2023-10-20 19:42:55 +02:00
gijs d1d3e1eb1c Rename `OSMESG_800BE190` to `nuContWaitMesgBuf` 2023-10-20 19:41:59 +02:00
gijs 2a951738a0 Rename `MQ_800C4A00` to `nuContWaitMesgQ` 2023-10-20 19:41:07 +02:00
gijs bc821ded12 Rename `func_8008B130` to `nuSiCallBackAdd` 2023-10-20 19:39:45 +02:00
gijs 9fcec8adfd Rename `func_8008A5D0` to `nuContDataUnLock` 2023-10-20 19:37:39 +02:00
gijs 7ff45c1495 Rename `func_8008A260` to `nuContMgrInit` 2023-10-20 19:36:46 +02:00
gijs eb3f05151b Rename `func_8008A640` to `nuContQueryRead` 2023-10-20 19:35:44 +02:00
gijs b136e35f4a Rename `OSMESG_800BE048` to `nuPiMesgBuf` 2023-10-20 18:40:15 +02:00
gijs 1243f13789 Rename `MQ_800BE030` to `nuPiMgrMesgQ` 2023-10-20 18:36:46 +02:00
gijs 10c83abcbf Rename `PTR_CART_ROM_HANDLE` to `nuPiCartHandle` 2023-10-20 18:33:02 +02:00
gijs f52d20844a Rename `romCopy_512` to `nuPiReadRom` 2023-10-20 18:32:08 +02:00
gijs 5dd734bf29 Rename `obStackIdle` to `nuStackIdle` 2023-10-20 18:24:28 +02:00
gijs 8db75358f7 Clean up `boot.c` 2023-10-20 18:21:49 +02:00
gijs ff290348c5 Rename `obThreadIdle` to `nuThreadIdle` 2023-10-20 18:19:55 +02:00
gijs a8f58de733 Rename `obIdle` to `nuIdle` 2023-10-20 18:18:33 +02:00
gijs ca62a08c7c Rename `__start_controller_thread` to `nuSiMgrRestart` 2023-10-20 18:05:37 +02:00
gijs 9e68866aae Clean up `nuSiMgrStop` 2023-10-20 18:04:51 +02:00
gijs ad71a118fe Rename `func_80089D5C` to `nuSiMgrStop` 2023-10-20 18:04:32 +02:00
gijs 3896f82bbc Rename `func_80089CF8` to `nuSiSendMesg` and clean it up 2023-10-20 18:03:48 +02:00
gijs 6eb644c5cf Rename `__controller_thread_80089D9C` to `nuSiMgrThread` 2023-10-20 18:00:41 +02:00
gijs 12496030a6 Rename `THREAD_CONTROLLER` to `siMgrThread` 2023-10-20 17:57:15 +02:00
gijs 15d4b20eba Rename `D_800BBE60` to `nuSiMesgBuf` 2023-10-20 17:55:48 +02:00
gijs f16e493d79 Rename `MQ_CONTROLLER` to `nuSiMesgQ` 2023-10-20 17:53:56 +02:00
gijs 02e99d32be Rename `obControllerInit` to `nuSiMgrInit` 2023-10-20 17:51:26 +02:00
gijs 56ba9040f4 Move `nuGfxInitEX2` to it's own C file 2023-10-20 17:49:28 +02:00
gijs 094f68127e Rename `func_80089C50` to `nuGfxDisplayOn` and move it into it's own C file 2023-10-20 17:48:01 +02:00
gijs 73120a55ab Rename `black.c` to `nugfxdisplayoff.c` 2023-10-20 17:43:26 +02:00
gijs 031744cb02 Renamed `__SCREEN_IS_NOT_BLACK` to `nuGfxDisplay` 2023-10-20 17:40:42 +02:00
gijs f4de78e2da Renamed `__set_black` to `nuGfxDisplayOff` 2023-10-20 17:38:59 +02:00
gijs 9d669a11af Split `nuGfxTaskAllEndWait` into it's own C file 2023-10-20 17:35:53 +02:00
gijs 42c160f7b9 Rename `_ob_past_brick.c` to `nusched.c` 2023-10-20 17:33:14 +02:00
gijs f0b15433cb Rename `_ob_questionable_glass` to `nugfxswapcfbfuncset` 2023-10-20 17:30:31 +02:00
gijs 5c2961c461 Rename `_ob_thoughtless_van` to `nugfxfuncset` 2023-10-20 17:28:03 +02:00
gijs 2c7212d9b0 Rename `func_80089990` to `nuGfxFuncSet` 2023-10-20 17:26:36 +02:00
gijs 753eb5a7dc Decompile `func_80089990` 2023-10-20 17:26:01 +02:00
gijs d3f8360be2 Move `nuGfxTask` functions to it's own C file 2023-10-20 17:25:02 +02:00
gijs 25048fc641 Split `func_80089990` into it's own C file 2023-10-20 17:22:48 +02:00
gijs 281135d82e Rename `__thread_80089540` to `nuGfxTaskMgr` 2023-10-20 17:19:50 +02:00
gijs 38563897a2 Remove duplicate definition of `nuScCreateScheduler` from `common.h` 2023-10-20 17:16:43 +02:00
gijs 8c7ba403cb Added symbols for `gFrameBuf0` to `gFrameBuf2` and renamed `DISPLAY_LIST_800A9EF0` to `rdpstateinit_dl` 2023-10-20 17:15:16 +02:00
gijs 32951b17af Rename `__SOMETHING_FRAMEBUFFERS` to `FrameBuf` 2023-10-20 17:08:56 +02:00
gijs d781c0572c Rename `func_80089A10` to `nuGfxTaskAllEndWait` 2023-10-20 17:06:25 +02:00
gijs 7987a3fc72 Rename `__something_display_list` to `nuGfxTaskStart` 2023-10-20 17:05:29 +02:00
gijs a330ca4ecb Rename `D_800A9EB0` to `nugfx_ucode` 2023-10-20 17:04:12 +02:00
gijs abe6017825 Rename `D_800C4CE0` to `nuGfxUcode` 2023-10-20 17:02:51 +02:00
gijs eb57aa31f3 Rename `D_800C4B20` to `nuGfxZBuffer` 2023-10-20 17:01:28 +02:00
gijs 33d37c4963 Fix definition of `nuGfxSwapCfb` 2023-10-20 16:52:32 +02:00
gijs 050d7e737d Rename `set_swap_buffer_func` to `nuGfxSwapCfbFuncSet`, `SWAP_BUFFER_FUNC` to `nuGfxSwapCfbFunc` and `__osViSwapBuffer_3` to `nuGfxSwapCfb` 2023-10-20 16:49:45 +02:00
gijs 6327ab0fda Clean up `nuGfxInitEX2` 2023-10-20 16:45:49 +02:00
gijs cb11271360 Rename `THREAD_800BE1C0` to `nuGfxThread` 2023-10-20 16:43:11 +02:00
gijs efdfc38a41 Rename `D_800E79A4` to `nuGfxTaskSpool` 2023-10-20 16:40:51 +02:00
gijs 9349cf282c Rename `D_800AA094` to `nuGfxPreNMIFunc` 2023-10-20 16:39:36 +02:00
gijs e0f5679536 Rename `D_800AA090` to `nuGfxFunc` 2023-10-20 16:38:50 +02:00
gijs 7df2c30851 Rename `OSMESG_800BE1A0` to `nuGfxMesgBuf` 2023-10-20 16:37:04 +02:00
gijs 7b0cc70821 Rename `MQ_800C4C28` to `nuGfxMesgQ` 2023-10-20 16:35:17 +02:00
gijs ae6fa1fd91 Clean up `gfxThread` 2023-10-20 16:34:28 +02:00
gijs e5dc3321ea Rename `__start_thread_800B9C88` to `nuGfxTaskMgrInit` and `__thread_8008AFE0` to `gfxThread` 2023-10-20 16:31:05 +02:00
gijs 319b8ff320 Rename `__start_thread_800BE1C0` to `nuGfxThreadStart` 2023-10-20 16:25:46 +02:00
gijs a0962ddc83 Rename `func_8008A1B0` to `nuGfxInitEX2` 2023-10-20 15:55:05 +02:00
gijs fa955ceb38 Decompile `nuScGetFrameRate` 2023-10-20 15:47:13 +02:00
gijs 1c01e29331 Decompile `nuScSetFrameBufferNum` 2023-10-20 14:54:25 +02:00
gijs b8247208a5 Clean up `nuScEventHandler` 2023-10-20 14:52:48 +02:00
gijs 6dde5925bc Decompile `nuGfxSetCfb` 2023-10-20 12:45:21 +02:00