From 8d5b066b7dbb8ba36d866d6aab2c7586d52b61c0 Mon Sep 17 00:00:00 2001 From: AltoXorg <56553686+Alto1772@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:54:53 +0800 Subject: [PATCH] `SHIFT_BSS` be gone (#1173) * merge asm in src all versions * main: refactor and eliminate SHIFT_BSS * engine1 static BSS * engine2 * folder move * fix shift build * cleanup msg & msg_draw * wtf? * un-static-ized * . * remove unnecess. rodata pad * populate dangling common syms --- include/PR/controller.h | 4 + include/PR/os_message.h | 6 +- include/PR/osint.h | 3 + include/common.h | 2 + include/common_structs.h | 7 + include/macros.h | 10 +- include/model.h | 5 + include/npc.h | 9 +- include/nu/nualsgi.h | 12 +- include/nu/nusys.h | 3 + src/111f0_len_860.c | 10 +- src/77480.c | 13 +- src/7B440.c | 19 +- src/7BB60.c | 10 +- src/7E9D0.c | 19 +- src/891b0_len_fb0.c | 4 +- src/8a160_len_700.c | 2 +- src/8a860_len_3f30.c | 80 +- src/animator.c | 40 +- src/audio.h | 4 + src/audio/25f00_len_940.c | 38 +- src/audio/28910_len_5090.c | 3 +- src/audio/2e230_len_2190.c | 14 +- src/audio/31650.c | 12 +- src/audio/ambience.c | 2 +- src/audio/e0b30_len_b80.c | 11 +- src/audio/sfx.c | 12 +- src/audio/sfx_player.c | 3 +- src/background.c | 8 +- src/background_gfx.c | 2 - src/battle/battle.c | 32 +- src/battle/battle.h | 4 + src/battle/battle_bss.c | 25 + {ver/us/asm => src/boot}/entry_point.s | 0 ver/us/asm/boot.s => src/boot/ipl3_boot.s | 0 src/bss/engine1_post_bss.c | 19 + src/bss/engine1_pre_bss.c | 38 + src/bss/engine2_post_bss.c | 39 + src/bss/engine2_pre_bss.c | 56 + src/bss/main_post_bss.c | 88 ++ src/bss/main_pre_bss.c | 89 ++ src/cam_main.c | 12 +- src/cam_mode_zone_interp.c | 12 +- src/collision.c | 35 +- src/crash_screen.c | 2 +- src/curtains.c | 12 +- src/draw_box.c | 2 +- src/effects.c | 4 +- src/encounter.c | 31 +- src/entity.c | 52 +- src/entity_model.c | 25 +- src/evt/player_api.c | 4 +- src/fio.c | 13 +- src/game_modes.c | 2 +- src/game_states.c | 3 +- src/hud_element.c | 37 +- src/imgfx.c | 22 +- src/input.c | 11 +- src/inventory.c | 5 +- src/item_entity.c | 45 +- src/main.c | 96 +- src/main_loop.c | 11 +- src/model.c | 96 +- src/msg.c | 81 +- src/msg_draw.c | 43 +- src/npc.c | 10 +- src/npc_collision.c | 12 +- {ver/us/asm => src}/os/__osDisableInt.s | 0 {ver/us/asm => src}/os/__osGetCause.s | 0 {ver/us/asm => src}/os/__osGetSR.s | 0 {ver/us/asm => src}/os/__osProbeTLB.s | 5 + {ver/us/asm => src}/os/__osRestoreInt.s | 0 {ver/us/asm => src}/os/__osSetCompare.s | 0 {ver/us/asm => src}/os/__osSetWatchLo.s | 0 {ver/us/asm => src}/os/bcmp.s | 0 {ver/us/asm => src}/os/bcopy.s | 0 {ver/us/asm => src}/os/bzero.s | 0 src/os/cartrominit.c | 2 +- src/os/contpfs.c | 2 +- src/os/controller.c | 2 +- {ver/us/asm => src}/os/decode_yay0.s | 0 {ver/us/asm => src}/os/exceptasm.s | 246 ++++- src/os/flashinit.c | 8 +- {ver/us/asm => src}/os/guMtxCat.s | 0 {ver/us/asm => src}/os/guMtxCatF.s | 0 {ver/us/asm => src}/os/guMtxF2L.s | 0 {ver/us/asm => src}/os/guMtxIdent.s | 0 {ver/us/asm => src}/os/guMtxIdentF.s | 0 {ver/us/asm => src}/os/guMtxL2F.s | 4 + {ver/us/asm => src}/os/guNormalize.s | 0 {ver/us/asm => src}/os/guScale.s | 14 +- {ver/us/asm => src}/os/guScaleF.s | 0 {ver/us/asm => src}/os/guTranslate.s | 14 + {ver/us/asm => src}/os/guTranslateF.s | 2 + src/os/motor.c | 6 +- src/os/nusys/nuboot.c | 10 +- src/os/nusys/nucontmgr.c | 15 +- src/os/nusys/nucontrmbmgr.c | 5 +- src/os/nusys/nugfxtaskmgr.c | 27 +- src/os/nusys/nugfxthread.c | 7 +- src/os/nusys/nupiinit.c | 5 +- src/os/nusys/nusched.c | 10 +- src/os/nusys/nusimgr.c | 10 +- src/os/osFlash.c | 12 +- {ver/us/asm => src}/os/osGetCount.s | 0 {ver/us/asm => src}/os/osInvalDCache.s | 4 + {ver/us/asm => src}/os/osInvalICache.s | 4 + {ver/us/asm => src}/os/osMapTLB.s | 0 {ver/us/asm => src}/os/osMapTLBRdb.s | 0 {ver/us/asm => src}/os/osSetIntMask.s | 82 +- {ver/us/asm => src}/os/osUnmapTLB.s | 0 {ver/us/asm => src}/os/osUnmapTLBAll.s | 0 {ver/us/asm => src}/os/osWritebackDCache.s | 4 + {ver/us/asm => src}/os/osWritebackDCacheAll.s | 0 {ver/ique/asm => src}/os/padding.s | 0 {ver/jp/asm => src}/os/padding_alt.s | 0 {ver/ique/asm => src}/os/parameters.s | 5 +- src/os/piacs.c | 5 +- src/os/pimgr.c | 20 +- src/os/seteventmesg.c | 2 + {ver/us/asm => src}/os/setfpccsr.s | 0 {ver/us/asm => src}/os/setsr.s | 0 src/os/siacs.c | 5 +- {ver/ique/asm => src}/os/skapi.s | 0 src/os/sptask.c | 2 +- src/os/vi.c | 2 +- src/os/vimgr.c | 16 +- src/screen_overlays.c | 12 +- src/sprite_shading.c | 15 +- src/state_battle.c | 6 +- src/state_file_select.c | 6 +- src/state_intro.c | 18 +- src/state_logos.c | 8 +- src/state_pause.c | 8 +- src/state_title_screen.c | 16 +- src/status_icons.c | 6 +- src/trigger.c | 8 +- src/windows.c | 2 +- src/worker.c | 6 +- src/world/actions.c | 21 + src/world/menus.c | 3 +- src/world/partners.c | 57 +- src/world/world.c | 18 +- tools/build/configure.py | 17 +- ver/ique/asm/bss.s | 931 ----------------- ver/ique/asm/bss2.s | 114 -- ver/ique/asm/bss2_2.s | 225 ---- ver/ique/asm/bss3.s | 685 ------------ ver/ique/asm/entry_point.s | 38 - ver/ique/asm/os/bcmp.s | 90 -- ver/ique/asm/os/bcopy.s | 232 ----- ver/ique/asm/os/bzero.s | 59 -- ver/ique/asm/os/decode_yay0.s | 63 -- ver/ique/asm/os/exceptasm.s | 842 --------------- ver/ique/asm/os/getcause.s | 17 - ver/ique/asm/os/getsr.s | 17 - ver/ique/asm/os/guMtxCatF.s | 78 -- ver/ique/asm/os/guMtxF2L.s | 45 - ver/ique/asm/os/guMtxIdent.s | 37 - ver/ique/asm/os/guMtxIdentF.s | 36 - ver/ique/asm/os/guMtxL2F.s | 45 - ver/ique/asm/os/guNormalize.s | 36 - ver/ique/asm/os/guScale.s | 52 - ver/ique/asm/os/guScaleF.s | 36 - ver/ique/asm/os/guTranslate.s | 68 -- ver/ique/asm/os/guTranslateF.s | 32 - ver/ique/asm/os/interrupt.s | 53 - ver/ique/asm/os/maptlb.s | 67 -- ver/ique/asm/os/maptlbrdb.s | 37 - ver/ique/asm/os/osInvalDCache.s | 63 -- ver/ique/asm/os/osInvalICache.s | 50 - ver/ique/asm/os/osWritebackDCache.s | 50 - ver/ique/asm/os/osWritebackDCacheAll.s | 27 - ver/ique/asm/os/probetlb.s | 65 -- ver/ique/asm/os/setfpccsr.s | 16 - ver/ique/asm/os/setintmask.s | 127 --- ver/ique/asm/os/setsr.s | 17 - ver/ique/asm/os/setwatchlo.s | 17 - ver/ique/asm/os/unmaptlb.s | 29 - ver/ique/asm/os/unmaptlball.s | 34 - ver/ique/splat.yaml | 35 +- ver/jp/asm/bss2.s | 114 -- ver/jp/asm/bss2_2.s | 225 ---- ver/jp/asm/bss3.s | 682 ------------ ver/jp/asm/entry_point.s | 38 - ver/jp/asm/main.bss.s | 770 -------------- ver/jp/asm/os/__osDisableInt.s | 42 - ver/jp/asm/os/__osGetCause.s | 17 - ver/jp/asm/os/__osGetSR.s | 17 - ver/jp/asm/os/__osProbeTLB.s | 65 -- ver/jp/asm/os/__osRestoreInt.s | 21 - ver/jp/asm/os/__osSetCompare.s | 17 - ver/jp/asm/os/__osSetWatchLo.s | 17 - ver/jp/asm/os/bcmp.s | 90 -- ver/jp/asm/os/bcopy.s | 232 ----- ver/jp/asm/os/bzero.s | 59 -- ver/jp/asm/os/decode_yay0.s | 63 -- ver/jp/asm/os/exceptasm.s | 746 -------------- ver/jp/asm/os/guMtxCatF.s | 78 -- ver/jp/asm/os/guMtxF2L.s | 45 - ver/jp/asm/os/guMtxIdent.s | 37 - ver/jp/asm/os/guMtxIdentF.s | 36 - ver/jp/asm/os/guMtxL2F.s | 45 - ver/jp/asm/os/guNormalize.s | 36 - ver/jp/asm/os/guScale.s | 60 -- ver/jp/asm/os/guScaleF.s | 36 - ver/jp/asm/os/guTranslate.s | 68 -- ver/jp/asm/os/guTranslateF.s | 36 - ver/jp/asm/os/osGetCount.s | 17 - ver/jp/asm/os/osInvalDCache.s | 62 -- ver/jp/asm/os/osInvalICache.s | 49 - ver/jp/asm/os/osMapTLB.s | 67 -- ver/jp/asm/os/osMapTLBRdb.s | 37 - ver/jp/asm/os/osSetIntMask.s | 122 --- ver/jp/asm/os/osUnmapTLB.s | 29 - ver/jp/asm/os/osUnmapTLBAll.s | 34 - ver/jp/asm/os/osWritebackDCache.s | 49 - ver/jp/asm/os/osWritebackDCacheAll.s | 26 - ver/jp/asm/os/padding.s | 16 - ver/jp/asm/os/parameters.s | 37 - ver/jp/asm/os/setfpccsr.s | 16 - ver/jp/asm/os/setsr.s | 17 - ver/jp/splat.yaml | 17 +- ver/jp/undefined_syms.txt | 15 +- ver/pal/asm/bss2.s | 114 -- ver/pal/asm/bss2_2.s | 225 ---- ver/pal/asm/bss3.s | 688 ------------- ver/pal/splat.yaml | 8 +- ver/us/asm/bss.s | 974 ------------------ ver/us/asm/bss2.s | 114 -- ver/us/asm/bss2_2.s | 225 ---- ver/us/asm/bss3.s | 685 ------------ ver/us/asm/os/padding.s | 10 - ver/us/asm/os/parameters.s | 37 - ver/us/splat.yaml | 16 +- 235 files changed, 1512 insertions(+), 12570 deletions(-) create mode 100644 src/battle/battle_bss.c rename {ver/us/asm => src/boot}/entry_point.s (100%) rename ver/us/asm/boot.s => src/boot/ipl3_boot.s (100%) create mode 100644 src/bss/engine1_post_bss.c create mode 100644 src/bss/engine1_pre_bss.c create mode 100644 src/bss/engine2_post_bss.c create mode 100644 src/bss/engine2_pre_bss.c create mode 100644 src/bss/main_post_bss.c create mode 100644 src/bss/main_pre_bss.c rename {ver/us/asm => src}/os/__osDisableInt.s (100%) rename {ver/us/asm => src}/os/__osGetCause.s (100%) rename {ver/us/asm => src}/os/__osGetSR.s (100%) rename {ver/us/asm => src}/os/__osProbeTLB.s (93%) rename {ver/us/asm => src}/os/__osRestoreInt.s (100%) rename {ver/us/asm => src}/os/__osSetCompare.s (100%) rename {ver/us/asm => src}/os/__osSetWatchLo.s (100%) rename {ver/us/asm => src}/os/bcmp.s (100%) rename {ver/us/asm => src}/os/bcopy.s (100%) rename {ver/us/asm => src}/os/bzero.s (100%) rename {ver/us/asm => src}/os/decode_yay0.s (100%) rename {ver/us/asm => src}/os/exceptasm.s (77%) rename {ver/us/asm => src}/os/guMtxCat.s (100%) rename {ver/us/asm => src}/os/guMtxCatF.s (100%) rename {ver/us/asm => src}/os/guMtxF2L.s (100%) rename {ver/us/asm => src}/os/guMtxIdent.s (100%) rename {ver/us/asm => src}/os/guMtxIdentF.s (100%) rename {ver/us/asm => src}/os/guMtxL2F.s (97%) rename {ver/us/asm => src}/os/guNormalize.s (100%) rename {ver/us/asm => src}/os/guScale.s (94%) rename {ver/us/asm => src}/os/guScaleF.s (100%) rename {ver/us/asm => src}/os/guTranslate.s (91%) rename {ver/us/asm => src}/os/guTranslateF.s (96%) rename {ver/us/asm => src}/os/osGetCount.s (100%) rename {ver/us/asm => src}/os/osInvalDCache.s (96%) rename {ver/us/asm => src}/os/osInvalICache.s (95%) rename {ver/us/asm => src}/os/osMapTLB.s (100%) rename {ver/us/asm => src}/os/osMapTLBRdb.s (100%) rename {ver/us/asm => src}/os/osSetIntMask.s (61%) rename {ver/us/asm => src}/os/osUnmapTLB.s (100%) rename {ver/us/asm => src}/os/osUnmapTLBAll.s (100%) rename {ver/us/asm => src}/os/osWritebackDCache.s (95%) rename {ver/us/asm => src}/os/osWritebackDCacheAll.s (100%) rename {ver/ique/asm => src}/os/padding.s (100%) rename {ver/jp/asm => src}/os/padding_alt.s (100%) rename {ver/ique/asm => src}/os/parameters.s (97%) rename {ver/us/asm => src}/os/setfpccsr.s (100%) rename {ver/us/asm => src}/os/setsr.s (100%) rename {ver/ique/asm => src}/os/skapi.s (100%) delete mode 100644 ver/ique/asm/bss.s delete mode 100644 ver/ique/asm/bss2.s delete mode 100644 ver/ique/asm/bss2_2.s delete mode 100644 ver/ique/asm/bss3.s delete mode 100644 ver/ique/asm/entry_point.s delete mode 100644 ver/ique/asm/os/bcmp.s delete mode 100644 ver/ique/asm/os/bcopy.s delete mode 100644 ver/ique/asm/os/bzero.s delete mode 100644 ver/ique/asm/os/decode_yay0.s delete mode 100644 ver/ique/asm/os/exceptasm.s delete mode 100644 ver/ique/asm/os/getcause.s delete mode 100644 ver/ique/asm/os/getsr.s delete mode 100644 ver/ique/asm/os/guMtxCatF.s delete mode 100644 ver/ique/asm/os/guMtxF2L.s delete mode 100644 ver/ique/asm/os/guMtxIdent.s delete mode 100644 ver/ique/asm/os/guMtxIdentF.s delete mode 100644 ver/ique/asm/os/guMtxL2F.s delete mode 100644 ver/ique/asm/os/guNormalize.s delete mode 100644 ver/ique/asm/os/guScale.s delete mode 100644 ver/ique/asm/os/guScaleF.s delete mode 100644 ver/ique/asm/os/guTranslate.s delete mode 100644 ver/ique/asm/os/guTranslateF.s delete mode 100644 ver/ique/asm/os/interrupt.s delete mode 100644 ver/ique/asm/os/maptlb.s delete mode 100644 ver/ique/asm/os/maptlbrdb.s delete mode 100644 ver/ique/asm/os/osInvalDCache.s delete mode 100644 ver/ique/asm/os/osInvalICache.s delete mode 100644 ver/ique/asm/os/osWritebackDCache.s delete mode 100644 ver/ique/asm/os/osWritebackDCacheAll.s delete mode 100644 ver/ique/asm/os/probetlb.s delete mode 100644 ver/ique/asm/os/setfpccsr.s delete mode 100644 ver/ique/asm/os/setintmask.s delete mode 100644 ver/ique/asm/os/setsr.s delete mode 100644 ver/ique/asm/os/setwatchlo.s delete mode 100644 ver/ique/asm/os/unmaptlb.s delete mode 100644 ver/ique/asm/os/unmaptlball.s delete mode 100644 ver/jp/asm/bss2.s delete mode 100644 ver/jp/asm/bss2_2.s delete mode 100644 ver/jp/asm/bss3.s delete mode 100644 ver/jp/asm/entry_point.s delete mode 100644 ver/jp/asm/main.bss.s delete mode 100644 ver/jp/asm/os/__osDisableInt.s delete mode 100644 ver/jp/asm/os/__osGetCause.s delete mode 100644 ver/jp/asm/os/__osGetSR.s delete mode 100644 ver/jp/asm/os/__osProbeTLB.s delete mode 100644 ver/jp/asm/os/__osRestoreInt.s delete mode 100644 ver/jp/asm/os/__osSetCompare.s delete mode 100644 ver/jp/asm/os/__osSetWatchLo.s delete mode 100644 ver/jp/asm/os/bcmp.s delete mode 100644 ver/jp/asm/os/bcopy.s delete mode 100644 ver/jp/asm/os/bzero.s delete mode 100644 ver/jp/asm/os/decode_yay0.s delete mode 100644 ver/jp/asm/os/exceptasm.s delete mode 100644 ver/jp/asm/os/guMtxCatF.s delete mode 100644 ver/jp/asm/os/guMtxF2L.s delete mode 100644 ver/jp/asm/os/guMtxIdent.s delete mode 100644 ver/jp/asm/os/guMtxIdentF.s delete mode 100644 ver/jp/asm/os/guMtxL2F.s delete mode 100644 ver/jp/asm/os/guNormalize.s delete mode 100644 ver/jp/asm/os/guScale.s delete mode 100644 ver/jp/asm/os/guScaleF.s delete mode 100644 ver/jp/asm/os/guTranslate.s delete mode 100644 ver/jp/asm/os/guTranslateF.s delete mode 100644 ver/jp/asm/os/osGetCount.s delete mode 100644 ver/jp/asm/os/osInvalDCache.s delete mode 100644 ver/jp/asm/os/osInvalICache.s delete mode 100644 ver/jp/asm/os/osMapTLB.s delete mode 100644 ver/jp/asm/os/osMapTLBRdb.s delete mode 100644 ver/jp/asm/os/osSetIntMask.s delete mode 100644 ver/jp/asm/os/osUnmapTLB.s delete mode 100644 ver/jp/asm/os/osUnmapTLBAll.s delete mode 100644 ver/jp/asm/os/osWritebackDCache.s delete mode 100644 ver/jp/asm/os/osWritebackDCacheAll.s delete mode 100644 ver/jp/asm/os/padding.s delete mode 100644 ver/jp/asm/os/parameters.s delete mode 100644 ver/jp/asm/os/setfpccsr.s delete mode 100644 ver/jp/asm/os/setsr.s delete mode 100644 ver/pal/asm/bss2.s delete mode 100644 ver/pal/asm/bss2_2.s delete mode 100644 ver/pal/asm/bss3.s delete mode 100644 ver/us/asm/bss.s delete mode 100644 ver/us/asm/bss2.s delete mode 100644 ver/us/asm/bss2_2.s delete mode 100644 ver/us/asm/bss3.s delete mode 100644 ver/us/asm/os/padding.s delete mode 100644 ver/us/asm/os/parameters.s diff --git a/include/PR/controller.h b/include/PR/controller.h index 2bc266e8c9..a5ac113191 100644 --- a/include/PR/controller.h +++ b/include/PR/controller.h @@ -218,6 +218,8 @@ u8 __osContAddressCrc(u16 addr); u8 __osContDataCrc(u8 *data); s32 __osPfsGetStatus(OSMesgQueue *queue, int channel); +#ifndef NO_EXTERN_VARIABLES + extern u8 __osContLastCmd; extern OSTimer __osEepromTimer; extern OSMesg __osEepromTimerMsg; @@ -227,6 +229,8 @@ extern OSPifRam __osContPifRam; extern OSPifRam __osPfsPifRam; extern u8 __osMaxControllers; +#endif + //some version of this almost certainly existed since there's plenty of times where it's used right before a return 0 #define ERRCK(fn) \ ret = fn; \ diff --git a/include/PR/os_message.h b/include/PR/os_message.h index a442e7feff..2dffe4e2db 100644 --- a/include/PR/os_message.h +++ b/include/PR/os_message.h @@ -76,7 +76,11 @@ typedef struct OSMesgQueue_s { /* Events */ #ifdef _FINALROM -#define OS_NUM_EVENTS 15 +# ifndef BBPLAYER +# define OS_NUM_EVENTS 15 +# else +# define OS_NUM_EVENTS 32 +# endif #else #define OS_NUM_EVENTS 23 #endif diff --git a/include/PR/osint.h b/include/PR/osint.h index a5d4407f5e..6ae86f48ed 100644 --- a/include/PR/osint.h +++ b/include/PR/osint.h @@ -26,6 +26,8 @@ extern void __osTimerInterrupt(void); extern u32 __osProbeTLB(void *); extern int __osSpDeviceBusy(void); +#ifndef NO_EXTERN_VARIABLES + extern OSThread *__osRunningThread; extern OSThread *__osActiveQueue; extern OSThread *__osFaultedThread; @@ -41,6 +43,7 @@ extern u32 __osShutdown; extern __OSEventState __osEventStateTab[OS_NUM_EVENTS]; +#endif //not sure if this should be here extern s32 osViClock; diff --git a/include/common.h b/include/common.h index 12986500b8..5adf4ec031 100644 --- a/include/common.h +++ b/include/common.h @@ -6,7 +6,9 @@ #include "types.h" #include "common_structs.h" #include "functions.h" +#ifndef NO_EXTERN_VARIABLES #include "variables.h" +#endif #include "macros.h" #include "enums.h" #include "evt.h" diff --git a/include/common_structs.h b/include/common_structs.h index 22a123f5dd..5ec023cadb 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -2514,6 +2514,13 @@ typedef struct PartnerDMAData { /* 0x10 */ s32 y; } PartnerDMAData; // size = 0x14 +typedef struct UseItemStruct { + /* 0x00 */ u8* dmaStart; + /* 0x04 */ u8* dmaEnd; + /* 0x08 */ EvtScript* main; + /* 0x0C */ s32 unk_0C; +} UseItemStruct; + typedef struct MsgVoice { /* 0x00 */ s32 voiceA; /* 0x04 */ s32 voiceB; diff --git a/include/macros.h b/include/macros.h index f2d6c2a234..a46cf02bd5 100644 --- a/include/macros.h +++ b/include/macros.h @@ -18,7 +18,7 @@ #define MATCHING_BSS(size) static BSS u8 padding_bss[size]; #endif -#define BSS __attribute__ ((section (".bss"))) +#define BSS __attribute__ ((nocommon, section (".bss"))) #define TRANSPARENT_UNION __attribute__ ((__transparent_union__)) #else #define SHIFT_BSS static @@ -26,13 +26,15 @@ #define TRANSPARENT_UNION #endif +#define ALIGNED(x) __attribute__((aligned(x))) + #ifndef BBPLAYER -# define ALIGNED(x) __attribute__((aligned(x))) +# define OSALIGNED(x) ALIGNED(x) #else -# define ALIGNED(x) +# define OSALIGNED(x) #endif -#define BBALIGNED(x) __attribute__((aligned(x))) +# define BBALIGNED(x) ALIGNED(x) #define ALIGN16(val) (((val) + 0xF) & ~0xF) #define ALIGN8(val) (((val) + 0x7) & ~0x7) diff --git a/include/model.h b/include/model.h index 2d73094f43..1213e426eb 100644 --- a/include/model.h +++ b/include/model.h @@ -185,9 +185,14 @@ typedef struct ShapeFile { } ShapeFile; // size = variable typedef ModelTreeInfo ModelTreeInfoList[0x200]; + +#ifndef NO_EXTERN_VARIABLES + extern ModelTreeInfoList* gCurrentModelTreeNodeInfo; extern ModelList* gCurrentModels; +#endif + void mdl_set_depth_tint_params(u8 primR, u8 primG, u8 primB, u8 primA, u8 fogR, u8 fogG, u8 fogB, s32 fogStart, s32 fogEnd); void mdl_set_remap_tint_params(u8 primR, u8 primG, u8 primB, u8 envR, u8 envG, u8 envB); void mdl_get_remap_tint_params(u8* primR, u8* primG, u8* primB, u8* envR, u8* envG, u8* envB); diff --git a/include/npc.h b/include/npc.h index 94ceb3cf06..c860816ecd 100644 --- a/include/npc.h +++ b/include/npc.h @@ -416,12 +416,15 @@ typedef struct EncounterStatus { /* 0x0A8 */ FieldStatus unusedAttack2; /* 0x0AC */ FieldStatus unusedAttack3; /* 0x0B0 */ s32 defeatFlags[60][12]; - /* 0xFB0 */ s16 recentMaps[2]; - /* 0xFB4 */ char unk_FB4[4]; -} EncounterStatus; // size = 0xFB8 + /* 0xBF0 */ s16 recentMaps[2]; +} EncounterStatus; // size = 0xBF4 + +#ifndef NO_EXTERN_VARIABLES extern EncounterStatus gCurrentEncounter; +#endif + s32 basic_ai_check_player_dist(EnemyDetectVolume* arg0, Enemy* arg1, f32 arg2, f32 arg3, s8 arg4); /// The default Npc::onUpdate and Npc::onRender callback. diff --git a/include/nu/nualsgi.h b/include/nu/nualsgi.h index 7da6e1b342..8604ebfc7d 100644 --- a/include/nu/nualsgi.h +++ b/include/nu/nualsgi.h @@ -186,6 +186,8 @@ typedef struct st_SndState { typedef void (*NUAuPreNMIFunc)(NUScMsg,u32); /* PRENMI callback function */ typedef void (*NUAuMgrFunc)(void); /* Acmd callback function */ +#ifndef NO_EXTERN_VARIABLES + /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* extern variables */ @@ -194,11 +196,15 @@ typedef void (*NUAuMgrFunc)(void); /* Acmd callback function */ /*--------------------------------------*/ /* audio variables */ /*--------------------------------------*/ + +// NOTE: some variables have been commented out due to +// being declared static which affects bss reordering + extern u64* nuAuMgrStack; extern NUScTask nuAuTask; /* Audio task buffer*/ extern s16* nuAuBuffer_ptr[]; /* Audio buffer */ extern NUScClient nuAuClient; -extern OSThread nuAuMgrThread; +//extern OSThread nuAuMgrThread; extern u32 nuAuFrameCounter; /* Frame counter */ extern ALHeap nuAuHeap; /* Heap structure */ extern NUAuSeqPlayer nuAuSeqPlayer[]; @@ -219,7 +225,7 @@ extern OSMesgQueue nuAuMesgQ; /* Audio Manager queue */ extern ALGlobals nuAuGlobal; extern s16 nuAuDmaBufNum; extern s16 nuAuDmaBufSize; -extern NUDMAState nuAuDmaState; +//extern NUDMAState nuAuDmaState; extern NUDMABuffer* nuAuDmaBuf; extern Acmd* nuAuCmdListBuf; /* pointer of command list */ extern u32 nuAuAcmdLen; @@ -240,6 +246,8 @@ extern u32 nuAuDebAcmdLenMax; /* Maximum length of the audio command list */ extern s16 nuAuFrameSampleSize; /* Number of samples created at one time */ extern s16 nuAuExtraSampleSize; /* Number of extra samples */ +#endif + /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* Global Function */ diff --git a/include/nu/nusys.h b/include/nu/nusys.h index 54dea96f6f..95711811ea 100644 --- a/include/nu/nusys.h +++ b/include/nu/nusys.h @@ -652,6 +652,8 @@ typedef struct st_DebConWindow { u16 text[NU_DEB_CON_TEXT_SIZE]; /* Character buffer*/ } NUDebConWindow; +#ifndef NO_EXTERN_VARIABLES + /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* extern variables */ @@ -752,6 +754,7 @@ extern u32 nuDebTaskPerfInterval; extern volatile u32 nuDebTaskPerfCnt; extern volatile u32 nuDebTaskPerfEnd; +#endif /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ diff --git a/src/111f0_len_860.c b/src/111f0_len_860.c index dbe80037c0..398134d272 100644 --- a/src/111f0_len_860.c +++ b/src/111f0_len_860.c @@ -2,11 +2,11 @@ #include "nu/nusys.h" #include "game_modes.h" -SHIFT_BSS s16 gMapTransitionAlpha; -SHIFT_BSS s16 gMapTransitionFadeRate; -SHIFT_BSS s16 gMapTransitionState; -SHIFT_BSS s16 gMapTransitionStateTime; -SHIFT_BSS s16 gLoadedFromFileSelect; +BSS s16 gMapTransitionAlpha; +BSS s16 gMapTransitionFadeRate; +BSS s16 gMapTransitionState; +BSS s16 gMapTransitionStateTime; +BSS s16 gLoadedFromFileSelect; void set_map_change_fade_rate(s16 fadeRate) { gMapTransitionFadeRate = fadeRate; diff --git a/src/77480.c b/src/77480.c index b32aa70ba4..87ef4de087 100644 --- a/src/77480.c +++ b/src/77480.c @@ -28,11 +28,14 @@ extern Addr inspect_icon_ROM_START; extern Addr inspect_icon_ROM_END; #endif -SHIFT_BSS UNK_FUN_PTR(ISpyNotificationCallback); -SHIFT_BSS UNK_FUN_PTR(PulseStoneNotificationCallback); -SHIFT_BSS UNK_FUN_PTR(TalkNotificationCallback); -SHIFT_BSS UNK_FUN_PTR(InteractNotificationCallback); -SHIFT_BSS s32 D_8010C950; +UNK_FUN_PTR(ISpyNotificationCallback); +UNK_FUN_PTR(PulseStoneNotificationCallback); +UNK_FUN_PTR(TalkNotificationCallback); +UNK_FUN_PTR(InteractNotificationCallback); +s32 D_8010C950; + +PlayerStatus gPlayerStatus; +PlayerData gPlayerData; extern f32 D_800F7B48; extern s32 D_800F7B4C; diff --git a/src/7B440.c b/src/7B440.c index ad3784b34f..bbfd6b76c7 100644 --- a/src/7B440.c +++ b/src/7B440.c @@ -1,14 +1,15 @@ #include "common.h" -SHIFT_BSS s32 PeachDisguiseNpcIndex; -SHIFT_BSS Entity* TweesterTouchingPartner; -SHIFT_BSS Entity* TweesterTouchingPlayer; -SHIFT_BSS s32 PrevPlayerDirection; -SHIFT_BSS s32 PlayerRunStateTime; -SHIFT_BSS f32 PlayerNormalYaw; -SHIFT_BSS f32 PlayerNormalPitch; -SHIFT_BSS PlayerSpinState gPlayerSpinState; -SHIFT_BSS s32 PlayerYInterpUpdateDelay; +s32 PeachDisguiseNpcIndex; +Entity* TweesterTouchingPartner; +Entity* TweesterTouchingPlayer; +s32 PrevPlayerDirection; +s32 PlayerRunStateTime; +f32 PlayerNormalYaw; +f32 PlayerNormalPitch; +PlayerSpinState gPlayerSpinState; + +BSS s32 PlayerYInterpUpdateDelay; void update_player_input(void) { PlayerStatus* playerStatus = &gPlayerStatus; diff --git a/src/7BB60.c b/src/7BB60.c index 1302703353..08fd6f0708 100644 --- a/src/7BB60.c +++ b/src/7BB60.c @@ -2,11 +2,11 @@ #include "world/partners.h" #include "sprite/player.h" -SHIFT_BSS CollisionStatus gCollisionStatus; -SHIFT_BSS f32 D_8010C928; -SHIFT_BSS f32 JumpedOnSwitchX; -SHIFT_BSS f32 JumpedOnSwitchZ; -SHIFT_BSS f32 D_8010C984; +CollisionStatus gCollisionStatus; +f32 D_8010C928; +f32 JumpedOnSwitchX; +f32 JumpedOnSwitchZ; +f32 D_8010C984; extern f32 GravityParamsStartJump[]; diff --git a/src/7E9D0.c b/src/7E9D0.c index ad57865ec7..69769441f3 100644 --- a/src/7E9D0.c +++ b/src/7E9D0.c @@ -13,15 +13,16 @@ #define PLAYER_ACTION_VRAM_DEF (void*) 0x802B6000 #endif -SHIFT_BSS void* D_8010C924; -SHIFT_BSS s32 D_8010C92C; -SHIFT_BSS s32 D_8010C964; -SHIFT_BSS s32 gSpinHistoryBufferPos; -SHIFT_BSS s16 D_8010C9B0; -SHIFT_BSS s32 gSpinHistoryPosY[5]; -SHIFT_BSS s32 gSpinHistoryPosX[5]; -SHIFT_BSS s32 gSpinHistoryPosZ[5]; -SHIFT_BSS s16 gSpinHistoryPosAngle[5]; +void* D_8010C924; +s32 D_8010C92C; +s32 D_8010C964; +s32 gSpinHistoryBufferPos; +s32 gSpinHistoryPosY[5]; +s32 gSpinHistoryPosX[5]; +s32 gSpinHistoryPosZ[5]; +s16 gSpinHistoryPosAngle[5]; + +BSS s16 D_8010C9B0; void func_800E5520(void) { D_8010C9B0 = 0; diff --git a/src/891b0_len_fb0.c b/src/891b0_len_fb0.c index e69cc7f4eb..d6eeb497b6 100644 --- a/src/891b0_len_fb0.c +++ b/src/891b0_len_fb0.c @@ -26,8 +26,8 @@ s32 D_801094A8 = 0; s16 D_801094AC = 4; s16 D_801094AE = 4; -SHIFT_BSS s32 D_8010CFF0; -SHIFT_BSS s32 D_8010CFF4; +BSS s32 D_8010CFF0; +BSS s32 D_8010CFF4; void func_800EFD00(void) { } diff --git a/src/8a160_len_700.c b/src/8a160_len_700.c index 42d2ef45bc..325de32812 100644 --- a/src/8a160_len_700.c +++ b/src/8a160_len_700.c @@ -45,7 +45,7 @@ typedef struct Unk8a160Outer { /* 0x00 */ Unk8a160 subs[57]; // one base + 56 others? } Unk8a160Outer; -SHIFT_BSS Unk8a160Outer D_8010D000[1]; +BSS Unk8a160Outer D_8010D000[1]; void func_800F0CB0(s32 arg0, f32 x, f32 y, f32 scale) { Unk8a160Outer* outer = &D_8010D000[arg0]; diff --git a/src/8a860_len_3f30.c b/src/8a860_len_3f30.c index b6d3ae99ae..659a8feffa 100644 --- a/src/8a860_len_3f30.c +++ b/src/8a860_len_3f30.c @@ -79,46 +79,46 @@ s16 PopupContentScissorWidths[] = { }; #endif -SHIFT_BSS s32 gPopupState; -SHIFT_BSS s32 D_8010D644; -SHIFT_BSS s32 PopupMenu_SelectedIndex; -SHIFT_BSS s32 PopupMenu_PrevSelectedIndex; -SHIFT_BSS s32 PopupMenu_Alpha; -SHIFT_BSS s8 PopupMenu_FirstDisplayIndex; -SHIFT_BSS s8 PopupMenu_LastDisplayIndex; -SHIFT_BSS s8 PopupMenu_DisplayedEntryCount; -SHIFT_BSS s16 D_8010D658; -SHIFT_BSS s16 D_8010D65A; -SHIFT_BSS s32 PopupMenu_EmptybarHEID; -SHIFT_BSS s32 PopupMenu_TitleIconHEID; -SHIFT_BSS s32 PopupMenu_TimesHEID; -SHIFT_BSS s32 PopupMenu_PartnerLevelHEID; -SHIFT_BSS s32 PopupMenu_CursorHEID; -SHIFT_BSS s32 PopupMenu_UpArrowHEID; -SHIFT_BSS s32 PopupMenu_DownArrowHEID; -SHIFT_BSS s32 PopupMenu_EntryIconHEID; -SHIFT_BSS s16 D_8010D67C; -SHIFT_BSS s16 D_8010D67E; -SHIFT_BSS s16 D_8010D680; -SHIFT_BSS s16 D_8010D682; -SHIFT_BSS s16 D_8010D684; -SHIFT_BSS s16 D_8010D686; -SHIFT_BSS s16 PopupMenu_StarPieceCounterPosX; -SHIFT_BSS s16 PopupMenu_StarPieceCounterPosY; -SHIFT_BSS s16 D_8010D68C; -SHIFT_BSS s8 PopupNotBattle; -SHIFT_BSS s8 PopupMenu_MaxDisplayableEntryCount; -SHIFT_BSS s8 D_8010D690; -SHIFT_BSS s8 D_8010D691; -SHIFT_BSS s8 D_8010D692; -SHIFT_BSS s8 D_8010D693; -SHIFT_BSS s32 gPopupWorker; -SHIFT_BSS s8 PopupNotDipping; -SHIFT_BSS s8 PopupDipMode; -SHIFT_BSS s8 PopupMenu_WasStatusBarIgnoringChanges; -SHIFT_BSS PopupMenu* gPopupMenu; -SHIFT_BSS MessagePrintState* D_8010D6A0; -SHIFT_BSS s32 D_8010D6A4; +BSS s32 gPopupState; +BSS s32 D_8010D644; +BSS s32 PopupMenu_SelectedIndex; +BSS s32 PopupMenu_PrevSelectedIndex; +BSS s32 PopupMenu_Alpha; +BSS s8 PopupMenu_FirstDisplayIndex; +BSS s8 PopupMenu_LastDisplayIndex; +BSS s8 PopupMenu_DisplayedEntryCount; +BSS s16 D_8010D658; +BSS s16 D_8010D65A; +BSS s32 PopupMenu_EmptybarHEID; +BSS s32 PopupMenu_TitleIconHEID; +BSS s32 PopupMenu_TimesHEID; +BSS s32 PopupMenu_PartnerLevelHEID; +BSS s32 PopupMenu_CursorHEID; +BSS s32 PopupMenu_UpArrowHEID; +BSS s32 PopupMenu_DownArrowHEID; +BSS s32 PopupMenu_EntryIconHEID; +BSS s16 D_8010D67C; +BSS s16 D_8010D67E; +BSS s16 D_8010D680; +BSS s16 D_8010D682; +BSS s16 D_8010D684; +BSS s16 D_8010D686; +BSS s16 PopupMenu_StarPieceCounterPosX; +BSS s16 PopupMenu_StarPieceCounterPosY; +BSS s16 D_8010D68C; +BSS s8 PopupNotBattle; +BSS s8 PopupMenu_MaxDisplayableEntryCount; +BSS s8 D_8010D690; +BSS s8 D_8010D691; +BSS s8 D_8010D692; +BSS s8 D_8010D693; +BSS s32 gPopupWorker; +BSS s8 PopupNotDipping; +BSS s8 PopupDipMode; +BSS s8 PopupMenu_WasStatusBarIgnoringChanges; +BSS PopupMenu* gPopupMenu; +BSS MessagePrintState* D_8010D6A0; +BSS s32 D_8010D6A4; s8 status_bar_is_ignoring_changes(void); diff --git a/src/animator.c b/src/animator.c index ee802894e4..5f58c25ea7 100644 --- a/src/animator.c +++ b/src/animator.c @@ -9,25 +9,27 @@ typedef struct DisplayListBufferHandle { typedef DisplayListBufferHandle AnimatedMeshVertexCopyList[0x60]; -SHIFT_BSS AnimatedMeshList* gCurrentAnimMeshListPtr; -SHIFT_BSS s32 gAnimCount; -SHIFT_BSS AnimatedMeshVertexCopyList D_801533C0; -SHIFT_BSS AnimatedMeshVertexCopyList D_801536C0; -SHIFT_BSS AnimatedMeshList D_801539C0; -SHIFT_BSS AnimatedMeshList D_80153A00; -SHIFT_BSS s32 gAnimModelFogEnabled; -SHIFT_BSS s32 gAnimModelFogR; -SHIFT_BSS s32 gAnimModelFogG; -SHIFT_BSS s32 gAnimModelFogB; -SHIFT_BSS s32 gAnimModelFogA; -SHIFT_BSS s32 gAnimModelFogStart; -SHIFT_BSS s32 gAnimModelFogEnd; -SHIFT_BSS s32 gAnimVtxSegment; -SHIFT_BSS Matrix4f gAnimRotMtx; -SHIFT_BSS Matrix4f gAnimScaleMtx; -SHIFT_BSS Matrix4f gAnimTranslateMtx; -SHIFT_BSS Matrix4f gAnimRotScaleMtx; -SHIFT_BSS StaticAnimatorNode** gAnimTreeRoot; +s32 gAnimCount; + +BSS AnimatedMeshVertexCopyList D_801533C0; +BSS AnimatedMeshVertexCopyList D_801536C0; +BSS AnimatedMeshList D_801539C0; +BSS AnimatedMeshList D_80153A00; +BSS AnimatedMeshList* gCurrentAnimMeshListPtr; +BSS s32 gAnimModelFogEnabled; +BSS s32 gAnimModelFogR; +BSS s32 gAnimModelFogG; +BSS s32 gAnimModelFogB; +BSS s32 gAnimModelFogA; +BSS s32 gAnimModelFogStart; +BSS s32 gAnimModelFogEnd; +BSS s32 gAnimVtxSegment; +BSS s32 D_80153A64; +BSS Matrix4f gAnimRotMtx; +BSS Matrix4f gAnimScaleMtx; +BSS Matrix4f gAnimTranslateMtx; +BSS Matrix4f gAnimRotScaleMtx; +BSS StaticAnimatorNode** gAnimTreeRoot; extern Gfx Gfx_RM1_SURFACE_OPA[]; extern Gfx Gfx_RM1_DECAL_OPA[]; diff --git a/src/audio.h b/src/audio.h index 33d1c94a11..451fd378f8 100644 --- a/src/audio.h +++ b/src/audio.h @@ -1186,6 +1186,8 @@ typedef struct ALConfig { /* 0x14 */ ALHeap* heap; } ALConfig; // size = 0x18; +#ifndef NO_EXTERN_VARIABLES + extern volatile u8 AuSynUseStereo; extern u16 DummyInstrumentPredictor[32]; extern u8 DummyInstrumentBase[190]; @@ -1212,6 +1214,8 @@ extern AmbienceManager* gAuAmbienceManager; extern SoundManager* gSoundManager; extern BGMPlayer* gBGMPlayerA; +#endif + #include "audio/private.h" #endif diff --git a/src/audio/25f00_len_940.c b/src/audio/25f00_len_940.c index 94b21a81f2..08934734b3 100644 --- a/src/audio/25f00_len_940.c +++ b/src/audio/25f00_len_940.c @@ -12,22 +12,28 @@ u32 nuAuFrameCounter = 0; u8 nuAuTaskStop = NU_AU_TASK_RUN; u8 volatile AuSynUseStereo = TRUE; -SHIFT_BSS NUDMAState nuAuDmaState; -SHIFT_BSS Acmd* AlCmdListBuffers[3]; -SHIFT_BSS NUScTask nuAuTasks[3]; -SHIFT_BSS u8* D_800A3628[3]; -SHIFT_BSS s32 AlFrameSize; -SHIFT_BSS s32 AlMinFrameSize; -SHIFT_BSS OSMesgQueue nuAuDmaMesgQ; -SHIFT_BSS OSMesg nuAuDmaMesgBuf[50]; -SHIFT_BSS OSIoMesg nuAuDmaIOMesgBuf[50]; -SHIFT_BSS NUDMABuffer nuAuDmaBufList[50]; -SHIFT_BSS AuSynDriver auSynDriver; -SHIFT_BSS u8 rspbootUcodeBuffer[0x100] ALIGNED(16); -SHIFT_BSS u64 AuStack[NU_AU_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS u16 AuInitialGlobalVolume; -SHIFT_BSS OSThread nuAuMgrThread; -SHIFT_BSS ALHeap nuAuHeap; +BSS u16 AuInitialGlobalVolume; +BSS OSThread nuAuMgrThread; +BSS char D_800A1108[0x408]; +BSS u64 AuStack[NU_AU_STACK_SIZE / sizeof(u64)]; +BSS Acmd* AlCmdListBuffers[3]; +BSS NUScTask nuAuTasks[3]; +BSS u8* D_800A3628[3]; +BSS s32 AlFrameSize; +BSS s32 AlMinFrameSize; +BSS s32 D_800A363C; +BSS OSMesgQueue nuAuDmaMesgQ; +BSS OSMesg nuAuDmaMesgBuf[50]; +BSS OSIoMesg nuAuDmaIOMesgBuf[50]; +BSS NUDMAState nuAuDmaState; +BSS s32 D_800A3BDC; +BSS NUDMABuffer nuAuDmaBufList[50]; + +ALHeap nuAuHeap; +AuSynDriver auSynDriver; +#if !VERSION_IQUE +u8 rspbootUcodeBuffer[0x100] ALIGNED(16); +#endif extern u64 n_aspMain_text_bin[]; extern u64 n_aspMain_data_bin[]; diff --git a/src/audio/28910_len_5090.c b/src/audio/28910_len_5090.c index b56c8ca37b..352d42d09e 100644 --- a/src/audio/28910_len_5090.c +++ b/src/audio/28910_len_5090.c @@ -1,10 +1,11 @@ #include "audio.h" +BSS void (*CurrentSeqCmdHandler)(BGMPlayer*, BGMPlayerTrack*); + extern u8 EnvelopeReleaseDefaultFast[]; extern u8 BgmDivisors[8]; extern u8 D_80078558[40]; -extern void (*CurrentSeqCmdHandler)(BGMPlayer*, BGMPlayerTrack*); extern void (*SefCmdHandlers[])(SoundManager*, SoundPlayer*); extern void (*SeqCmdHandlers[])(BGMPlayer*, BGMPlayerTrack*); extern u8 SeqCmdArgCounts[]; diff --git a/src/audio/2e230_len_2190.c b/src/audio/2e230_len_2190.c index 146c847bf9..df29e804e0 100644 --- a/src/audio/2e230_len_2190.c +++ b/src/audio/2e230_len_2190.c @@ -1,13 +1,13 @@ #include "audio.h" #include "ld_addrs.h" -SHIFT_BSS AuCallback BeginSoundUpdateCallback; -SHIFT_BSS BGMPlayer* gBGMPlayerA; -SHIFT_BSS BGMPlayer* gBGMPlayerB; -SHIFT_BSS BGMPlayer* gBGMPlayerC; -SHIFT_BSS SoundManager* gSoundManager; -SHIFT_BSS AuGlobals* gSoundGlobals; -SHIFT_BSS AmbienceManager* gAuAmbienceManager; +AuCallback BeginSoundUpdateCallback; +BGMPlayer* gBGMPlayerA; +BGMPlayer* gBGMPlayerB; +BGMPlayer* gBGMPlayerC; +SoundManager* gSoundManager; +AuGlobals* gSoundGlobals; +AmbienceManager* gAuAmbienceManager; // data extern u16 D_80078530[9]; diff --git a/src/audio/31650.c b/src/audio/31650.c index 6dfaadc2ec..9387d2301b 100644 --- a/src/audio/31650.c +++ b/src/audio/31650.c @@ -4,12 +4,12 @@ static s16 _getVol(s16 arg0, s32 arg1, s16 arg2, u16 arg3); -SHIFT_BSS s16* AuDelayBufferMain; -SHIFT_BSS s16* AuDelayBufferAux; -SHIFT_BSS s32 AuDelayCounter; -SHIFT_BSS u8 AuDelayedVoiceGroup; -SHIFT_BSS s16 AuDelayedChannel; -SHIFT_BSS s32 AuDelayCount; +BSS s16* AuDelayBufferMain; +BSS s16* AuDelayBufferAux; +BSS s32 AuDelayCounter; +BSS u8 AuDelayedVoiceGroup; +BSS s16 AuDelayedChannel; +BSS s32 AuDelayCount; AuSynDriver* gActiveSynDriverPtr = NULL; AuSynDriver* gSynDriverPtr = NULL; diff --git a/src/audio/ambience.c b/src/audio/ambience.c index b28810918c..9743aaa48c 100644 --- a/src/audio/ambience.c +++ b/src/audio/ambience.c @@ -23,7 +23,7 @@ AmbientSoundSettings DefaultAmbientSoundData = { .unkC = -1 }; -SHIFT_BSS AmbientSoundSettings AmbientSoundData; +AmbientSoundSettings AmbientSoundData; void reset_ambient_sounds(void) { AmbientSoundData = DefaultAmbientSoundData; diff --git a/src/audio/e0b30_len_b80.c b/src/audio/e0b30_len_b80.c index 58da9278be..3ce47958dc 100644 --- a/src/audio/e0b30_len_b80.c +++ b/src/audio/e0b30_len_b80.c @@ -4,11 +4,12 @@ void bgm_update_volume(void); void bgm_set_target_volume(s16 volume); -SHIFT_BSS s16 MusicDefaultVolume; -SHIFT_BSS s16 MusicMaxVolume; -SHIFT_BSS s16 MusicCurrentVolume; -SHIFT_BSS s16 MusicTargetVolume; -SHIFT_BSS MusicSettings gMusicSettings[2]; +BSS s16 MusicDefaultVolume; +BSS s16 MusicTargetVolume; +BSS s16 MusicMaxVolume; +BSS s16 MusicCurrentVolume; + +MusicSettings gMusicSettings[2]; MusicSettings BlankMusicSettings = { .flags = 0, diff --git a/src/audio/sfx.c b/src/audio/sfx.c index 43c10d3d36..b69af7da1d 100644 --- a/src/audio/sfx.c +++ b/src/audio/sfx.c @@ -3,8 +3,8 @@ #define MAX_SOUND_INSTANCES 10 -SHIFT_BSS u16 gCurrentDoorSounds; -SHIFT_BSS u16 gCurrentRoomDoorSounds; +u16 gCurrentDoorSounds; +u16 gCurrentRoomDoorSounds; #define SOUND_LOOP_IDX(soundID) (soundID & 0xFFFF) @@ -209,10 +209,10 @@ s32 OpenCloseSounds[][2] = { { SOUND_CREAKY_WINDOW_OPEN, SOUND_CREAKY_WINDOW_CLOSE }, }; -SHIFT_BSS SoundInstance wEnvSounds[MAX_SOUND_INSTANCES]; -SHIFT_BSS SoundInstance bEnvSounds[MAX_SOUND_INSTANCES]; -SHIFT_BSS SoundInstance* gCurrentEnvSounds; -SHIFT_BSS s32 SfxReverbMode; +BSS SoundInstance wEnvSounds[MAX_SOUND_INSTANCES]; +BSS SoundInstance bEnvSounds[MAX_SOUND_INSTANCES]; +BSS SoundInstance* gCurrentEnvSounds; +BSS s32 SfxReverbMode; void sfx_compute_spatialized_sound_params_full(f32 x, f32 y, f32 z, s16* volume, s16* pan, s32 flags) { s32 screenX, screenY, screenZ; diff --git a/src/audio/sfx_player.c b/src/audio/sfx_player.c index 12b6532fb3..697a8a0526 100644 --- a/src/audio/sfx_player.c +++ b/src/audio/sfx_player.c @@ -418,8 +418,7 @@ f32 AlTuneScaling[] = { extern s32* AU_FX_CUSTOM_PARAMS[0]; // points to 80078290 -SHIFT_BSS void (*CurrentSeqCmdHandler)(BGMPlayer*, BGMPlayerTrack*); -SHIFT_BSS void (*CurrentSefCmdHandler)(SoundManager*, SoundPlayer*); +void (*CurrentSefCmdHandler)(SoundManager*, SoundPlayer*); void au_sfx_init(SoundManager* manager, u8 priority, u8 busId, AuGlobals* globals, u8 minVoiceIdx) { u32 i; diff --git a/src/background.c b/src/background.c index 953c95252e..1ee98bea97 100644 --- a/src/background.c +++ b/src/background.c @@ -8,8 +8,12 @@ s8 gBackroundWaveEnabled = FALSE; s16 gBackroundTextureYOffset = 0; f32 gBackroundWavePhase = 0.0f; -SHIFT_BSS PAL_BIN gBackgroundPalette[256]; -SHIFT_BSS f32 gBackroundLastScrollValue; +BSS PAL_BIN gBackgroundPalette[256]; +BSS f32 gBackroundLastScrollValue; +BSS s32 D_801595A4[3]; +#if !VERSION_PAL +BSS s32 D_801595AC; +#endif void load_map_bg(char* optAssetName) { if (optAssetName != NULL) { diff --git a/src/background_gfx.c b/src/background_gfx.c index 7843472b36..5b277ef9d9 100644 --- a/src/background_gfx.c +++ b/src/background_gfx.c @@ -30,8 +30,6 @@ Gfx D_80074230[] = { gsSPEndDisplayList(), }; -//extern s32 timeFreezeMode; // TODO bss - void gfx_init_state(void) { gSPSegment(gMainGfxPos++, 0x00, 0x0); gSPDisplayList(gMainGfxPos++, OS_K0_TO_PHYSICAL(D_80074230)); diff --git a/src/battle/battle.c b/src/battle/battle.c index 342ac34ede..c89080cfb3 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -6,22 +6,22 @@ #include "sprite.h" #include "game_modes.h" -SHIFT_BSS s32 D_800DC060; -SHIFT_BSS StageListRow* gCurrentStagePtr; -SHIFT_BSS s32 gBattleState; -SHIFT_BSS BattleStatus gBattleStatus; -SHIFT_BSS s32 gLastDrawBattleState; -SHIFT_BSS s32 D_800DC4D4; -SHIFT_BSS s32 gDefeatedBattleSubstate; -SHIFT_BSS s32 gBattleSubState; -SHIFT_BSS s32 D_800DC4E0; -SHIFT_BSS s32 gDefeatedBattleState; -SHIFT_BSS s32 gCurrentBattleID; -SHIFT_BSS s32 gCurrentStageID; -SHIFT_BSS s32 D_800DC4F0; -SHIFT_BSS Battle* gOverrideBattlePtr; -SHIFT_BSS s32 D_800DC4F8; -SHIFT_BSS Battle* gCurrentBattlePtr; +extern s32 D_800DC060; +extern StageListRow* gCurrentStagePtr; +extern s32 gBattleState; +extern BattleStatus gBattleStatus; +extern s32 gLastDrawBattleState; +extern s32 D_800DC4D4; +extern s32 gDefeatedBattleSubstate; +extern s32 gBattleSubState; +extern s32 D_800DC4E0; +extern s32 gDefeatedBattleState; +extern s32 gCurrentBattleID; +extern s32 gCurrentStageID; +extern s32 D_800DC4F0; +extern Battle* gOverrideBattlePtr; +extern s32 D_800DC4F8; +extern Battle* gCurrentBattlePtr; // standard battle area table entry #define BTL_AREA(id, jpName) { \ diff --git a/src/battle/battle.h b/src/battle/battle.h index 916f5887c3..0c3b7ff677 100644 --- a/src/battle/battle.h +++ b/src/battle/battle.h @@ -254,10 +254,14 @@ typedef struct PlayerCelebrationAnimOptions { /* 0x04 */ s32 options[80]; } PlayerCelebrationAnimOptions; // size = 0x8 +#ifndef NO_EXTERN_VARIABLES + extern Battle* gCurrentBattlePtr; extern ActorOffsets bActorOffsets[]; +#endif + void func_80072BCC(s32 arg0); void load_demo_battle(u32 index); Actor* create_actor(Formation formation); diff --git a/src/battle/battle_bss.c b/src/battle/battle_bss.c new file mode 100644 index 0000000000..be125fb51d --- /dev/null +++ b/src/battle/battle_bss.c @@ -0,0 +1,25 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +#include "battle/battle.h" + +// +// battle.c bss symbols +// + +BSS s32 D_800DC060; +BSS StageListRow* gCurrentStagePtr; +BSS s32 gBattleState; +BSS s32 D_800DC06C; +BSS BattleStatus gBattleStatus; +BSS s32 gLastDrawBattleState; +BSS s32 D_800DC4D4; +BSS s32 gDefeatedBattleSubstate; +BSS s32 gBattleSubState; +BSS s32 D_800DC4E0; +BSS s32 gDefeatedBattleState; +BSS s32 gCurrentBattleID; +BSS s32 gCurrentStageID; +BSS s32 D_800DC4F0; +BSS Battle* gOverrideBattlePtr; +BSS s32 D_800DC4F8; +BSS Battle* gCurrentBattlePtr; diff --git a/ver/us/asm/entry_point.s b/src/boot/entry_point.s similarity index 100% rename from ver/us/asm/entry_point.s rename to src/boot/entry_point.s diff --git a/ver/us/asm/boot.s b/src/boot/ipl3_boot.s similarity index 100% rename from ver/us/asm/boot.s rename to src/boot/ipl3_boot.s diff --git a/src/bss/engine1_post_bss.c b/src/bss/engine1_post_bss.c new file mode 100644 index 0000000000..bbd6eb8011 --- /dev/null +++ b/src/bss/engine1_post_bss.c @@ -0,0 +1,19 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +BSS PartnerStatus gPartnerStatus; +BSS s32 gSpinHistoryPosY[6]; +BSS s32 gSpinHistoryPosX[6]; +BSS s32 gSpinHistoryPosZ[6]; +BSS StatusBar gStatusBar; +BSS PlayerStatus gPlayerStatus; +BSS PlayerSpinState gPlayerSpinState; +BSS s32 D_8010F284[3]; +BSS PlayerData gPlayerData; +BSS s16 gSpinHistoryPosAngle[5]; + +#endif diff --git a/src/bss/engine1_pre_bss.c b/src/bss/engine1_pre_bss.c new file mode 100644 index 0000000000..15274228d1 --- /dev/null +++ b/src/bss/engine1_pre_bss.c @@ -0,0 +1,38 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +BSS UNK_FUN_PTR(PulseStoneNotificationCallback); +BSS void* D_8010C924; +BSS f32 D_8010C928; +BSS s32 D_8010C92C; +BSS Npc* wPartnerNpc; +BSS Entity* TweesterTouchingPlayer; +BSS f32 PlayerNormalYaw; +BSS UNK_FUN_PTR(ISpyNotificationCallback); +BSS UNK_FUN_PTR(TalkNotificationCallback); +BSS s32 gSpinHistoryBufferPos; +BSS s32 D_8010C948; +BSS s32 NpcHitQueryBehindRightY; +BSS s32 D_8010C950; +BSS Entity* TweesterTouchingPartner; +BSS UNK_FUN_PTR(InteractNotificationCallback); +BSS s32 PrevPlayerDirection; +BSS f32 JumpedOnSwitchX; +BSS s32 D_8010C964; +BSS s32 NpcHitQueryBehindCollider; +BSS s32 PeachDisguiseNpcIndex; +BSS s32 NpcHitQueryAheadY; +BSS s32 NpcHitQueryBehindLeftY; +BSS s32 NpcHitQueryColliderID; +BSS f32 JumpedOnSwitchZ; +BSS s32 PlayerRunStateTime; +BSS f32 D_8010C984; +BSS s32 D_8010C988; +BSS s32 NpcHitQueryAheadCollider; +BSS f32 PlayerNormalPitch; + +#endif diff --git a/src/bss/engine2_post_bss.c b/src/bss/engine2_post_bss.c new file mode 100644 index 0000000000..6de7124c47 --- /dev/null +++ b/src/bss/engine2_post_bss.c @@ -0,0 +1,39 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +#include "model.h" +#include "overlay.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +// from audio/ambience.c +typedef struct { + /* 0x0 */ s16 flags; + /* 0x2 */ s16 fadeState; + /* 0x4 */ s32 fadeTime; + /* 0x8 */ s32 soundID; + /* 0xC */ s32 unkC; +} AmbientSoundSettings; + +BSS MusicSettings gMusicSettings[2]; +BSS IMG_BIN D_80159B50[0x200]; +BSS Window gWindows[64]; +BSS CollisionStatus gCollisionStatus; +BSS HiddenPanelsData gCurrentHiddenPanels; +BSS s32 _PLS_NAME_ME[2]; +BSS TextureHandle TextureHandles[128]; +BSS ScreenOverlay ScreenOverlays[2]; +BSS AmbientSoundSettings AmbientSoundData; +BSS s32 CreateEntityVarArgBuffer[4]; +BSS PAL_BIN D_8015C7E0[0x10]; +#if VERSION_IQUE +BSS char D_8015C800[0x3C80]; +#elif VERSION_JP +BSS char D_8015C800[0x2880]; +#else +BSS char D_8015C800[0x7800]; +#endif +BSS DisplayContext D_80164000[2]; + +#endif diff --git a/src/bss/engine2_pre_bss.c b/src/bss/engine2_pre_bss.c new file mode 100644 index 0000000000..ed596a1162 --- /dev/null +++ b/src/bss/engine2_pre_bss.c @@ -0,0 +1,56 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +#include "model.h" +#include "hud_element.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +BSS SpriteShadingProfile* gAuxSpriteShadingProfile; +BSS s32 gHudElementsNumber; +BSS ModelCustomGfxBuilderList* gCurrentCustomModelGfxBuildersPtr; +BSS s32 D_801512BC; +BSS s32 entity_numEntities; +BSS s32 gEntityHeapBase; +BSS HudCacheEntry* gHudElementCacheTableRaster; +BSS ModelList* gCurrentModels; +BSS HudCacheEntry* gHudElementCacheTablePalette; +BSS s32 gAnimCount; +BSS s32 gMsgBGScrollAmtX; +BSS s32 D_801512DC; +BSS ModelTransformGroupList* gCurrentTransformGroups; +BSS u16 gMsgGlobalWaveCounter; +BSS ModelCustomGfxList* gCurrentCustomModelGfxPtr; +BSS s32 gLastCreatedEntityIndex; +BSS u8* gBackgroundTintModePtr; +BSS MessageImageData* gMsgVarImages[1]; +BSS s32 ItemEntitiesCreated; +BSS ModelNode** gCurrentModelTreeRoot; +BSS s32 gEntityHeapBottom; +BSS s32 D_80151304; +BSS u16 gCurrentRoomDoorSounds; +BSS s32 gMsgBGScrollAmtY; +BSS s32 gEntityHideMode; +BSS u8* gHudElementCacheBuffer; +BSS s32 gEntityModelCount; +BSS u8* D_8015131C; +BSS s32 D_80151320; +BSS s32 entity_numShadows; +BSS SpriteShadingProfile* gSpriteShadingProfile; +BSS s32 isAreaSpecificEntityDataLoaded; +BSS s32 entity_updateCounter; +BSS s16 gTriggerCount; +BSS Gfx* D_80151338; +BSS s32* gHudElementCacheSize; +BSS u16 gCurrentDoorSounds; +BSS s32 D_80151344; +#if VERSION_JP +BSS s32 D_80151348[4]; +#elif VERSION_PAL || VERSION_IQUE +BSS s32 D_80151348[8]; +#else +BSS s32 D_80151348[12]; +#endif + +#endif diff --git a/src/bss/main_post_bss.c b/src/bss/main_post_bss.c new file mode 100644 index 0000000000..2d1b7aed54 --- /dev/null +++ b/src/bss/main_post_bss.c @@ -0,0 +1,88 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +#include "PR/osint.h" +#include "PR/controller.h" +#include "nu/nusys.h" +#include "npc.h" +#include "effects.h" +#include "audio.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +// +// main segment COMMON/.scommon symbols +// + +#if VERSION_IQUE +BSS OSIoMesg __osFlashMsg OSALIGNED(8); +#endif +BSS char wMapTexName[0x18]; +BSS OSThread __osThreadSave; +BSS OSMesgQueue nuContWaitMesgQ; +BSS OSPifRam __osContPifRam BBALIGNED(16); +BSS EncounterStatus gCurrentEncounter; +BSS OSPiHandle __Dom2SpeedParam OSALIGNED(8); +BSS OSContStatus nuContStatus[NU_CONT_MAXCONTROLLERS]; +BSS OSThread D_800B1B90; +BSS NUContRmbCtl nuContRmbCtl[NU_CONT_MAXCONTROLLERS]; +#if VERSION_IQUE +BSS u32 __osFlashID[4] OSALIGNED(8); +#endif +BSS OSContPad nuContData[NU_CONT_MAXCONTROLLERS]; +BSS Camera gCameras[4] ALIGNED(16); +BSS unsigned char D_800B32E0[0x800] ALIGNED(16); +BSS unsigned char D_800B3AE0[0x800] ALIGNED(16); +BSS CollisionData gCollisionData; +BSS OSMesgQueue nuGfxMesgQ; +BSS OSPiHandle __CartRomHandle OSALIGNED(8); +BSS OSMesgQueue __osPiAccessQueue OSALIGNED(8); +BSS EffectInstance* gEffectInstances[96] ALIGNED(8); +BSS OSPiHandle __Dom1SpeedParam OSALIGNED(8); +BSS u8 nuBootStack[0x2000] ALIGNED(8); +BSS u64 nuMainStack[NU_SC_STACK_SIZE / sizeof(u64)]; +BSS u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE]; +BSS AuSynDriver auSynDriver; +BSS s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)] ALIGNED(16); +#if VERSION_IQUE +BSS OSPiHandle __osFlashHandler OSALIGNED(8); +#endif +BSS CollisionData gZoneCollisionData ALIGNED(8); +#if VERSION_JP || VERSION_IQUE +BSS char wMapHitName[0x14]; +#else +BSS char wMapHitName[0x18]; +#endif +BSS OSMesgQueue nuSiMgrMesgQ; +BSS OSTimer __osBaseTimer; +BSS char wMapShapeName[0x18]; +BSS ALHeap nuAuHeap; +#if VERSION_IQUE +BSS OSMesgQueue __osFlashMessageQ OSALIGNED(8); +#endif +BSS OSTimer __osEepromTimer; +BSS NUScTask nuGfxTask[NU_GFX_TASK_NUM]; +BSS SaveGlobals gSaveGlobals; +BSS char wMapBgName[0x14]; +BSS __OSInode __osPfsInodeCache OSALIGNED(8); +#if !VERSION_IQUE +BSS u8 rspbootUcodeBuffer[0x100] ALIGNED(16); +BSS char D_800D9880[0x700]; +#endif +BSS __OSEventState __osEventStateTab[OS_NUM_EVENTS]; +BSS OSPifRam __osPfsPifRam BBALIGNED(16); +BSS u64 D_800DA040[0x400 / sizeof(u64)]; +BSS NUSched nusched; +BSS OSMesgQueue __osEepromTimerQ OSALIGNED(8); +BSS OSPfs nuContPfs[NU_CONT_MAXCONTROLLERS]; +BSS OSMesgQueue nuSiMesgQ; +BSS OSMesgQueue D_800DAC90; +BSS OSMesgQueue __osSiAccessQueue OSALIGNED(8); +#ifdef BBPLAYER +BSS u8 __osBbFlashBuffer[0x80]; +#endif +BSS SaveData gCurrentSaveFile; +BSS OSMesgQueue nuContDataMutexQ; + +#endif diff --git a/src/bss/main_pre_bss.c b/src/bss/main_pre_bss.c new file mode 100644 index 0000000000..c52eb8f715 --- /dev/null +++ b/src/bss/main_pre_bss.c @@ -0,0 +1,89 @@ +#define NO_EXTERN_VARIABLES +#include "common.h" +#include "audio.h" +#include "model.h" +// DON'T DARE to put include headers here containing extern declarations... +// This will ruin the ordering of bss symbols below if you care about matching. + +#ifndef SHIFT + +// +// Main segment COMMON/.scommon symbols +// + +BSS u8 nuScPreNMIFlag; +BSS s32 D_8009A5B4; +BSS s32 D_8009A5B8; +BSS s32 D_8009A5BC; +#if VERSION_IQUE +BSS s32 __osFlashVersion; +#endif +BSS AuGlobals* gSoundGlobals; +BSS s32 D_8009A5C4; +BSS u32 __osBaseCounter; +BSS BGMPlayer* gBGMPlayerC; +BSS s32 gEncounterSubState; +#ifdef BBPLAYER +BSS u32 __osBbRCountWraps; +#endif +BSS void *CurrentSefCmdHandler; +BSS s32 timeFreezeMode; +#ifdef BBPLAYER +BSS u32 __osBbLastRCount; +#endif +BSS u16* nuGfxZBuffer; +BSS u32 nuContDataLockKey; +BSS u32 __osViIntrCount; +BSS AuCallback BeginSoundUpdateCallback; +BSS f32 D_8009A5EC; +BSS u32 nuGfxCfbCounter; +BSS ModelTreeInfoList* gCurrentModelTreeNodeInfo; +BSS u32 nuGfxDisplay; +BSS BGMPlayer* gBGMPlayerB; +BSS s32 gEncounterState; +BSS s16 gNpcCount; +BSS u8 __osMaxControllers; +#if VERSION_IQUE +BSS OSMesg __osFlashMsgBuf; +#endif +BSS OSTime __osCurrentTime; +BSS NUUcode* nuGfxUcode; +BSS u32 nuContNum; +#ifdef BBPLAYER +BSS u32 __osBbLastVCount; +#endif +BSS volatile u32 nuGfxTaskSpool; +BSS u8 __osContLastCmd; +BSS OSMesg __osEepromTimerMsg; +BSS s32 D_8009A624; +BSS AmbienceManager* gAuAmbienceManager; +BSS u32 __osTimerCounter; +BSS void (*nuIdleFunc)(void); +BSS s16 gCurrentCamID; +BSS OSPiHandle* nuPiCartHandle; +#ifdef BBPLAYER +BSS u32 __osBbVCountWraps; +#endif +BSS s8 D_8009A63C; +BSS SoundManager* gSoundManager; +BSS s32 D_8009A644; +BSS s32 D_8009A648; +BSS u16* nuGfxCfb_ptr; +BSS s32 gOverrideFlags; +BSS s8 HasPreBattleSongPushed; +BSS u16** nuGfxCfb; +BSS s32 D_8009A65C; +BSS u32 __osFinalrom; +BSS BGMPlayer* gBGMPlayerA; +BSS s16 gFirstStrikeMessagePos; +BSS Gfx* gMainGfxPos; +BSS s8 D_8009A670; +BSS DisplayContext* gDisplayContext; +BSS s32 D_8009A678; +BSS s32 D_8009A67C; +#if VERSION_IQUE +BSS s32 D_80099258[2]; +#endif +BSS u16* ResetFrameBufferArray; + +#endif diff --git a/src/cam_main.c b/src/cam_main.c index df9ac8dfcd..c56135aac4 100644 --- a/src/cam_main.c +++ b/src/cam_main.c @@ -8,12 +8,12 @@ void render_models(void); void execute_render_tasks(void); void render_item_entities(void); -SHIFT_BSS f32 D_8009A5EC; -SHIFT_BSS s16 gCurrentCamID; -SHIFT_BSS u16* nuGfxCfb_ptr; -SHIFT_BSS Gfx* gMainGfxPos; -SHIFT_BSS DisplayContext* gDisplayContext; -SHIFT_BSS Camera gCameras[4]; +f32 D_8009A5EC; +s16 gCurrentCamID; +u16* nuGfxCfb_ptr; +Gfx* gMainGfxPos; +DisplayContext* gDisplayContext; +Camera gCameras[4]; void update_cameras(void) { s32 i; diff --git a/src/cam_mode_zone_interp.c b/src/cam_mode_zone_interp.c index 90538af89f..0b390dd620 100644 --- a/src/cam_mode_zone_interp.c +++ b/src/cam_mode_zone_interp.c @@ -1,11 +1,11 @@ #include "common.h" -SHIFT_BSS CamConfiguration gCurrentCamConfiguration; -SHIFT_BSS f32 D_800A08DC; -SHIFT_BSS f32 D_800A08E0; -SHIFT_BSS f32 D_800A08E4; -SHIFT_BSS f32 D_800A08E8; -SHIFT_BSS f32 D_800A08EC; +BSS CamConfiguration gCurrentCamConfiguration; +BSS f32 D_800A08DC; +BSS f32 D_800A08E0; +BSS f32 D_800A08E4; +BSS f32 D_800A08E8; +BSS f32 D_800A08EC; void cam_interp_lookat_pos(Camera* camera, f32 arg1, f32 arg2, s16 arg3); void func_8003034C(Camera* camera); diff --git a/src/collision.c b/src/collision.c index bc4e86b88b..821104fb64 100644 --- a/src/collision.c +++ b/src/collision.c @@ -32,23 +32,24 @@ typedef struct HitAssetCollider { /* 0x08 */ s32 trianglesOffset; } HitAssetCollider; // size = 0x0C -SHIFT_BSS CollisionData gCollisionData; -SHIFT_BSS CollisionData gZoneCollisionData; -SHIFT_BSS f32 gCollisionRayStartX; -SHIFT_BSS f32 gCollisionRayStartY; -SHIFT_BSS f32 gCollisionRayStartZ; -SHIFT_BSS f32 gCollisionRayDirX; -SHIFT_BSS f32 gCollisionRayDirY; -SHIFT_BSS f32 gCollisionRayDirZ; -SHIFT_BSS f32 gCollisionPointX; -SHIFT_BSS f32 gCollisionPointY; -SHIFT_BSS f32 gCollisionPointZ; -SHIFT_BSS f32 gCollisionRayLength; -SHIFT_BSS f32 gCollisionNormalX; -SHIFT_BSS f32 gCollisionNormalY; -SHIFT_BSS f32 gCollisionNormalZ; -SHIFT_BSS ColliderBackupEntry* gCollisionDataBackup; -SHIFT_BSS ColliderBackupEntry* gCollisionDataZoneBackup; +CollisionData gCollisionData; +CollisionData gZoneCollisionData; + +BSS f32 gCollisionRayStartX; +BSS f32 gCollisionRayStartY; +BSS f32 gCollisionRayStartZ; +BSS f32 gCollisionRayDirX; +BSS f32 gCollisionRayDirY; +BSS f32 gCollisionRayDirZ; +BSS f32 gCollisionPointX; +BSS f32 gCollisionPointY; +BSS f32 gCollisionPointZ; +BSS f32 gCollisionRayLength; +BSS f32 gCollisionNormalX; +BSS f32 gCollisionNormalY; +BSS f32 gCollisionNormalZ; +BSS ColliderBackupEntry* gCollisionDataBackup; +BSS ColliderBackupEntry* gCollisionDataZoneBackup; extern Vec3s gEntityColliderFaces[]; extern Vec3f gEntityColliderNormals[]; diff --git a/src/crash_screen.c b/src/crash_screen.c index 6c6278d91f..55d04bb040 100644 --- a/src/crash_screen.c +++ b/src/crash_screen.c @@ -15,7 +15,7 @@ typedef struct { /* 0x9D2 */ u16 height; } CrashScreen; // size = 0x9D4 -SHIFT_BSS CrashScreen gCrashScreen; +BSS CrashScreen gCrashScreen; u8 gCrashScreencharToGlyph[128] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, diff --git a/src/curtains.c b/src/curtains.c index 34931dbfdc..8eceb13984 100644 --- a/src/curtains.c +++ b/src/curtains.c @@ -202,12 +202,12 @@ Gfx NoControllerGfx[] = { gsSPEndDisplayList(), }; -SHIFT_BSS Mtx D_8009BAA8[2]; -SHIFT_BSS f32 gCurtainScale; -SHIFT_BSS f32 gCurtainScaleGoal; -SHIFT_BSS f32 gCurtainFade; -SHIFT_BSS f32 gCurtainFadeGoal; -SHIFT_BSS UNK_FUN_PTR(gCurtainDrawCallback); +BSS f32 gCurtainScale; +BSS f32 gCurtainScaleGoal; +BSS f32 gCurtainFade; +BSS f32 gCurtainFadeGoal; +BSS UNK_FUN_PTR(gCurtainDrawCallback); +BSS Mtx D_8009BAA8[2]; void initialize_curtains(void) { gCurtainDrawCallback = NULL; diff --git a/src/draw_box.c b/src/draw_box.c index 141972cdcf..3602ab8363 100644 --- a/src/draw_box.c +++ b/src/draw_box.c @@ -13,7 +13,7 @@ typedef struct DefaultWindowStyle { } DefaultWindowStyle; // size = 0x0B #define BOX_QUAD_BUFFER_NUM 21 -SHIFT_BSS Vtx gBoxQuadBuffer[BOX_QUAD_BUFFER_NUM][16]; +BSS Vtx gBoxQuadBuffer[BOX_QUAD_BUFFER_NUM][16]; DefaultWindowStyle gBoxDefaultStyles[] = { { diff --git a/src/effects.c b/src/effects.c index 69b10fa969..900e55bbbe 100644 --- a/src/effects.c +++ b/src/effects.c @@ -5,8 +5,8 @@ typedef s32 TlbEntry[0x1000 / 4]; typedef TlbEntry TlbMappablePage[15]; -SHIFT_BSS EffectGraphics gEffectGraphicsData[15]; -SHIFT_BSS EffectInstance* gEffectInstances[96]; +BSS EffectGraphics gEffectGraphicsData[15]; +EffectInstance* gEffectInstances[96]; extern TlbMappablePage D_80197000; extern Addr D_801A6000; diff --git a/src/encounter.c b/src/encounter.c index 459f69985a..ef95f48633 100644 --- a/src/encounter.c +++ b/src/encounter.c @@ -168,21 +168,22 @@ EvtScript EnemyNpcDefeat = { End }; -SHIFT_BSS s32 gEncounterState; -SHIFT_BSS s32 gEncounterSubState; -SHIFT_BSS EncounterStatus gCurrentEncounter; -SHIFT_BSS s8 D_8009A63C; -SHIFT_BSS s8 HasPreBattleSongPushed; -SHIFT_BSS s16 gFirstStrikeMessagePos; -SHIFT_BSS s8 D_8009A670; -SHIFT_BSS s32 D_8009A678; -SHIFT_BSS s32 D_800A0BA0; -SHIFT_BSS f32 D_800A0BA4; -SHIFT_BSS Evt* D_800A0BB0; -SHIFT_BSS s32 D_800A0BB4; -SHIFT_BSS s16 D_800A0BB8; -SHIFT_BSS EffectInstance* WorldMerleeOrbEffect; -SHIFT_BSS EffectInstance* WorldMerleeWaveEffect; +s32 gEncounterState; +s32 gEncounterSubState; +EncounterStatus gCurrentEncounter; +s8 D_8009A63C; +s8 HasPreBattleSongPushed; +s16 gFirstStrikeMessagePos; +s8 D_8009A670; +s32 D_8009A678; + +BSS s32 D_800A0BA0; +BSS f32 D_800A0BA4; +BSS EffectInstance* WorldMerleeOrbEffect; +BSS EffectInstance* WorldMerleeWaveEffect; +BSS Evt* D_800A0BB0; +BSS s32 D_800A0BB4; +BSS s16 D_800A0BB8; void set_battle_formation(Battle*); void setup_status_bar_for_world(void); diff --git a/src/entity.c b/src/entity.c index 9ab7ee5867..5ba20bda6a 100644 --- a/src/entity.c +++ b/src/entity.c @@ -31,36 +31,38 @@ extern Addr entity_sbk_omo_ROM_START; s32 D_8014AFB0 = 255; -SHIFT_BSS s32 CreateEntityVarArgBuffer[4]; -SHIFT_BSS HiddenPanelsData gCurrentHiddenPanels; -SHIFT_BSS s32 gEntityHideMode; +s32 CreateEntityVarArgBuffer[4]; +HiddenPanelsData gCurrentHiddenPanels; +s32 gEntityHideMode; -SHIFT_BSS s32 D_801516FC; -SHIFT_BSS s32 D_801512BC; -SHIFT_BSS s32 D_80151304; -SHIFT_BSS s32 D_80151344; -SHIFT_BSS s32 entity_numEntities; -SHIFT_BSS s32 gEntityHeapBase; -SHIFT_BSS s32 gLastCreatedEntityIndex; +s32 D_801512BC; +s32 D_80151304; +s32 D_80151344; +s32 entity_numEntities; +s32 gEntityHeapBase; +s32 gLastCreatedEntityIndex; -SHIFT_BSS s32 gEntityHeapBottom; -SHIFT_BSS s32 entity_numShadows; -SHIFT_BSS s32 isAreaSpecificEntityDataLoaded; -SHIFT_BSS s32 entity_updateCounter; +s32 gEntityHeapBottom; +s32 entity_numShadows; +s32 isAreaSpecificEntityDataLoaded; +s32 entity_updateCounter; -SHIFT_BSS s32 wEntityDataLoadedSize; -SHIFT_BSS s32 bEntityDataLoadedSize; +BSS EntityList gWorldEntityList; +BSS EntityList gBattleEntityList; +BSS EntityList* gCurrentEntityListPtr; +BSS s32 D_80151474; +BSS ShadowList gWorldShadowList; +BSS ShadowList gBattleShadowList; +BSS ShadowList* gCurrentShadowListPtr; -SHIFT_BSS EntityBlueprint* wEntityBlueprint[30]; -SHIFT_BSS EntityBlueprint* bEntityBlueprint[4]; +BSS s32 wEntityDataLoadedSize; +BSS s32 bEntityDataLoadedSize; +BSS s32 D_80151664; -SHIFT_BSS EntityList gWorldEntityList; -SHIFT_BSS EntityList gBattleEntityList; -SHIFT_BSS EntityList* gCurrentEntityListPtr; - -SHIFT_BSS ShadowList gWorldShadowList; -SHIFT_BSS ShadowList gBattleShadowList; -SHIFT_BSS ShadowList* gCurrentShadowListPtr; +BSS EntityBlueprint* wEntityBlueprint[MAX_ENTITIES + 2]; +BSS EntityBlueprint* bEntityBlueprint[4]; +BSS s32 D_801516F8; +BSS s32 D_801516FC; extern Addr BattleEntityHeapBottom; // todo ??? diff --git a/src/entity_model.c b/src/entity_model.c index 6b5cf22928..e38ba822e1 100644 --- a/src/entity_model.c +++ b/src/entity_model.c @@ -7,19 +7,20 @@ EntityModelScript D_8014C260 = { }; Lights1 D_8014C268 = gdSPDefLights1(255, 255, 255, 0, 0, 0, 0, 0, 0); -SHIFT_BSS EntityModelList gWorldEntityModelList; -SHIFT_BSS EntityModelList gBattleEntityModelList; -SHIFT_BSS EntityModelList* gCurrentEntityModelList; -SHIFT_BSS s32 gEntityModelCount; +s32 gEntityModelCount; -SHIFT_BSS s32 D_80154374; -SHIFT_BSS s32 entity_fog_enabled; -SHIFT_BSS s32 entity_fog_red; -SHIFT_BSS s32 entity_fog_green; -SHIFT_BSS s32 entity_fog_blue; -SHIFT_BSS s32 entity_fog_alpha; -SHIFT_BSS s32 entity_fog_dist_min; -SHIFT_BSS s32 entity_fog_dist_max; +BSS EntityModelList gWorldEntityModelList; +BSS EntityModelList gBattleEntityModelList; +BSS EntityModelList* gCurrentEntityModelList; + +BSS s32 D_80154374; +BSS s32 entity_fog_enabled; +BSS s32 entity_fog_red; +BSS s32 entity_fog_green; +BSS s32 entity_fog_blue; +BSS s32 entity_fog_alpha; +BSS s32 entity_fog_dist_min; +BSS s32 entity_fog_dist_max; extern Gfx Gfx_RM1_SURFACE_OPA[]; extern Gfx Gfx_RM1_DECAL_OPA[]; diff --git a/src/evt/player_api.c b/src/evt/player_api.c index 2c7c27eb54..28e179a55d 100644 --- a/src/evt/player_api.c +++ b/src/evt/player_api.c @@ -4,8 +4,8 @@ #include "world/partners.h" #include "sprite/player.h" -SHIFT_BSS PlayerStatus gPlayerStatus; -SHIFT_BSS PlayerData gPlayerData; +extern PlayerStatus gPlayerStatus; +extern PlayerData gPlayerData; extern Npc playerNpcData; extern u16 PlayerImgFXFlags; diff --git a/src/fio.c b/src/fio.c index 8fdde87ec8..f383dd7eb5 100644 --- a/src/fio.c +++ b/src/fio.c @@ -10,12 +10,13 @@ typedef struct SaveInfo { #define GLOBALS_PAGE_1 6 #define GLOBALS_PAGE_2 7 -SHIFT_BSS SaveData FetchSaveBuffer; -SHIFT_BSS SaveInfo LogicalSaveInfo[4]; // 4 save slots presented to the player -SHIFT_BSS SaveInfo PhysicalSaveInfo[6]; // 6 saves as represented on the EEPROM -SHIFT_BSS s32 NextAvailablePhysicalSave; -SHIFT_BSS SaveGlobals gSaveGlobals; -SHIFT_BSS SaveData gCurrentSaveFile; +BSS SaveData FetchSaveBuffer; +BSS SaveInfo LogicalSaveInfo[4]; // 4 save slots presented to the player +BSS SaveInfo PhysicalSaveInfo[6]; // 6 saves as represented on the EEPROM +BSS s32 NextAvailablePhysicalSave; + +SaveGlobals gSaveGlobals; +SaveData gCurrentSaveFile; char MagicSaveString[] = "Mario Story 006"; diff --git a/src/game_modes.c b/src/game_modes.c index db9fa8e8ad..7fa75046ac 100644 --- a/src/game_modes.c +++ b/src/game_modes.c @@ -256,7 +256,7 @@ GameMode* gameModeMap[] = { [GAME_MODE_DEMO] (GameMode*) &GameModeDemo, }; -SHIFT_BSS s16 CurGameMode; +BSS s16 CurGameMode; void set_game_mode(s16 mode) { CurGameMode = mode; diff --git a/src/game_states.c b/src/game_states.c index 84413b496a..bb480eacf6 100644 --- a/src/game_states.c +++ b/src/game_states.c @@ -1,7 +1,8 @@ #include "common.h" #include "game_modes.h" -SHIFT_BSS GameMode gMainGameMode[2]; +BSS GameMode gMainGameMode[2]; +BSS s32 D_80151730[4]; // unused? or probably a part of GameMode? void mode_default_nop(void) { } diff --git a/src/hud_element.c b/src/hud_element.c index ee0ab4dfb7..2d263e5be0 100644 --- a/src/hud_element.c +++ b/src/hud_element.c @@ -100,23 +100,26 @@ Vtx D_8014F0C8[] = { Lights1 HudElementLights = gdSPDefLights1(255, 255, 255, 0, 0, 0, 0, 0, 0); -SHIFT_BSS s32 gHudElementsNumber; -SHIFT_BSS s32 D_80159180; -SHIFT_BSS HudElementList* gHudElements; -SHIFT_BSS HudElementList gHudElementsWorld; -SHIFT_BSS HudElementList gHudElementsBattle; -SHIFT_BSS s32* gHudElementCacheSize; -SHIFT_BSS s32 gHudElementCacheSizeWorld; -SHIFT_BSS s32 gHudElementCacheSizeBattle; -SHIFT_BSS HudCacheEntry* gHudElementCacheTableRaster; -SHIFT_BSS HudCacheEntry* gHudElementCacheTablePalette; -SHIFT_BSS HudCacheEntry gHudElementCacheTableRasterWorld[192]; -SHIFT_BSS HudCacheEntry gHudElementCacheTablePaletteWorld[192]; -SHIFT_BSS HudCacheEntry gHudElementCacheTableRasterBattle[192]; -SHIFT_BSS HudCacheEntry gHudElementCacheTablePaletteBattle[192]; -SHIFT_BSS u8* gHudElementCacheBufferWorld; -SHIFT_BSS u8* gHudElementCacheBufferBattle; -SHIFT_BSS u8* gHudElementCacheBuffer; +s32 gHudElementsNumber; +HudCacheEntry* gHudElementCacheTableRaster; +HudCacheEntry* gHudElementCacheTablePalette; +s32* gHudElementCacheSize; +u8* gHudElementCacheBuffer; + +BSS HudElementList gHudElementsWorld; +BSS HudElementList gHudElementsBattle; +BSS HudElementList* gHudElements; +BSS u8* gHudElementCacheBufferWorld; +BSS s32 gHudElementCacheSizeWorld; +BSS s32 D_8015796C; +BSS HudCacheEntry gHudElementCacheTableRasterWorld[192]; +BSS HudCacheEntry gHudElementCacheTablePaletteWorld[192]; +BSS u8* gHudElementCacheBufferBattle; +BSS s32 gHudElementCacheSizeBattle; +BSS s32 D_80158578[2]; +BSS HudCacheEntry gHudElementCacheTableRasterBattle[192]; +BSS HudCacheEntry gHudElementCacheTablePaletteBattle[192]; +BSS s32 D_80159180; void func_801413F8(void); diff --git a/src/imgfx.c b/src/imgfx.c index cd5f7b045e..64bab44e8f 100644 --- a/src/imgfx.c +++ b/src/imgfx.c @@ -113,16 +113,18 @@ typedef ImgFXState ImgFXInstanceList[MAX_IMGFX_INSTANCES]; extern HeapNode heap_spriteHead; -SHIFT_BSS ImgFXWorkingTexture ImgFXCurrentTexture; -SHIFT_BSS Vtx* ImgFXVtxBuffers[2]; -SHIFT_BSS Vtx* imgfx_vtxBuf; -SHIFT_BSS ImgFXInstanceList* ImgFXInstances; -SHIFT_BSS s8 D_80156958[2]; -SHIFT_BSS s32 D_80156960[2]; -SHIFT_BSS s32 D_80156968[2]; -SHIFT_BSS s8 D_80156970; -SHIFT_BSS ImgFXAnimHeader ImgFXAnimHeaders[MAX_IMGFX_INSTANCES]; -SHIFT_BSS ImgFXCacheEntry ImgFXDataCache[8]; +BSS ImgFXWorkingTexture ImgFXCurrentTexture; +BSS Vtx* ImgFXVtxBuffers[2]; +BSS Vtx* imgfx_vtxBuf; +BSS ImgFXInstanceList* ImgFXInstances; +BSS s8 D_80156958[2]; +BSS s32 D_8015695C; +BSS s32 D_80156960[2]; +BSS s32 D_80156968[2]; +BSS s8 D_80156970; +BSS s32 D_80156974[3]; +BSS ImgFXAnimHeader ImgFXAnimHeaders[MAX_IMGFX_INSTANCES]; +BSS ImgFXCacheEntry ImgFXDataCache[8]; // Data ImgFXWorkingTexture* ImgFXCurrentTexturePtr = &ImgFXCurrentTexture; diff --git a/src/input.c b/src/input.c index 07e5396301..2886b480e7 100644 --- a/src/input.c +++ b/src/input.c @@ -1,11 +1,12 @@ #include "common.h" #include "nu/nusys.h" -SHIFT_BSS OSContPad D_8009A5B8; -SHIFT_BSS s16 D_8009A6A0; -SHIFT_BSS s16 D_8009A6A2; -SHIFT_BSS s16 D_8009A6A4; -SHIFT_BSS s16 D_8009A6A6; +OSContPad D_8009A5B8; +BSS s16 D_8009A6A0; +BSS s16 D_8009A6A2; +BSS s16 D_8009A6A4; +BSS s16 D_8009A6A6; +BSS s32 D_8009A6A8; // unused void func_800287F0(void) { gGameStatusPtr->curButtons[0] = 0; diff --git a/src/inventory.c b/src/inventory.c index b3cde7f314..49819b56f2 100644 --- a/src/inventory.c +++ b/src/inventory.c @@ -11,11 +11,8 @@ enum BlinkModes { BSS b16 D_8010CD10; BSS b16 D_8010CD12; -BSS char D_8010CD14[0xA]; -BSS s32 D_8010CD20; -BSS char D_8010CD24[0xC]; -SHIFT_BSS StatusBar gStatusBar; +StatusBar gStatusBar; extern HudScript* TimesHudScript; extern HudScript* SPIncrementHudScripts[]; diff --git a/src/item_entity.c b/src/item_entity.c index e69371135f..6f2ce3c859 100644 --- a/src/item_entity.c +++ b/src/item_entity.c @@ -25,29 +25,32 @@ extern HudCacheEntry* gHudElementCacheTablePalette; extern u8* gHudElementCacheBuffer; extern s32* gHudElementCacheSize; -SHIFT_BSS s32 ItemEntitiesCreated; -SHIFT_BSS s32 UnusedItemPhysicsScriptID; -SHIFT_BSS s32 ItemEntityAlternatingSpawn; -SHIFT_BSS s32 ItemEntityRenderGroup; -SHIFT_BSS s16 CoinSparkleCenterX; -SHIFT_BSS s16 CoinSparkleCenterY; -SHIFT_BSS s16 CoinSparkleCenterZ; -SHIFT_BSS ItemEntity* WorldItemEntities[MAX_ITEM_ENTITIES]; -SHIFT_BSS ItemEntity* BattleItemEntities[MAX_ITEM_ENTITIES]; -SHIFT_BSS ItemEntity** gCurrentItemEntities; -SHIFT_BSS s16 isPickingUpItem; -SHIFT_BSS s16 ItemSpawnWithinPlayerPickupDelay; +s32 ItemEntitiesCreated; + +BSS s32 UnusedItemPhysicsScriptID; +BSS s32 ItemEntityAlternatingSpawn; +BSS s32 ItemEntityRenderGroup; +BSS s16 CoinSparkleCenterX; +BSS s16 CoinSparkleCenterY; +BSS s16 CoinSparkleCenterZ; +BSS s32 pad_ItemEntity[3]; +BSS ItemEntity* WorldItemEntities[MAX_ITEM_ENTITIES]; +BSS ItemEntity* BattleItemEntities[MAX_ITEM_ENTITIES]; +BSS ItemEntity** gCurrentItemEntities; +BSS s16 isPickingUpItem; +BSS s16 ItemSpawnWithinPlayerPickupDelay; #if !VERSION_JP -SHIFT_BSS s16 D_801565A8; +BSS s16 D_801565A8; +BSS s32 D_801565AC; #endif -SHIFT_BSS PopupMenu ItemPickupMenu; -SHIFT_BSS s32 ItemPickupIconID; -SHIFT_BSS s32 ItemPickupStateDelay; -SHIFT_BSS s32 ThrowAwayMenuIdx; -SHIFT_BSS s32 ThrowAwayItemID; -SHIFT_BSS EffectInstance* ItemPickupGotOutline; -SHIFT_BSS MessagePrintState* GotItemTutorialPrinter; -SHIFT_BSS b32 GotItemTutorialClosed; +BSS PopupMenu ItemPickupMenu; +BSS s32 ItemPickupIconID; +BSS s32 ItemPickupStateDelay; +BSS s32 ThrowAwayMenuIdx; +BSS s32 ThrowAwayItemID; +BSS EffectInstance* ItemPickupGotOutline; +BSS MessagePrintState* GotItemTutorialPrinter; +BSS b32 GotItemTutorialClosed; void item_entity_update(ItemEntity*); void appendGfx_item_entity(void*); diff --git a/src/main.c b/src/main.c index 972d05c34b..d623211f86 100644 --- a/src/main.c +++ b/src/main.c @@ -1,94 +1,14 @@ #include "common.h" #include "nu/nusys.h" -// -// Start of libultra BSS -// - -#include "PR/controller.h" -#include "PR/osint.h" -SHIFT_BSS OSPifRam __osEepPifRam; -SHIFT_BSS __OSEventState __osEventStateTab[OS_NUM_EVENTS]; -SHIFT_BSS OSPifRam __MotorDataBuf[MAXCONTROLLERS]; -SHIFT_BSS u16 retrace; -SHIFT_BSS OSThread viThread; -SHIFT_BSS unsigned char viThreadStack[OS_VIM_STACKSIZE] ALIGNED(16); -SHIFT_BSS char piThreadStack[OS_PIM_STACKSIZE] ALIGNED(16); -SHIFT_BSS OSMesgQueue viEventQueue; -SHIFT_BSS OSMesg viEventBuf[5] ALIGNED(8); -SHIFT_BSS OSIoMesg viRetraceMsg ALIGNED(8); -SHIFT_BSS OSIoMesg viCounterMsg ALIGNED(8); -SHIFT_BSS OSTask tmp_task; -SHIFT_BSS OSMesg piAccessBuf[1] ALIGNED(16); -SHIFT_BSS OSMesgQueue __osPiAccessQueue; -SHIFT_BSS OSThread piThread; -SHIFT_BSS OSMesgQueue piEventQueue; -SHIFT_BSS OSMesg piEventBuf[1]; -SHIFT_BSS OSContStatus nuContStatus[5]; // ??? enough space for 5, but it makes no sense -SHIFT_BSS OSMesgQueue nuSiMesgQ; -SHIFT_BSS u32 nuContDataLockKey; -SHIFT_BSS OSMesg nuContWaitMesgBuf; -SHIFT_BSS OSMesg nuContDataMutexBuf; -SHIFT_BSS OSMesgQueue nuContDataMutexQ ALIGNED(16); -SHIFT_BSS OSMesgQueue nuContWaitMesgQ; -SHIFT_BSS OSContPad nuContData[4]; -SHIFT_BSS u32 nuContNum; -SHIFT_BSS volatile u32 nuGfxTaskSpool; -SHIFT_BSS OSMesgQueue nuGfxMesgQ; -SHIFT_BSS char GfxStack[NU_GFX_STACK_SIZE] ALIGNED(16); -SHIFT_BSS OSThread D_800B1B90; -SHIFT_BSS OSMesg nuGfxMesgBuf[NU_GFX_MESGS]; -SHIFT_BSS OSPiHandle* nuPiCartHandle; -SHIFT_BSS NUContRmbCtl nuContRmbCtl[4]; -SHIFT_BSS OSPfs nuContPfs[4]; -SHIFT_BSS NUUcode* nuGfxUcode; -SHIFT_BSS OSMesgQueue D_800AC5D0; -SHIFT_BSS OSMesg D_800AC5E8[NU_PI_MESG_NUM]; -SHIFT_BSS u32 nuGfxDisplay; -SHIFT_BSS u32 nuGfxCfbCounter; -SHIFT_BSS NUSched nusched; -SHIFT_BSS u8 nuScPreNMIFlag; -SHIFT_BSS u64 nuScStack[NU_SC_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS u64 nuScAudioStack[NU_SC_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS u64 nuScGraphicsStack[NU_SC_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS NUIdleFunc nuIdleFunc; -SHIFT_BSS OSMesgQueue nuSiMgrMesgQ; -SHIFT_BSS OSMesg nuSiMesgBuf[8]; -SHIFT_BSS OSThread siMgrThread; -SHIFT_BSS u64 siMgrStack[NU_SI_STACK_SIZE/sizeof(u64)]; -SHIFT_BSS OSMesg D_8009E6D0[NU_GFX_TASKMGR_MESGS]; -SHIFT_BSS OSMesgQueue D_800DAC90; -SHIFT_BSS NUScTask* nuGfxTask_ptr; -SHIFT_BSS s16 taskDoneMsg; -SHIFT_BSS s16 swapBufMsg; -SHIFT_BSS OSThread GfxTaskMgrThread; -SHIFT_BSS NUScTask nuGfxTask[NU_GFX_TASK_NUM]; -SHIFT_BSS u64 D_800DA040[0x400 / sizeof(u64)]; -SHIFT_BSS s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)]; -SHIFT_BSS u64 GfxTaskMgrStack[NU_GFX_TASKMGR_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS u8 nuYieldBuf[0xC10] ALIGNED(16); -SHIFT_BSS OSMesg siAccessBuf[1] ALIGNED(8); -SHIFT_BSS OSMesgQueue __osSiAccessQueue; -SHIFT_BSS OSThread __osThreadSave; - -// boot.s -SHIFT_BSS u8 nuBootStack[0x2000] ALIGNED(8); - -//osFlash.c (IDO) -SHIFT_BSS u32 __osFlashID[4]; -SHIFT_BSS OSIoMesg __osFlashMsg; -SHIFT_BSS OSMesgQueue __osFlashMessageQ; -SHIFT_BSS OSPiHandle __osFlashHandler; -SHIFT_BSS OSMesg __osFlashMsgBuf; -SHIFT_BSS s32 __osFlashVersion; - -// -// End of libultra BSS -// +// TODO move these somewhere else... +u8 nuYieldBuf[NU_GFX_YIELD_BUF_SIZE]; +OSThread __osThreadSave; +u8 nuBootStack[0x2000] ALIGNED(8); // used in effects/gfx/flame.c -SHIFT_BSS unsigned char D_800B32E0[0x800] ALIGNED(16); -SHIFT_BSS unsigned char D_800B3AE0[0x800] ALIGNED(16); +unsigned char D_800B32E0[0x800] ALIGNED(16); +unsigned char D_800B3AE0[0x800] ALIGNED(16); s16 D_80074010 = 8; // might be an array, could be size 1-8 @@ -120,8 +40,8 @@ extern IMG_BIN ResetTilesImg[]; #define shim_load_engine_data_obfuscated load_engine_data #endif -SHIFT_BSS u16* ResetFrameBufferArray; -SHIFT_BSS u16* nuGfxZBuffer; +u16* ResetFrameBufferArray; +u16* nuGfxZBuffer; void boot_main(void* data) { #if VERSION_JP diff --git a/src/main_loop.c b/src/main_loop.c index 3ad3c51faf..b231f69ee3 100644 --- a/src/main_loop.c +++ b/src/main_loop.c @@ -6,11 +6,12 @@ #include "overlay.h" #include "game_modes.h" -SHIFT_BSS s32 gOverrideFlags; -SHIFT_BSS s32 timeFreezeMode; -SHIFT_BSS u16** nuGfxCfb; -SHIFT_BSS s16 SoftResetDelay; -SHIFT_BSS DisplayContext D_80164000[2]; +s32 gOverrideFlags; +s32 timeFreezeMode; +u16** nuGfxCfb; +BSS s16 SoftResetDelay; + +DisplayContext D_80164000[2]; s8 gGameStepDelayAmount = 1; s8 gGameStepDelayCount = 5; diff --git a/src/model.c b/src/model.c index ef5b1065b7..d88b52a475 100644 --- a/src/model.c +++ b/src/model.c @@ -94,9 +94,9 @@ enum { #define WORLD_TEXTURE_MEMORY_SIZE 0x20000 #define BATTLE_TEXTURE_MEMORY_SIZE 0x8000 -SHIFT_BSS u8* gBackgroundTintModePtr; // NOTE: the type for this u8 is TintMode, as shown in SetModelTintMode -SHIFT_BSS ModelList* gCurrentModels; -SHIFT_BSS ModelTreeInfoList* gCurrentModelTreeNodeInfo; +u8* gBackgroundTintModePtr; // NOTE: the type for this u8 is TintMode, as shown in SetModelTintMode +ModelList* gCurrentModels; +ModelTreeInfoList* gCurrentModelTreeNodeInfo; extern Addr TextureHeap; @@ -1298,56 +1298,60 @@ s32 RenderTaskBasePriorities[] = { b8 D_8014C248 = FALSE; // possibly a 'warm-up done' flag for boot. never read. -SHIFT_BSS ModelCustomGfxBuilderList* gCurrentCustomModelGfxBuildersPtr; -SHIFT_BSS ModelNode** gCurrentModelTreeRoot; -SHIFT_BSS ModelTransformGroupList* gCurrentTransformGroups; -SHIFT_BSS ModelCustomGfxList* gCurrentCustomModelGfxPtr; +ModelCustomGfxBuilderList* gCurrentCustomModelGfxBuildersPtr; +ModelNode** gCurrentModelTreeRoot; +ModelTransformGroupList* gCurrentTransformGroups; +ModelCustomGfxList* gCurrentCustomModelGfxPtr; -SHIFT_BSS TextureHeader gCurrentTextureHeader ALIGNED(16); +BSS TextureHeader gCurrentTextureHeader ALIGNED(16); -SHIFT_BSS ModelList wModelList; -SHIFT_BSS ModelList bModelList; +BSS ModelList wModelList; +BSS ModelList bModelList; -SHIFT_BSS ModelTransformGroupList wTransformGroups; -SHIFT_BSS ModelTransformGroupList bTransformGroups; +BSS ModelTransformGroupList wTransformGroups; +BSS ModelTransformGroupList bTransformGroups; -SHIFT_BSS ModelCustomGfxList wCustomModelGfx; -SHIFT_BSS ModelCustomGfxList bCustomModelGfx; +BSS ModelCustomGfxList wCustomModelGfx; +BSS ModelCustomGfxList bCustomModelGfx; -SHIFT_BSS ModelCustomGfxBuilderList wCustomModelGfxBuilders; -SHIFT_BSS ModelCustomGfxBuilderList bCustomModelGfxBuilders; -SHIFT_BSS ModelLocalVertexCopyList wModelLocalVtxBuffers; -SHIFT_BSS ModelLocalVertexCopyList bModelLocalVtxBuffers; -SHIFT_BSS ModelLocalVertexCopyList* gCurrentModelLocalVtxBuffers; +BSS ModelCustomGfxBuilderList wCustomModelGfxBuilders; +BSS ModelCustomGfxBuilderList bCustomModelGfxBuilders; +BSS ModelLocalVertexCopyList wModelLocalVtxBuffers; +BSS ModelLocalVertexCopyList bModelLocalVtxBuffers; +BSS ModelLocalVertexCopyList* gCurrentModelLocalVtxBuffers; -SHIFT_BSS ModelNode* wModelTreeRoot; -SHIFT_BSS ModelNode* bModelTreeRoot; -SHIFT_BSS ModelTreeInfoList wModelTreeNodeInfo; -SHIFT_BSS ModelTreeInfoList bModelTreeNodeInfo; +BSS ModelNode* wModelTreeRoot; +BSS ModelNode* bModelTreeRoot; +BSS s32 D_8015221C; +BSS ModelTreeInfoList wModelTreeNodeInfo; +BSS ModelTreeInfoList bModelTreeNodeInfo; -SHIFT_BSS s8 wBackgroundTintMode; -SHIFT_BSS s8 bBackgroundTintMode; -SHIFT_BSS s32 TreeIterPos; -SHIFT_BSS FogSettings wFogSettings; -SHIFT_BSS FogSettings bFogSettings; -SHIFT_BSS FogSettings* gFogSettings; -SHIFT_BSS s32 texPannerMainU[MAX_TEX_PANNERS]; -SHIFT_BSS s32 texPannerMainV[MAX_TEX_PANNERS]; -SHIFT_BSS s32 texPannerAuxU[MAX_TEX_PANNERS]; -SHIFT_BSS s32 texPannerAuxV[MAX_TEX_PANNERS]; -SHIFT_BSS void* TextureHeapPos; -SHIFT_BSS u16 mtg_IterIdx; -SHIFT_BSS ModelNode* mtg_FoundModelNode; -SHIFT_BSS u16 mtg_MinChild; -SHIFT_BSS u16 mtg_MaxChild; -SHIFT_BSS u16 mtg_SearchModelID; -SHIFT_BSS RenderTask* RenderTaskLists[3]; -SHIFT_BSS s32 RenderTaskListIdx; -SHIFT_BSS s32 RenderTaskCount; +BSS s8 wBackgroundTintMode; +BSS s8 bBackgroundTintMode; +BSS s8 D_80153222; +BSS s8 D_80153223; +BSS s32 TreeIterPos; +BSS FogSettings wFogSettings; +BSS s32 D_80153244; +BSS FogSettings bFogSettings; +BSS FogSettings* gFogSettings; +BSS s32 texPannerMainU[MAX_TEX_PANNERS]; +BSS s32 texPannerMainV[MAX_TEX_PANNERS]; +BSS s32 texPannerAuxU[MAX_TEX_PANNERS]; +BSS s32 texPannerAuxV[MAX_TEX_PANNERS]; +BSS void* TextureHeapPos; +BSS u16 mtg_IterIdx; +BSS u16 mtg_SearchModelID; +BSS ModelNode* mtg_FoundModelNode; +BSS u16 mtg_MinChild; +BSS u16 mtg_MaxChild; +BSS s32 D_80153378[2]; +BSS u16 DepthCopyBuffer[16]; +BSS RenderTask* RenderTaskLists[3]; +BSS s32 RenderTaskListIdx; +BSS s32 RenderTaskCount; -SHIFT_BSS TextureHandle TextureHandles[128]; - -SHIFT_BSS u16 DepthCopyBuffer[16]; +TextureHandle TextureHandles[128]; extern Addr BattleEntityHeapBottom; // todo ??? @@ -1360,8 +1364,6 @@ void load_model_transforms(ModelNode* model, ModelNode* parent, Matrix4f mdlTxMt s32 is_identity_fixed_mtx(Mtx* mtx); void build_custom_gfx(void); -MATCHING_BSS(0x3A0); - void appendGfx_model(void* data) { Model* model = data; s32 mtxPushMode; diff --git a/src/msg.c b/src/msg.c index 1e027a30e0..d6be4901e6 100644 --- a/src/msg.c +++ b/src/msg.c @@ -55,12 +55,11 @@ void* D_PAL_8014AE50[] = { s16 gNextMessageBuffer = 0; -//TODO Vtx -ALIGNED(8) s32 gRewindArrowQuad[] = { - 0xFFF00009, 0x00000000, 0x00000000, 0xFFFFFFFF, - 0x00100009, 0x00000000, 0x04000000, 0xFFFFFFFF, - 0xFFF0FFF7, 0x00000000, 0x00000240, 0xFFFFFFFF, - 0x0010FFF7, 0x00000000, 0x04000240, 0xFFFFFFFF, +Vtx gRewindArrowQuad[] = { + { .v = { .ob = { 0xFFF0, 0x0009, 0x0000 }, .tc = { 0x0000, 0x0000 }, .cn = { 0xFF, 0xFF, 0xFF, 0xFF }}}, + { .v = { .ob = { 0x0010, 0x0009, 0x0000 }, .tc = { 0x0400, 0x0000 }, .cn = { 0xFF, 0xFF, 0xFF, 0xFF }}}, + { .v = { .ob = { 0xFFF0, 0xFFF7, 0x0000 }, .tc = { 0x0000, 0x0240 }, .cn = { 0xFF, 0xFF, 0xFF, 0xFF }}}, + { .v = { .ob = { 0x0010, 0xFFF7, 0x0000 }, .tc = { 0x0400, 0x0240 }, .cn = { 0xFF, 0xFF, 0xFF, 0xFF }}}, }; Gfx D_8014C2D8[] = { @@ -80,58 +79,37 @@ Gfx D_8014C2D8[] = { gsSPEndDisplayList(), }; -SHIFT_BSS s32 gMsgBGScrollAmtX; -SHIFT_BSS u16 gMsgGlobalWaveCounter; -SHIFT_BSS MessageImageDataList gMsgVarImages; -SHIFT_BSS s32 gMsgBGScrollAmtY; -SHIFT_BSS u8* D_8015131C; -SHIFT_BSS Gfx* D_80151338; -SHIFT_BSS char gMessageBuffers[2][1024]; -SHIFT_BSS u8 gMessageMsgVars[3][32]; -SHIFT_BSS s16 D_80155C98; -SHIFT_BSS Mtx gMessageWindowProjMatrix[2]; -SHIFT_BSS MessageDrawState D_80155D20; -SHIFT_BSS MessageDrawState* msg_drawState; -SHIFT_BSS IMG_BIN D_80159B50[0x200]; -SHIFT_BSS PAL_BIN D_8015C7E0[0x10]; -SHIFT_BSS MessagePrintState gMessagePrinters[3]; -#if VERSION_IQUE -SHIFT_BSS IMG_BIN D_801544A0[120][128]; +s32 gMsgBGScrollAmtX; +u16 gMsgGlobalWaveCounter; +MessageImageDataList gMsgVarImages; +s32 gMsgBGScrollAmtY; +u8* D_8015131C; +Gfx* D_80151338; + +static char gMessageBuffers[2][1024]; +static MessagePrintState gMessagePrinters[3]; +#if VERSION_JP +static s32 D_80155C38; #endif +static u8 gMessageMsgVars[3][32]; +static s16 D_80155C98; +static Mtx gMessageWindowProjMatrix[2]; + +IMG_BIN D_80159B50[0x200]; +PAL_BIN D_8015C7E0[0x10]; extern s16 MsgStyleVerticalLineOffsets[]; -extern IMG_BIN ui_msg_bubble_left_png[]; -extern IMG_BIN ui_msg_bubble_mid_png[]; -extern IMG_BIN ui_msg_bubble_right_png[]; -extern IMG_BIN ui_msg_arrow_png[]; -extern unsigned char ui_msg_palettes[16][32]; -extern IMG_BIN ui_msg_sign_corner_topleft_png[]; -extern IMG_BIN ui_msg_sign_corner_topright_png[]; -extern IMG_BIN ui_msg_sign_corner_bottomleft_png[]; -extern IMG_BIN ui_msg_sign_corner_bottomright_png[]; -extern IMG_BIN ui_msg_lamppost_corner_bottomright_png[]; -extern IMG_BIN ui_msg_sign_side_top_png[]; -extern IMG_BIN ui_msg_sign_side_left_png[]; -extern IMG_BIN ui_msg_sign_side_right_png[]; -extern IMG_BIN ui_msg_sign_side_bottom_png[]; -extern IMG_BIN ui_msg_sign_fill_png[]; -extern PAL_BIN ui_msg_sign_pal[]; -extern PAL_BIN ui_msg_lamppost_pal[]; -extern IMG_BIN ui_msg_background_png[]; extern IMG_BIN ui_msg_rewind_arrow_png[]; extern PAL_BIN ui_msg_rewind_arrow_pal[]; extern IMG_BIN ui_msg_star_png[]; extern IMG_BIN ui_msg_star_silhouette_png[]; -extern IMG_BIN D_802ED550[]; -extern PAL_BIN D_802ED670[]; extern IMG_BIN MsgCharImgTitle[]; extern IMG_BIN MsgCharImgNormal[]; extern MessageCharset* MsgCharsets[5]; extern IMG_BIN MsgCharImgSubtitle[]; extern PAL_BIN D_802F4560[80][8]; - #if VERSION_JP extern IMG_BIN MsgCharImgKana[]; extern IMG_BIN MsgCharImgLatin[]; @@ -139,8 +117,6 @@ extern IMG_BIN MsgCharImgMenuKana[]; extern IMG_BIN MsgCharImgMenuLatin[]; #endif -extern s32 gMessageBoxFrameParts[2][16]; - extern IMG_BIN ui_point_right_png[]; extern PAL_BIN ui_point_right_pal[]; @@ -206,15 +182,6 @@ void msg_draw_rewind_arrow(s32); void msg_draw_choice_pointer(MessagePrintState* printer); void draw_message_window(MessagePrintState* printer); void appendGfx_message(MessagePrintState*, s16, s16, u16, u16, u16, u8); -void appendGfx_msg_prim_rect(u8 r, u8 g, u8 b, u8 a, u16 ulX, u16 ulY, u16 lrX, u16 lrY); -void msg_reset_gfx_state(void); -void msg_draw_char(MessagePrintState* printer, MessageDrawState* drawState, s32 charIndex, s32 palette, s32 posX, - s32 posY); -void msg_draw_prim_rect(u8 r, u8 g, u8 b, u8 a, u16 posX, u16 posY, u16 sizeX, u16 sizeY); -void msg_draw_speech_arrow(MessagePrintState* printer); -void msg_draw_frame(s32 posX, s32 posY, s32 sizeX, s32 sizeY, s32 style, s32 palette, s32 fading, s32 bgAlpha, s32 frameAlpha); -void msg_draw_speech_bubble(MessagePrintState* printer, s16 posX, s16 posY, s16 straightWidth, s16 curveWidth, - s16 height, f32 scaleX, f32 scaleY, u8 opacity, s32 arg9); void clear_character_set(void) { D_80155C98 = -1; @@ -2001,10 +1968,6 @@ void get_msg_properties(s32 msgID, s32* height, s32* width, s32* maxLineChars, s } } -#if !VERSION_JP -static const f32 padding = 0.0f; -#endif - s32 get_msg_width(s32 msgID, u16 charset) { s32 width; diff --git a/src/msg_draw.c b/src/msg_draw.c index b36df2b671..f70c12e2eb 100644 --- a/src/msg_draw.c +++ b/src/msg_draw.c @@ -24,12 +24,7 @@ extern IMG_BIN ui_msg_sign_fill_png[]; extern PAL_BIN ui_msg_sign_pal[]; extern PAL_BIN ui_msg_lamppost_pal[]; extern IMG_BIN ui_msg_background_png[]; -extern IMG_BIN ui_msg_rewind_arrow_png[]; -extern PAL_BIN ui_msg_rewind_arrow_pal[]; -extern IMG_BIN ui_msg_star_png[]; -extern IMG_BIN ui_msg_star_silhouette_png[]; -// .bss typedef MessageImageData* MessageImageDataList[1]; extern s32 gMsgBGScrollAmtX; @@ -38,30 +33,23 @@ extern MessageImageDataList gMsgVarImages; extern s32 gMsgBGScrollAmtY; extern u8* D_8015131C; extern Gfx* D_80151338; -extern char gMessageBuffers[2][1024]; -extern u8 gMessageMsgVars[3][32]; -extern s16 D_80155C98; -extern Mtx gMessageWindowProjMatrix[2]; -extern MessageDrawState D_80155D20; -extern MessageDrawState* msg_drawState; extern IMG_BIN D_80159B50[0x200]; extern PAL_BIN D_8015C7E0[0x10]; -extern MessagePrintState gMessagePrinters[3]; -#if VERSION_IQUE -extern IMG_BIN D_801544A0[120][128]; + +#if !VERSION_JP +extern s16 MsgStyleVerticalLineOffsets[]; #endif -extern s16 MsgStyleVerticalLineOffsets[]; - -extern IMG_BIN D_802ED550[]; -extern PAL_BIN D_802ED670[]; -extern IMG_BIN MsgCharImgTitle[]; -extern IMG_BIN MsgCharImgNormal[]; extern MessageCharset* MsgCharsets[5]; -extern IMG_BIN MsgCharImgSubtitle[]; extern PAL_BIN D_802F4560[80][8]; extern s32 gMessageBoxFrameParts[2][16]; +#if VERSION_IQUE +static IMG_BIN D_801544A0[120][128]; +#endif +static MessageDrawState D_80155D20; +static MessageDrawState* msg_drawState; + Vtx gMsgSpeechBoxLQuad[4] = { { .v = { .ob = {1, 0, 0}, .tc = {0, 0}, .cn = {255, 255, 248, 255} } }, { .v = { .ob = {0x20, 0, 0}, .tc = {0x400, 0}, .cn = {255, 255, 248, 255} } }, @@ -120,21 +108,8 @@ u8 D_8014C580[] = { 50, 80, 100, 105, 100, 0, 0, 0 }; u8 D_8014C588[] = { 105, 100, 77, 57, 40, 27, 16, 8, 3, 0, 0, 0}; #if VERSION_IQUE u32 D_8014AD24 = 2; -#else -u8 D_8014C594[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; #endif -s32 draw_image_with_clipping(IMG_PTR raster, s32 width, s32 height, s32 fmt, s32 bitDepth, s16 posX, s16 posY, u16 clipULx, - u16 clipULy, u16 clipLRx, u16 clipRLy); - -s32 _update_message(MessagePrintState* printer); -void msg_copy_to_print_buffer(MessagePrintState* printer, s32 arg1, s32 arg2); -void initialize_printer(MessagePrintState* printer, s32 arg1, s32 arg2); -MessagePrintState* _msg_get_printer_for_msg(s32 msgID, s32* donePrintingWriteback, s32 arg2); -void msg_update_rewind_arrow(s32); -void msg_draw_rewind_arrow(s32); -void msg_draw_choice_pointer(MessagePrintState* printer); -void draw_message_window(MessagePrintState* printer); void appendGfx_message(MessagePrintState*, s16, s16, u16, u16, u16, u8); void appendGfx_msg_prim_rect(u8 r, u8 g, u8 b, u8 a, u16 ulX, u16 ulY, u16 lrX, u16 lrY); void msg_reset_gfx_state(void); diff --git a/src/npc.c b/src/npc.c index f99c5d528e..e09e22f5bd 100644 --- a/src/npc.c +++ b/src/npc.c @@ -6,11 +6,11 @@ #include "world/partners.h" #include "sprite/npc/WorldWatt.h" -SHIFT_BSS s16 gNpcCount; -SHIFT_BSS NpcList gWorldNpcList; -SHIFT_BSS NpcList gBattleNpcList; -SHIFT_BSS NpcList* gCurrentNpcListPtr; -SHIFT_BSS b8 gNpcPlayerCollisionsEnabled; +s16 gNpcCount; +static NpcList gWorldNpcList; +static NpcList gBattleNpcList; +static NpcList* gCurrentNpcListPtr; +static b8 gNpcPlayerCollisionsEnabled; #define PAL_ANIM_END 0xFF diff --git a/src/npc_collision.c b/src/npc_collision.c index 38cb2d4123..08d13e5639 100644 --- a/src/npc_collision.c +++ b/src/npc_collision.c @@ -1,11 +1,11 @@ #include "common.h" -SHIFT_BSS s32 NpcHitQueryBehindRightY; -SHIFT_BSS s32 NpcHitQueryBehindCollider; -SHIFT_BSS s32 NpcHitQueryAheadCollider; -SHIFT_BSS s32 NpcHitQueryAheadY; -SHIFT_BSS s32 NpcHitQueryBehindLeftY; -SHIFT_BSS s32 NpcHitQueryColliderID; +s32 NpcHitQueryBehindRightY; +s32 NpcHitQueryBehindCollider; +s32 NpcHitQueryAheadCollider; +s32 NpcHitQueryAheadY; +s32 NpcHitQueryBehindLeftY; +s32 NpcHitQueryColliderID; PlayerStatus* gPlayerStatusPtr = &gPlayerStatus; // maybe wPlayerStatus diff --git a/ver/us/asm/os/__osDisableInt.s b/src/os/__osDisableInt.s similarity index 100% rename from ver/us/asm/os/__osDisableInt.s rename to src/os/__osDisableInt.s diff --git a/ver/us/asm/os/__osGetCause.s b/src/os/__osGetCause.s similarity index 100% rename from ver/us/asm/os/__osGetCause.s rename to src/os/__osGetCause.s diff --git a/ver/us/asm/os/__osGetSR.s b/src/os/__osGetSR.s similarity index 100% rename from ver/us/asm/os/__osGetSR.s rename to src/os/__osGetSR.s diff --git a/ver/us/asm/os/__osProbeTLB.s b/src/os/__osProbeTLB.s similarity index 93% rename from ver/us/asm/os/__osProbeTLB.s rename to src/os/__osProbeTLB.s index 1e7a2df984..5138a93710 100644 --- a/ver/us/asm/os/__osProbeTLB.s +++ b/src/os/__osProbeTLB.s @@ -10,7 +10,12 @@ glabel __osProbeTLB /* 41C60 80066860 40085000 */ mfc0 $t0, $10 /* 41C64 80066864 310900FF */ andi $t1, $t0, 0xff +#ifdef BBPLAYER +/* 40228 80064E28 3C01FFFF */ lui $at, (0xFFFFE000 >> 16) +/* 4022C 80064E2C 3421E000 */ ori $at, $at, (0xFFFFE000 & 0xFFFF) +#else /* 41C68 80066868 2401E000 */ addiu $at, $zero, -0x2000 +#endif /* 41C6C 8006686C 00815024 */ and $t2, $a0, $at /* 41C70 80066870 012A4825 */ or $t1, $t1, $t2 /* 41C74 80066874 40895000 */ mtc0 $t1, $10 diff --git a/ver/us/asm/os/__osRestoreInt.s b/src/os/__osRestoreInt.s similarity index 100% rename from ver/us/asm/os/__osRestoreInt.s rename to src/os/__osRestoreInt.s diff --git a/ver/us/asm/os/__osSetCompare.s b/src/os/__osSetCompare.s similarity index 100% rename from ver/us/asm/os/__osSetCompare.s rename to src/os/__osSetCompare.s diff --git a/ver/us/asm/os/__osSetWatchLo.s b/src/os/__osSetWatchLo.s similarity index 100% rename from ver/us/asm/os/__osSetWatchLo.s rename to src/os/__osSetWatchLo.s diff --git a/ver/us/asm/os/bcmp.s b/src/os/bcmp.s similarity index 100% rename from ver/us/asm/os/bcmp.s rename to src/os/bcmp.s diff --git a/ver/us/asm/os/bcopy.s b/src/os/bcopy.s similarity index 100% rename from ver/us/asm/os/bcopy.s rename to src/os/bcopy.s diff --git a/ver/us/asm/os/bzero.s b/src/os/bzero.s similarity index 100% rename from ver/us/asm/os/bzero.s rename to src/os/bzero.s diff --git a/src/os/cartrominit.c b/src/os/cartrominit.c index 7862cfe280..5953b227f4 100644 --- a/src/os/cartrominit.c +++ b/src/os/cartrominit.c @@ -4,7 +4,7 @@ #include "PR/rcp.h" #include "PR/piint.h" -OSPiHandle __CartRomHandle ALIGNED(8); +OSPiHandle __CartRomHandle OSALIGNED(8); OSPiHandle *osCartRomInit(void) { u32 value; diff --git a/src/os/contpfs.c b/src/os/contpfs.c index 419839c35d..d4ba9b4769 100644 --- a/src/os/contpfs.c +++ b/src/os/contpfs.c @@ -3,7 +3,7 @@ #include "PR/controller.h" #include "PR/rmon.h" -__OSInode __osPfsInodeCache ALIGNED(8); +__OSInode __osPfsInodeCache OSALIGNED(8); s32 __osPfsInodeCacheChannel = -1; u8 __osPfsInodeCacheBank = 250; diff --git a/src/os/controller.c b/src/os/controller.c index 281065281c..a6d226599e 100644 --- a/src/os/controller.c +++ b/src/os/controller.c @@ -12,7 +12,7 @@ u8 __osContLastCmd; u8 __osMaxControllers; OSTimer __osEepromTimer; -OSMesgQueue __osEepromTimerQ ALIGNED(8); +OSMesgQueue __osEepromTimerQ OSALIGNED(8); OSMesg __osEepromTimerMsg; s32 __osContinitialized = 0; diff --git a/ver/us/asm/os/decode_yay0.s b/src/os/decode_yay0.s similarity index 100% rename from ver/us/asm/os/decode_yay0.s rename to src/os/decode_yay0.s diff --git a/ver/us/asm/os/exceptasm.s b/src/os/exceptasm.s similarity index 77% rename from ver/us/asm/os/exceptasm.s rename to src/os/exceptasm.s index 2ebe0216ff..5012a01e94 100644 --- a/ver/us/asm/os/exceptasm.s +++ b/src/os/exceptasm.s @@ -81,13 +81,21 @@ __osPiIntTable: glabel __osExceptionPreamble /* 45DF0 8006A9F0 3C1A8007 */ lui $k0, %hi(__osException) +#ifdef BBPLAYER +/* 41634 80066234 675A6240 */ daddiu $k0, $k0, %lo(__osException) # handwritten instruction +#else /* 45DF4 8006A9F4 275AAA00 */ addiu $k0, $k0, %lo(__osException) +#endif /* 45DF8 8006A9F8 03400008 */ jr $k0 /* 45DFC 8006A9FC 00000000 */ nop glabel __osException /* 45E00 8006AA00 3C1A800B */ lui $k0, %hi(__osThreadSave) +#ifdef BBPLAYER +/* 41644 80066244 675AF740 */ daddiu $k0, $k0, %lo(__osThreadSave) # handwritten instruction +#else /* 45E04 8006AA04 275A0D08 */ addiu $k0, $k0, %lo(__osThreadSave) +#endif /* 45E08 8006AA08 FF410020 */ sd $at, 0x20($k0) /* 45E0C 8006AA0C 401B6000 */ mfc0 $k1, $12 /* 45E10 8006AA10 AF5B0118 */ sw $k1, 0x118($k0) @@ -101,7 +109,11 @@ glabel __osException /* 45E30 8006AA30 40086800 */ mfc0 $t0, $13 glabel func_8006AA34 +#ifdef BBPLAYER +/* 41674 80066274 0340402D */ daddu $t0, $k0, $zero +#else /* 45E34 8006AA34 03404021 */ addu $t0, $k0, $zero +#endif /* 45E38 8006AA38 3C1A8009 */ lui $k0, %hi(__osRunningThread) /* 45E3C 8006AA3C 8F5A4660 */ lw $k0, %lo(__osRunningThread)($k0) /* 45E40 8006AA40 DD090020 */ ld $t1, 0x20($t0) @@ -148,9 +160,16 @@ glabel func_8006AA34 /* 45EE4 8006AAE4 11200013 */ beqz $t1, .L8006AB34 /* 45EE8 8006AAE8 00000000 */ nop /* 45EEC 8006AAEC 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 41730 80066330 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) +/* 41734 80066334 8D080000 */ lw $t0, 0x0($t0) +/* 41738 80066338 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 4173C 8006633C 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 45EF0 8006AAF0 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) /* 45EF4 8006AAF4 8D080000 */ lw $t0, ($t0) /* 45EF8 8006AAF8 2401FFFF */ addiu $at, $zero, -1 +#endif /* 45EFC 8006AAFC 01015026 */ xor $t2, $t0, $at /* 45F00 8006AB00 314AFF00 */ andi $t2, $t2, 0xff00 /* 45F04 8006AB04 012A6025 */ or $t4, $t1, $t2 @@ -171,10 +190,18 @@ glabel func_8006AA34 /* 45F3C 8006AB3C 1120000B */ beqz $t1, .L8006AB6C /* 45F40 8006AB40 00000000 */ nop /* 45F44 8006AB44 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 4178C 8006638C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) +/* 41790 80066390 8D080000 */ lw $t0, 0x0($t0) +/* 41794 80066394 00084402 */ srl $t0, $t0, 16 +/* 41798 80066398 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 4179C 8006639C 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 45F48 8006AB48 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) /* 45F4C 8006AB4C 8D080000 */ lw $t0, ($t0) /* 45F50 8006AB50 00084402 */ srl $t0, $t0, 0x10 /* 45F54 8006AB54 2401FFFF */ addiu $at, $zero, -1 +#endif /* 45F58 8006AB58 01014026 */ xor $t0, $t0, $at /* 45F5C 8006AB5C 3108003F */ andi $t0, $t0, 0x3f /* 45F60 8006AB60 8F4C0128 */ lw $t4, 0x128($k0) @@ -221,6 +248,25 @@ glabel func_8006AA34 /* 45FFC 8006ABFC 240A0000 */ addiu $t2, $zero, 0 /* 46000 8006AC00 152A00D2 */ bne $t1, $t2, .L8006AF4C /* 46004 8006AC04 00000000 */ nop +#ifdef BBPLAYER +/* 41850 80066450 3C098009 */ lui $t1, %hi(__osShutdown) +/* 41854 80066454 652945AC */ daddiu $t1, $t1, %lo(__osShutdown) +/* 41858 80066458 8D2A0000 */ lw $t2, 0x0($t1) +/* 4185C 8006645C 1140000C */ beqz $t2, .LIQUE_80066490 +/* 41860 80066460 00000000 */ nop +/* 41864 80066464 3C098009 */ lui $t1, %hi(__osShutdownTime) +/* 41868 80066468 652945B0 */ daddiu $t1, $t1, %lo(__osShutdownTime) +/* 4186C 8006646C 8D290000 */ lw $t1, 0x0($t1) +/* 41870 80066470 400A4800 */ mfc0 $t2, $9 # handwritten instruction +/* 41874 80066474 01495023 */ subu $t2, $t2, $t1 +/* 41878 80066478 3C090500 */ lui $t1, (0x5000000 >> 16) +/* 4187C 8006647C 012A482B */ sltu $t1, $t1, $t2 +/* 41880 80066480 11200003 */ beqz $t1, .LIQUE_80066490 +/* 41884 80066484 00000000 */ nop +/* 41888 80066488 0C019FEB */ jal skExit +/* 4188C 8006648C 00000000 */ nop +.LIQUE_80066490: +#endif /* 46008 8006AC08 03688024 */ and $s0, $k1, $t0 .L8006AC0C: /* 4600C 8006AC0C 3209FF00 */ andi $t1, $s0, 0xff00 @@ -231,10 +277,17 @@ glabel func_8006AA34 /* 46020 8006AC20 214A0010 */ addi $t2, $t2, 0x10 .L8006AC24: /* 46024 8006AC24 3C01800A */ lui $at, %hi(__osIntOffTable) +#ifdef BBPLAYER +/* 418B0 800664B0 002A082D */ daddu $at, $at, $t2 +/* 418B4 800664B4 902A88B0 */ lbu $t2, %lo(__osIntOffTable)($at) +/* 418B8 800664B8 3C01800A */ lui $at, %hi(__osIntTable) +/* 418BC 800664BC 002A082D */ daddu $at, $at, $t2 +#else /* 46028 8006AC28 002A0821 */ addu $at, $at, $t2 /* 4602C 8006AC2C 902A9D80 */ lbu $t2, %lo(__osIntOffTable)($at) /* 46030 8006AC30 3C01800A */ lui $at, %hi(__osIntTable) /* 46034 8006AC34 002A0821 */ addu $at, $at, $t2 +#endif /* 46038 8006AC38 8C2A9DA0 */ lw $t2, %lo(__osIntTable)($at) /* 4603C 8006AC3C 01400008 */ jr $t2 /* 46040 8006AC40 00000000 */ nop @@ -260,7 +313,11 @@ glabel func_8006AA34 /* 46080 8006AC80 2401F7FF */ addiu $at, $zero, -0x801 /* 46084 8006AC84 02018024 */ and $s0, $s0, $at /* 46088 8006AC88 3C098009 */ lui $t1, %hi(__osHwIntTable) +#ifdef BBPLAYER +/* 41914 80066514 652944F0 */ daddiu $t1, $t1, %lo(__osHwIntTable) +#else /* 4608C 8006AC8C 25295910 */ addiu $t1, $t1, %lo(__osHwIntTable) +#endif /* 46090 8006AC90 21290008 */ addi $t1, $t1, 8 /* 46094 8006AC94 8D2A0000 */ lw $t2, ($t1) /* 46098 8006AC98 11400007 */ beqz $t2, .L8006ACB8 @@ -272,15 +329,96 @@ glabel func_8006AA34 /* 460B0 8006ACB0 10000093 */ b .L8006AF00 /* 460B4 8006ACB4 00000000 */ nop .L8006ACB8: +#ifdef BBPLAYER +/* 41940 80066540 3C11A430 */ lui $s1, %hi(D_A4300038) +/* 41944 80066544 8E310038 */ lw $s1, %lo(D_A4300038)($s1) +/* 41948 80066548 32290040 */ andi $t1, $s1, 0x40 +/* 4194C 8006654C 11200007 */ beqz $t1, .LIQUE_8006656C +/* 41950 80066550 00000000 */ nop +/* 41954 80066554 32313F80 */ andi $s1, $s1, 0x3F80 +/* 41958 80066558 24090000 */ addiu $t1, $zero, 0x0 +/* 4195C 8006655C 3C01A460 */ lui $at, %hi(D_A4600048) +/* 41960 80066560 AC290048 */ sw $t1, %lo(D_A4600048)($at) +/* 41964 80066564 0C019A45 */ jal send_mesg +/* 41968 80066568 240400B8 */ addiu $a0, $zero, 0xB8 +.LIQUE_8006656C: +/* 4196C 8006656C 32292000 */ andi $t1, $s1, 0x2000 +/* 41970 80066570 11200007 */ beqz $t1, .LIQUE_80066590 +/* 41974 80066574 00000000 */ nop +/* 41978 80066578 32311FC0 */ andi $s1, $s1, 0x1FC0 +/* 4197C 8006657C 24092000 */ addiu $t1, $zero, 0x2000 +/* 41980 80066580 3C01A430 */ lui $at, %hi(D_A4300038) +/* 41984 80066584 AC290038 */ sw $t1, %lo(D_A4300038)($at) +/* 41988 80066588 0C019A45 */ jal send_mesg +/* 4198C 8006658C 240400F0 */ addiu $a0, $zero, 0xF0 +.LIQUE_80066590: +/* 41990 80066590 32290080 */ andi $t1, $s1, 0x80 +/* 41994 80066594 11200007 */ beqz $t1, .LIQUE_800665B4 +/* 41998 80066598 00000000 */ nop +/* 4199C 8006659C 32313F40 */ andi $s1, $s1, 0x3F40 +/* 419A0 800665A0 24094000 */ addiu $t1, $zero, 0x4000 +/* 419A4 800665A4 3C01A430 */ lui $at, %hi(D_A430003C) +/* 419A8 800665A8 AC29003C */ sw $t1, %lo(D_A430003C)($at) +/* 419AC 800665AC 0C019A45 */ jal send_mesg +/* 419B0 800665B0 240400C0 */ addiu $a0, $zero, 0xC0 +.LIQUE_800665B4: +/* 419B4 800665B4 32290100 */ andi $t1, $s1, 0x100 +/* 419B8 800665B8 11200007 */ beqz $t1, .LIQUE_800665D8 +/* 419BC 800665BC 00000000 */ nop +/* 419C0 800665C0 32313EC0 */ andi $s1, $s1, 0x3EC0 +/* 419C4 800665C4 3C090001 */ lui $t1, (0x10000 >> 16) +/* 419C8 800665C8 3C01A430 */ lui $at, %hi(D_A430003C) +/* 419CC 800665CC AC29003C */ sw $t1, %lo(D_A430003C)($at) +/* 419D0 800665D0 0C019A45 */ jal send_mesg +/* 419D4 800665D4 240400C8 */ addiu $a0, $zero, 0xC8 +.LIQUE_800665D8: +/* 419D8 800665D8 32290200 */ andi $t1, $s1, 0x200 +/* 419DC 800665DC 11200007 */ beqz $t1, .LIQUE_800665FC +/* 419E0 800665E0 00000000 */ nop +/* 419E4 800665E4 32313DC0 */ andi $s1, $s1, 0x3DC0 +/* 419E8 800665E8 3C090004 */ lui $t1, (0x40000 >> 16) +/* 419EC 800665EC 3C01A430 */ lui $at, %hi(D_A430003C) +/* 419F0 800665F0 AC29003C */ sw $t1, %lo(D_A430003C)($at) +/* 419F4 800665F4 0C019A45 */ jal send_mesg +/* 419F8 800665F8 240400D0 */ addiu $a0, $zero, 0xD0 +.LIQUE_800665FC: +/* 419FC 800665FC 32290400 */ andi $t1, $s1, 0x400 +/* 41A00 80066600 11200007 */ beqz $t1, .LIQUE_80066620 +/* 41A04 80066604 00000000 */ nop +/* 41A08 80066608 32313BC0 */ andi $s1, $s1, 0x3BC0 +/* 41A0C 8006660C 3C090010 */ lui $t1, (0x100000 >> 16) +/* 41A10 80066610 3C01A430 */ lui $at, %hi(D_A430003C) +/* 41A14 80066614 AC29003C */ sw $t1, %lo(D_A430003C)($at) +/* 41A18 80066618 0C019A45 */ jal send_mesg +/* 41A1C 8006661C 240400D8 */ addiu $a0, $zero, 0xD8 +.LIQUE_80066620: +/* 41A20 80066620 32290800 */ andi $t1, $s1, 0x800 +/* 41A24 80066624 11200007 */ beqz $t1, .LIQUE_80066644 +/* 41A28 80066628 00000000 */ nop +/* 41A2C 8006662C 323137C0 */ andi $s1, $s1, 0x37C0 +/* 41A30 80066630 3C090040 */ lui $t1, (0x400000 >> 16) +/* 41A34 80066634 3C01A430 */ lui $at, %hi(D_A430003C) +/* 41A38 80066638 AC29003C */ sw $t1, %lo(D_A430003C)($at) +/* 41A3C 8006663C 0C019A45 */ jal send_mesg +/* 41A40 80066640 240400E0 */ addiu $a0, $zero, 0xE0 +.LIQUE_80066644: +/* 41A44 80066644 1000FF93 */ b .L8006AC0C +/* 41A48 80066648 00000000 */ nop +#else /* 460B8 8006ACB8 0C01ABDF */ jal send_mesg /* 460BC 8006ACBC 24040010 */ addiu $a0, $zero, 0x10 /* 460C0 8006ACC0 1000FFD2 */ b .L8006AC0C /* 460C4 8006ACC4 00000000 */ nop +#endif .L8006ACC8_460C8: /* 460C8 8006ACC8 3C11A430 */ lui $s1, %hi(D_A4300008) /* 460CC 8006ACCC 8E310008 */ lw $s1, %lo(D_A4300008)($s1) /* 460D0 8006ACD0 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 41A58 80066658 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) +#else /* 460D4 8006ACD4 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) +#endif /* 460D8 8006ACD8 8D080000 */ lw $t0, ($t0) /* 460DC 8006ACDC 00084402 */ srl $t0, $t0, 0x10 /* 460E0 8006ACE0 02288824 */ and $s1, $s1, $t0 @@ -350,13 +488,21 @@ glabel func_8006AA34 /* 461CC 8006ADCC 3C01A460 */ lui $at, %hi(D_A4600010) /* 461D0 8006ADD0 AC290010 */ sw $t1, %lo(D_A4600010)($at) /* 461D4 8006ADD4 3C098009 */ lui $t1, %hi(__osPiIntTable) +#ifdef BBPLAYER +/* 41B5C 8006675C 65294518 */ daddiu $t1, $t1, %lo(__osPiIntTable) +#else /* 461D8 8006ADD8 25295938 */ addiu $t1, $t1, %lo(__osPiIntTable) +#endif /* 461DC 8006ADDC 8D2A0000 */ lw $t2, ($t1) /* 461E0 8006ADE0 11400006 */ beqz $t2, .L8006ADFC /* 461E4 8006ADE4 00000000 */ nop /* 461E8 8006ADE8 8D3D0004 */ lw $sp, 4($t1) /* 461EC 8006ADEC 0140F809 */ jalr $t2 +#ifdef BBPLAYER +/* 41B74 80066774 0040202D */ daddu $a0, $v0, $zero +#else /* 461F0 8006ADF0 00402021 */ addu $a0, $v0, $zero +#endif /* 461F4 8006ADF4 14400003 */ bnez $v0, .L8006AE04 /* 461F8 8006ADF8 00000000 */ nop .L8006ADFC: @@ -385,7 +531,11 @@ glabel func_8006AA34 /* 46244 8006AE44 0361D824 */ and $k1, $k1, $at /* 46248 8006AE48 AF5B0118 */ sw $k1, 0x118($k0) /* 4624C 8006AE4C 3C098009 */ lui $t1, %hi(__osShutdown) +#ifdef BBPLAYER +/* 41BD4 800667D4 652945AC */ daddiu $t1, $t1, %lo(__osShutdown) +#else /* 46250 8006AE50 252958FC */ addiu $t1, $t1, %lo(__osShutdown) +#endif /* 46254 8006AE54 8D2A0000 */ lw $t2, ($t1) /* 46258 8006AE58 11400004 */ beqz $t2, .L8006AE6C /* 4625C 8006AE5C 00000000 */ nop @@ -395,6 +545,12 @@ glabel func_8006AA34 .L8006AE6C: /* 4626C 8006AE6C 240A0001 */ addiu $t2, $zero, 1 /* 46270 8006AE70 AD2A0000 */ sw $t2, ($t1) +#ifdef BBPLAYER +/* 41BF8 800667F8 400A4800 */ mfc0 $t2, $9 # handwritten instruction +/* 41BFC 800667FC 3C098009 */ lui $t1, %hi(__osShutdownTime) +/* 41C00 80066800 652945B0 */ daddiu $t1, $t1, %lo(__osShutdownTime) +/* 41C04 80066804 AD2A0000 */ sw $t2, 0x0($t1) +#endif /* 46274 8006AE74 0C01ABDF */ jal send_mesg /* 46278 8006AE78 24040070 */ addiu $a0, $zero, 0x70 /* 4627C 8006AE7C 2401EFFF */ addiu $at, $zero, -0x1001 @@ -442,15 +598,27 @@ glabel func_8006AA34 /* 46310 8006AF10 012B082A */ slt $at, $t1, $t3 /* 46314 8006AF14 10200007 */ beqz $at, .L8006AF34 /* 46318 8006AF18 00000000 */ nop +#ifdef BBPLAYER +/* 41CB0 800668B0 0340282D */ daddu $a1, $k0, $zero +/* 41CB4 800668B4 3C048009 */ lui $a0, %hi(__osRunQueue) +/* 41CB8 800668B8 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) +/* 41CBC 800668BC 0C019AC4 */ jal __osEnqueueThread +/* 41CC0 800668C0 00000000 */ nop +#else /* 4631C 8006AF1C 03402821 */ addu $a1, $k0, $zero /* 46320 8006AF20 3C048009 */ lui $a0, %hi(__osRunQueue) /* 46324 8006AF24 0C01AC5D */ jal __osEnqueueThread /* 46328 8006AF28 24844658 */ addiu $a0, $a0, %lo(__osRunQueue) +#endif /* 4632C 8006AF2C 0801AC75 */ j __osDispatchThread /* 46330 8006AF30 00000000 */ nop .L8006AF34: /* 46334 8006AF34 3C098009 */ lui $t1, %hi(__osRunQueue) +#ifdef BBPLAYER +/* 41CD0 800668D0 65293278 */ daddiu $t1, $t1, %lo(__osRunQueue) +#else /* 46338 8006AF38 25294658 */ addiu $t1, $t1, %lo(__osRunQueue) +#endif /* 4633C 8006AF3C 8D2A0000 */ lw $t2, ($t1) /* 46340 8006AF40 AF4A0000 */ sw $t2, ($k0) /* 46344 8006AF44 0801AC75 */ j __osDispatchThread @@ -470,9 +638,15 @@ glabel func_8006AA34 /* 46378 8006AF78 00000000 */ nop glabel send_mesg +#ifdef BBPLAYER +/* 41D14 80066914 03E0902D */ daddu $s2, $ra, $zero +/* 41D18 80066918 3C0A800E */ lui $t2, %hi(__osEventStateTab) +/* 41D1C 8006691C 654A825C */ daddiu $t2, $t2, %lo(__osEventStateTab) +#else /* 4637C 8006AF7C 03E09021 */ addu $s2, $ra, $zero /* 46380 8006AF80 3C0A800E */ lui $t2, %hi(__osEventStateTab) /* 46384 8006AF84 254A9F80 */ addiu $t2, $t2, %lo(__osEventStateTab) +#endif /* 46388 8006AF88 01445021 */ addu $t2, $t2, $a0 /* 4638C 8006AF8C 8D490000 */ lw $t1, ($t2) /* 46390 8006AF90 11200027 */ beqz $t1, .L8006B030 @@ -484,9 +658,14 @@ glabel send_mesg /* 463A8 8006AFA8 00000000 */ nop /* 463AC 8006AFAC 8D2D000C */ lw $t5, 0xc($t1) /* 463B0 8006AFB0 01AB6821 */ addu $t5, $t5, $t3 +#ifdef BBPLAYER +/* 41D4C 8006694C 15800002 */ bnez $t4, .L8006AFC4 +/* 41D50 80066950 01AC001A */ div $zero, $t5, $t4 +#else /* 463B4 8006AFB4 01AC001A */ div $zero, $t5, $t4 /* 463B8 8006AFB8 15800002 */ bnez $t4, .L8006AFC4 /* 463BC 8006AFBC 00000000 */ nop +#endif /* 463C0 8006AFC0 0007000D */ break 7 .L8006AFC4: /* 463C4 8006AFC4 2401FFFF */ addiu $at, $zero, -1 @@ -511,12 +690,22 @@ glabel send_mesg /* 4640C 8006B00C 11600008 */ beqz $t3, .L8006B030 /* 46410 8006B010 00000000 */ nop /* 46414 8006B014 0C01AC6F */ jal __osPopThread +#ifdef BBPLAYER +/* 41DAC 800669AC 0120202D */ daddu $a0, $t1, $zero +/* 41DB0 800669B0 0040502D */ daddu $t2, $v0, $zero +/* 41DB4 800669B4 0140282D */ daddu $a1, $t2, $zero +/* 41DB8 800669B8 3C048009 */ lui $a0, %hi(__osRunQueue) +/* 41DBC 800669BC 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) +/* 41DC0 800669C0 0C019AC4 */ jal __osEnqueueThread +/* 41DC4 800669C4 00000000 */ nop +#else /* 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(__osRunQueue) /* 46428 8006B028 0C01AC5D */ jal __osEnqueueThread /* 4642C 8006B02C 24844658 */ addiu $a0, $a0, %lo(__osRunQueue) +#endif .L8006B030: /* 46430 8006B030 02400008 */ jr $s2 /* 46434 8006B034 00000000 */ nop @@ -559,7 +748,9 @@ glabel __osEnqueueAndYield /* 464B8 8006B0B8 1360000A */ beqz $k1, .L8006B0E4 /* 464BC 8006B0BC 00000000 */ nop /* 464C0 8006B0C0 445BF800 */ cfc1 $k1, $31 +#ifndef BBPLAYER /* 464C4 8006B0C4 00000000 */ nop +#endif /* 464C8 8006B0C8 ACBB012C */ sw $k1, 0x12c($a1) /* 464CC 8006B0CC F4B40180 */ sdc1 $f20, 0x180($a1) /* 464D0 8006B0D0 F4B60188 */ sdc1 $f22, 0x188($a1) @@ -573,9 +764,16 @@ glabel __osEnqueueAndYield /* 464EC 8006B0EC 1120000D */ beqz $t1, .L8006B124 /* 464F0 8006B0F0 00000000 */ nop /* 464F4 8006B0F4 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 41E8C 80066A8C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) +/* 41E90 80066A90 8D080000 */ lw $t0, 0x0($t0) +/* 41E94 80066A94 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 41E98 80066A98 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 464F8 8006B0F8 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) /* 464FC 8006B0FC 8D080000 */ lw $t0, ($t0) /* 46500 8006B100 2401FFFF */ addiu $at, $zero, -1 +#endif /* 46504 8006B104 01014026 */ xor $t0, $t0, $at /* 46508 8006B108 3108FF00 */ andi $t0, $t0, 0xff00 /* 4650C 8006B10C 01284825 */ or $t1, $t1, $t0 @@ -590,10 +788,18 @@ glabel __osEnqueueAndYield /* 4652C 8006B12C 1360000B */ beqz $k1, .L8006B15C /* 46530 8006B130 00000000 */ nop /* 46534 8006B134 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 41ED0 80066AD0 675A45B4 */ daddiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction +/* 41ED4 80066AD4 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction +/* 41ED8 80066AD8 001AD402 */ srl $k0, $k0, 16 +/* 41EDC 80066ADC 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 41EE0 80066AE0 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 46538 8006B138 275A5900 */ addiu $k0, $k0, %lo(__OSGlobalIntMask) /* 4653C 8006B13C 8F5A0000 */ lw $k0, ($k0) /* 46540 8006B140 001AD402 */ srl $k0, $k0, 0x10 /* 46544 8006B144 2401FFFF */ addiu $at, $zero, -1 +#endif /* 46548 8006B148 0341D026 */ xor $k0, $k0, $at /* 4654C 8006B14C 335A003F */ andi $k0, $k0, 0x3f /* 46550 8006B150 8CA80128 */ lw $t0, 0x128($a1) @@ -609,7 +815,11 @@ glabel __osEnqueueAndYield /* 46570 8006B170 00000000 */ nop glabel __osEnqueueThread +#ifdef BBPLAYER +/* 41F10 80066B10 0080C82D */ daddu $t9, $a0, $zero +#else /* 46574 8006B174 0080C821 */ addu $t9, $a0, $zero +#endif /* 46578 8006B178 8C980000 */ lw $t8, ($a0) /* 4657C 8006B17C 8CAF0004 */ lw $t7, 4($a1) /* 46580 8006B180 8F0E0004 */ lw $t6, 4($t8) @@ -617,7 +827,11 @@ glabel __osEnqueueThread /* 46588 8006B188 14200007 */ bnez $at, .L8006B1A8 /* 4658C 8006B18C 00000000 */ nop .L8006B190: +#ifdef BBPLAYER +/* 41F2C 80066B2C 0300C82D */ daddu $t9, $t8, $zero +#else /* 46590 8006B190 0300C821 */ addu $t9, $t8, $zero +#endif /* 46594 8006B194 8F180000 */ lw $t8, ($t8) /* 46598 8006B198 8F0E0004 */ lw $t6, 4($t8) /* 4659C 8006B19C 01CF082A */ slt $at, $t6, $t7 @@ -640,16 +854,29 @@ glabel __osPopThread glabel __osDispatchThread /* 465D4 8006B1D4 3C048009 */ lui $a0, %hi(__osRunQueue) +#ifdef BBPLAYER +/* 41F74 80066B74 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) +/* 41F78 80066B78 0C019AD6 */ jal __osPopThread +/* 41F7C 80066B7C 00000000 */ nop +#else /* 465D8 8006B1D8 0C01AC6F */ jal __osPopThread /* 465DC 8006B1DC 24844658 */ addiu $a0, $a0, %lo(__osRunQueue) +#endif /* 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) +#ifdef BBPLAYER +/* 41F90 80066B90 0040D02D */ daddu $k0, $v0, $zero +/* 41F94 80066B94 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction +/* 41F98 80066B98 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) +/* 41F9C 80066B9C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) +#else /* 465F0 8006B1F0 0040D021 */ addu $k0, $v0, $zero /* 465F4 8006B1F4 8F5B0118 */ lw $k1, 0x118($k0) /* 465F8 8006B1F8 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) /* 465FC 8006B1FC 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) +#endif /* 46600 8006B200 8D080000 */ lw $t0, ($t0) /* 46604 8006B204 3108FF00 */ andi $t0, $t0, 0xff00 /* 46608 8006B208 3369FF00 */ andi $t1, $k1, 0xff00 @@ -718,13 +945,23 @@ glabel __osDispatchThread .L8006B304: /* 46704 8006B304 8F5B0128 */ lw $k1, 0x128($k0) /* 46708 8006B308 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) +#ifdef BBPLAYER +/* 420AC 80066CAC 675A45B4 */ daddiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction +/* 420B0 80066CB0 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction +/* 420B4 80066CB4 001AD402 */ srl $k0, $k0, 16 +/* 420B8 80066CB8 037AD824 */ and $k1, $k1, $k0 +/* 420BC 80066CBC 001BD840 */ sll $k1, $k1, 1 +/* 420C0 80066CC0 3C1A800A */ lui $k0, %hi(__osRcpImTable) # handwritten instruction +/* 420C4 80066CC4 675A8900 */ daddiu $k0, $k0, %lo(__osRcpImTable) # handwritten instruction +#else /* 4670C 8006B30C 275A5900 */ addiu $k0, $k0, %lo(__OSGlobalIntMask) /* 46710 8006B310 8F5A0000 */ lw $k0, ($k0) /* 46714 8006B314 001AD402 */ srl $k0, $k0, 0x10 /* 46718 8006B318 037AD824 */ and $k1, $k1, $k0 /* 4671C 8006B31C 001BD840 */ sll $k1, $k1, 1 -/* 46720 8006B320 3C1A800A */ lui $k0, %hi(D_80099AA0) -/* 46724 8006B324 275A9AA0 */ addiu $k0, $k0, %lo(D_80099AA0) +/* 46720 8006B320 3C1A800A */ lui $k0, %hi(__osRcpImTable) +/* 46724 8006B324 275A9AA0 */ addiu $k0, $k0, %lo(__osRcpImTable) +#endif /* 46728 8006B328 037AD821 */ addu $k1, $k1, $k0 /* 4672C 8006B32C 977B0000 */ lhu $k1, ($k1) /* 46730 8006B330 3C1AA430 */ lui $k0, 0xa430 @@ -737,7 +974,12 @@ glabel __osDispatchThread /* 4674C 8006B34C 42000018 */ eret glabel __osCleanupThread +#ifdef BBPLAYER +/* 420F0 80066CF0 0C01AE38 */ jal osDestroyThread +/* 420F4 80066CF4 0000202D */ daddu $a0, $zero, $zero +#else /* 46750 8006B350 00002021 */ addu $a0, $zero, $zero /* 46754 8006B354 0C01B254 */ jal osDestroyThread +#endif /* 46758 8006B358 00000000 */ nop /* 4675C 8006B35C 00000000 */ nop diff --git a/src/os/flashinit.c b/src/os/flashinit.c index 1f466f4529..086631ec04 100644 --- a/src/os/flashinit.c +++ b/src/os/flashinit.c @@ -2,10 +2,10 @@ #include "PR/os_internal_flash.h" #include "macros.h" -u32 __osFlashID[4] ALIGNED(8); -OSIoMesg __osFlashMsg ALIGNED(8); -OSMesgQueue __osFlashMessageQ ALIGNED(8); -OSPiHandle __osFlashHandler ALIGNED(8); +u32 __osFlashID[4] OSALIGNED(8); +OSIoMesg __osFlashMsg OSALIGNED(8); +OSMesgQueue __osFlashMessageQ OSALIGNED(8); +OSPiHandle __osFlashHandler OSALIGNED(8); OSMesg __osFlashMsgBuf[1]; s32 __osFlashVersion; diff --git a/ver/us/asm/os/guMtxCat.s b/src/os/guMtxCat.s similarity index 100% rename from ver/us/asm/os/guMtxCat.s rename to src/os/guMtxCat.s diff --git a/ver/us/asm/os/guMtxCatF.s b/src/os/guMtxCatF.s similarity index 100% rename from ver/us/asm/os/guMtxCatF.s rename to src/os/guMtxCatF.s diff --git a/ver/us/asm/os/guMtxF2L.s b/src/os/guMtxF2L.s similarity index 100% rename from ver/us/asm/os/guMtxF2L.s rename to src/os/guMtxF2L.s diff --git a/ver/us/asm/os/guMtxIdent.s b/src/os/guMtxIdent.s similarity index 100% rename from ver/us/asm/os/guMtxIdent.s rename to src/os/guMtxIdent.s diff --git a/ver/us/asm/os/guMtxIdentF.s b/src/os/guMtxIdentF.s similarity index 100% rename from ver/us/asm/os/guMtxIdentF.s rename to src/os/guMtxIdentF.s diff --git a/ver/us/asm/os/guMtxL2F.s b/src/os/guMtxL2F.s similarity index 97% rename from ver/us/asm/os/guMtxL2F.s rename to src/os/guMtxL2F.s index 3d217b73e9..a7eed65e5b 100644 --- a/ver/us/asm/os/guMtxL2F.s +++ b/src/os/guMtxL2F.s @@ -22,11 +22,15 @@ glabel guMtxL2F /* 429A8 800675A8 312EFFFF */ andi $t6, $t1, 0xffff /* 429AC 800675AC 01AE7825 */ or $t7, $t5, $t6 /* 429B0 800675B0 448C2000 */ mtc1 $t4, $f4 +#ifndef BBPLAYER /* 429B4 800675B4 00000000 */ nop +#endif /* 429B8 800675B8 468021A0 */ cvt.s.w $f6, $f4 /* 429BC 800675BC 46003202 */ mul.s $f8, $f6, $f0 /* 429C0 800675C0 448F5000 */ mtc1 $t7, $f10 +#ifndef BBPLAYER /* 429C4 800675C4 00000000 */ nop +#endif /* 429C8 800675C8 46805420 */ cvt.s.w $f16, $f10 /* 429CC 800675CC 46008482 */ mul.s $f18, $f16, $f0 /* 429D0 800675D0 E4880000 */ swc1 $f8, ($a0) diff --git a/ver/us/asm/os/guNormalize.s b/src/os/guNormalize.s similarity index 100% rename from ver/us/asm/os/guNormalize.s rename to src/os/guNormalize.s diff --git a/ver/us/asm/os/guScale.s b/src/os/guScale.s similarity index 94% rename from ver/us/asm/os/guScale.s rename to src/os/guScale.s index 3cb3c4d01a..c43659dc5b 100644 --- a/ver/us/asm/os/guScale.s +++ b/src/os/guScale.s @@ -11,32 +11,44 @@ glabel guScale /* 42B00 80067700 3C014780 */ lui $at, 0x4780 /* 42B04 80067704 44812000 */ mtc1 $at, $f4 /* 42B08 80067708 44853000 */ mtc1 $a1, $f6 +#ifndef BBPLAYER /* 42B0C 8006770C 00000000 */ nop +#endif /* 42B10 80067710 46043202 */ mul.s $f8, $f6, $f4 /* 42B14 80067714 4600428D */ trunc.w.s $f10, $f8 /* 42B18 80067718 44095000 */ mfc1 $t1, $f10 +#ifndef BBPLAYER /* 42B1C 8006771C 00000000 */ nop +#endif /* 42B20 80067720 00095402 */ srl $t2, $t1, 0x10 /* 42B24 80067724 000A4400 */ sll $t0, $t2, 0x10 /* 42B28 80067728 AC880000 */ sw $t0, ($a0) /* 42B2C 8006772C 00095400 */ sll $t2, $t1, 0x10 /* 42B30 80067730 AC8A0020 */ sw $t2, 0x20($a0) /* 42B34 80067734 44863000 */ mtc1 $a2, $f6 +#ifndef BBPLAYER /* 42B38 80067738 00000000 */ nop +#endif /* 42B3C 8006773C 46043202 */ mul.s $f8, $f6, $f4 /* 42B40 80067740 4600428D */ trunc.w.s $f10, $f8 /* 42B44 80067744 44095000 */ mfc1 $t1, $f10 +#ifndef BBPLAYER /* 42B48 80067748 00000000 */ nop +#endif /* 42B4C 8006774C 00094402 */ srl $t0, $t1, 0x10 /* 42B50 80067750 AC880008 */ sw $t0, 8($a0) /* 42B54 80067754 312AFFFF */ andi $t2, $t1, 0xffff /* 42B58 80067758 AC8A0028 */ sw $t2, 0x28($a0) /* 42B5C 8006775C 44873000 */ mtc1 $a3, $f6 +#ifndef BBPLAYER /* 42B60 80067760 00000000 */ nop +#endif /* 42B64 80067764 46043202 */ mul.s $f8, $f6, $f4 /* 42B68 80067768 4600428D */ trunc.w.s $f10, $f8 /* 42B6C 8006776C 44095000 */ mfc1 $t1, $f10 +#ifndef BBPLAYER /* 42B70 80067770 00000000 */ nop +#endif /* 42B74 80067774 00095402 */ srl $t2, $t1, 0x10 /* 42B78 80067778 000A4400 */ sll $t0, $t2, 0x10 /* 42B7C 8006777C AC880014 */ sw $t0, 0x14($a0) @@ -54,5 +66,3 @@ glabel guScale /* 42BAC 800677AC AC800038 */ sw $zero, 0x38($a0) /* 42BB0 800677B0 03E00008 */ jr $ra /* 42BB4 800677B4 AC80003C */ sw $zero, 0x3c($a0) -/* 42BB8 800677B8 00000000 */ nop -/* 42BBC 800677BC 00000000 */ nop diff --git a/ver/us/asm/os/guScaleF.s b/src/os/guScaleF.s similarity index 100% rename from ver/us/asm/os/guScaleF.s rename to src/os/guScaleF.s diff --git a/ver/us/asm/os/guTranslate.s b/src/os/guTranslate.s similarity index 91% rename from ver/us/asm/os/guTranslate.s rename to src/os/guTranslate.s index ea346da219..74a963125e 100644 --- a/ver/us/asm/os/guTranslate.s +++ b/src/os/guTranslate.s @@ -11,12 +11,16 @@ glabel guTranslate /* 42C20 80067820 3C014780 */ lui $at, 0x4780 /* 42C24 80067824 44812000 */ mtc1 $at, $f4 /* 42C28 80067828 44853000 */ mtc1 $a1, $f6 +#ifndef BBPLAYER /* 42C2C 8006782C 00000000 */ nop +#endif /* 42C30 80067830 46043202 */ mul.s $f8, $f6, $f4 /* 42C34 80067834 4600428D */ trunc.w.s $f10, $f8 /* 42C38 80067838 44095000 */ mfc1 $t1, $f10 /* 42C3C 8006783C 44863000 */ mtc1 $a2, $f6 +#ifndef BBPLAYER /* 42C40 80067840 00000000 */ nop +#endif /* 42C44 80067844 46043202 */ mul.s $f8, $f6, $f4 /* 42C48 80067848 4600428D */ trunc.w.s $f10, $f8 /* 42C4C 8006784C 440B5000 */ mfc1 $t3, $f10 @@ -31,11 +35,15 @@ glabel guTranslate /* 42C70 80067870 010A4025 */ or $t0, $t0, $t2 /* 42C74 80067874 AC880038 */ sw $t0, 0x38($a0) /* 42C78 80067878 44873000 */ mtc1 $a3, $f6 +#ifndef BBPLAYER /* 42C7C 8006787C 00000000 */ nop +#endif /* 42C80 80067880 46043202 */ mul.s $f8, $f6, $f4 /* 42C84 80067884 4600428D */ trunc.w.s $f10, $f8 /* 42C88 80067888 44095000 */ mfc1 $t1, $f10 +#ifndef BBPLAYER /* 42C8C 8006788C 00000000 */ nop +#endif /* 42C90 80067890 00095402 */ srl $t2, $t1, 0x10 /* 42C94 80067894 000A4400 */ sll $t0, $t2, 0x10 /* 42C98 80067898 25080001 */ addiu $t0, $t0, 1 @@ -64,3 +72,9 @@ glabel guTranslate /* 42CF4 800678F4 AC880008 */ sw $t0, 8($a0) /* 42CF8 800678F8 00000000 */ nop /* 42CFC 800678FC 00000000 */ nop +#ifdef BBPLAYER // spontaneous padding?? +/* 41290 80065E90 00000000 */ nop +/* 41294 80065E94 00000000 */ nop +/* 41298 80065E98 00000000 */ nop +/* 4129C 80065E9C 00000000 */ nop +#endif diff --git a/ver/us/asm/os/guTranslateF.s b/src/os/guTranslateF.s similarity index 96% rename from ver/us/asm/os/guTranslateF.s rename to src/os/guTranslateF.s index d655be338a..679812b67e 100644 --- a/ver/us/asm/os/guTranslateF.s +++ b/src/os/guTranslateF.s @@ -28,7 +28,9 @@ glabel guTranslateF /* 42D44 80067944 AC88003C */ sw $t0, 0x3c($a0) /* 42D48 80067948 00000000 */ nop /* 42D4C 8006794C 00000000 */ nop +#ifndef BBPLAYER // spontaneous padding?? /* 42D50 80067950 00000000 */ nop /* 42D54 80067954 00000000 */ nop /* 42D58 80067958 00000000 */ nop /* 42D5C 8006795C 00000000 */ nop +#endif diff --git a/src/os/motor.c b/src/os/motor.c index 452c5ec7d0..488df2ab8b 100644 --- a/src/os/motor.c +++ b/src/os/motor.c @@ -4,11 +4,7 @@ #include "PR/siint.h" #ifndef BBPLAYER -/* -static OSPifRam __MotorDataBuf[MAXCONTROLLERS] ALIGNED(8); -*/ - -extern OSPifRam __MotorDataBuf[MAXCONTROLLERS]; +static OSPifRam __MotorDataBuf[MAXCONTROLLERS] OSALIGNED(8); #endif #define READFORMAT(ptr) ((__OSContRamReadFormat*)(ptr)) diff --git a/src/os/nusys/nuboot.c b/src/os/nusys/nuboot.c index 1e9f03c03c..8220035dbe 100644 --- a/src/os/nusys/nuboot.c +++ b/src/os/nusys/nuboot.c @@ -5,10 +5,12 @@ NOP_FIX -SHIFT_BSS u64 nuMainStack[NU_SC_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS u64 IdleStack[NU_SC_STACK_SIZE / sizeof(u64)]; -SHIFT_BSS OSThread IdleThread; // idle thread, id 1 -SHIFT_BSS OSThread MainThread; // id 3 +u64 nuMainStack[NU_SC_STACK_SIZE / sizeof(u64)]; +static OSThread IdleThread; // idle thread, id 1 +static OSThread MainThread; // id 3 +static u64 IdleStack[NU_SC_STACK_SIZE / sizeof(u64)]; + +void (*nuIdleFunc)(void); void nuBoot(void) { osInitialize(); diff --git a/src/os/nusys/nucontmgr.c b/src/os/nusys/nucontmgr.c index 028694dd0f..176cefea6b 100644 --- a/src/os/nusys/nucontmgr.c +++ b/src/os/nusys/nucontmgr.c @@ -3,6 +3,17 @@ NOP_FIX +OSMesgQueue nuContWaitMesgQ; +static OSMesg nuContWaitMesgBuf; +OSMesgQueue nuContDataMutexQ; +static OSMesg nuContDataMutexBuf; +OSContStatus nuContStatus[NU_CONT_MAXCONTROLLERS]; +OSContPad nuContData[NU_CONT_MAXCONTROLLERS]; +u32 nuContNum; +u32 nuContDataLockKey; + +OSPfs nuContPfs[NU_CONT_MAXCONTROLLERS]; + static s32 contRetrace(NUSiCommonMesg* mesg); static s32 contRead(NUSiCommonMesg* mesg); static s32 contReadNW(NUSiCommonMesg* mesg); @@ -21,10 +32,6 @@ static s32 (*funcList[])(NUSiCommonMesg*) = { NUCallBackList nuContCallBack = { NULL, funcList, NU_SI_MAJOR_NO_CONT }; -extern OSMesg nuContWaitMesgBuf; -extern OSMesg nuContDataMutexBuf; -extern OSMesgQueue nuContDataMutexQ; - u8 nuContMgrInit(void) { s32 i; u8 pattern; diff --git a/src/os/nusys/nucontrmbmgr.c b/src/os/nusys/nucontrmbmgr.c index d57f9d42c2..c0b0169c53 100644 --- a/src/os/nusys/nucontrmbmgr.c +++ b/src/os/nusys/nucontrmbmgr.c @@ -1,6 +1,9 @@ #include "common.h" #include "nu/nusys.h" +NUContRmbCtl nuContRmbCtl[NU_CONT_MAXCONTROLLERS]; +u32 nuContRmbSearchTime = NU_CONT_RMB_AUTO_SEARCHTIME; + s32 contRmbRetrace(NUSiCommonMesg* mesg); s32 contRmbCheckMesg(NUSiCommonMesg* mesg); s32 contRmbStartMesg(NUSiCommonMesg* mesg); @@ -8,8 +11,6 @@ s32 contRmbStopMesg(NUSiCommonMesg* mesg); s32 contRmbForceStopMesg(NUSiCommonMesg* mesg); s32 contRmbForceStopEndMesg(NUSiCommonMesg* mesg); -u32 nuContRmbSearchTime = 300; - s32 (*D_80093CE4[])(NUSiCommonMesg*) = { contRmbRetrace, contRmbCheckMesg, contRmbStartMesg, contRmbStopMesg, contRmbForceStopMesg, contRmbForceStopEndMesg, NULL diff --git a/src/os/nusys/nugfxtaskmgr.c b/src/os/nusys/nugfxtaskmgr.c index d8b65eefe1..16e3284ed6 100644 --- a/src/os/nusys/nugfxtaskmgr.c +++ b/src/os/nusys/nugfxtaskmgr.c @@ -6,18 +6,25 @@ NUGfxSwapCfbFunc nuGfxSwapCfbFunc = NULL; NUGfxTaskEndFunc nuGfxTaskEndFunc = NULL; u16 beforeFlag = 0; -extern OSMesg D_8009E6D0[NU_GFX_TASKMGR_MESGS]; -extern OSMesgQueue D_800DAC90; -extern NUScTask* nuGfxTask_ptr; -extern s16 taskDoneMsg; -extern s16 swapBufMsg; -extern OSThread GfxTaskMgrThread; -extern NUScTask nuGfxTask[NU_GFX_TASK_NUM]; -extern s32 D_800DA040; -extern s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)]; -extern u64 GfxTaskMgrStack[NU_GFX_TASKMGR_STACK_SIZE / sizeof(u64)]; +static NUScTask* nuGfxTask_ptr; +static s16 taskDoneMsg; +static s16 swapBufMsg; +static OSThread GfxTaskMgrThread; +static u64 GfxTaskMgrStack[NU_GFX_TASKMGR_STACK_SIZE / sizeof(u64)] ALIGNED(16); +static OSMesg D_8009E6D0[NU_GFX_TASKMGR_MESGS]; + +NUScTask nuGfxTask[NU_GFX_TASK_NUM]; +u64 D_800DA040[0x400 / sizeof(u64)]; +s32 D_800B91D0[NU_GFX_RDP_OUTPUTBUFF_SIZE / sizeof(u32)]; + extern u8 rspbootUcodeBuffer[]; +u32 nuGfxCfbCounter; +u32 nuGfxDisplay; +NUUcode* nuGfxUcode; +volatile u32 nuGfxTaskSpool; +OSMesgQueue D_800DAC90; + void nuGfxTaskMgr(void* data) { NUScTask* task; s16* msg; diff --git a/src/os/nusys/nugfxthread.c b/src/os/nusys/nugfxthread.c index bdd21a4860..dbc5dac5df 100644 --- a/src/os/nusys/nugfxthread.c +++ b/src/os/nusys/nugfxthread.c @@ -5,10 +5,11 @@ void gfxThread(void*); NUGfxFunc nuGfxFunc = NULL; NUGfxPreNMIFunc nuGfxPreNMIFunc = NULL; +OSMesgQueue nuGfxMesgQ; +static OSMesg nuGfxMesgBuf[NU_GFX_MESGS]; +static char GfxStack[NU_GFX_STACK_SIZE]; -extern char GfxStack[NU_GFX_STACK_SIZE]; -extern OSThread D_800B1B90; -extern OSMesg nuGfxMesgBuf[NU_GFX_MESGS]; +OSThread D_800B1B90; void nuGfxThreadStart(void) { osCreateThread(&D_800B1B90, 4, gfxThread, NULL, &GfxStack[NU_GFX_STACK_SIZE], NU_GFX_THREAD_PRI); diff --git a/src/os/nusys/nupiinit.c b/src/os/nusys/nupiinit.c index 93846f4db1..a95d5f3182 100644 --- a/src/os/nusys/nupiinit.c +++ b/src/os/nusys/nupiinit.c @@ -1,8 +1,9 @@ #include "common.h" #include "nu/nusys.h" -extern OSMesgQueue D_800AC5D0; -extern OSMesg D_800AC5E8[NU_PI_MESG_NUM]; +static OSMesgQueue D_800AC5D0; +static OSMesg D_800AC5E8[NU_PI_MESG_NUM]; +OSPiHandle* nuPiCartHandle; void nuPiInit(void) { osCreatePiManager(OS_PRIORITY_PIMGR, &D_800AC5D0, D_800AC5E8, NU_PI_MESG_NUM); diff --git a/src/os/nusys/nusched.c b/src/os/nusys/nusched.c index a93753d81f..991bafa235 100644 --- a/src/os/nusys/nusched.c +++ b/src/os/nusys/nusched.c @@ -3,11 +3,13 @@ NOP_FIX +NUSched nusched; NUScPreNMIFunc nuScPreNMIFunc = NULL; +u8 nuScPreNMIFlag; char nusys_version[] = "NuSystem2.05"; -u32 nuScRetraceCounter = (u32) nusys_version; // wtf? +u32 nuScRetraceCounter = (u32) nusys_version; void nuScEventHandler(void); void nuScExecuteAudio(void); @@ -15,9 +17,9 @@ void nuScExecuteGraphics(void); void nuScEventBroadcast(NUScMsg* msg); void nuScWaitTaskReady(NUScTask* task); -extern u64 nuScStack[NU_SC_STACK_SIZE / sizeof(u64)]; -extern u64 nuScAudioStack[NU_SC_STACK_SIZE / sizeof(u64)]; -extern u64 nuScGraphicsStack[NU_SC_STACK_SIZE / sizeof(u64)]; +static u64 nuScStack[NU_SC_STACK_SIZE / sizeof(u64)]; +static u64 nuScAudioStack[NU_SC_STACK_SIZE / sizeof(u64)]; +static u64 nuScGraphicsStack[NU_SC_STACK_SIZE / sizeof(u64)]; void nuScCreateScheduler(u8 videoMode, u8 numFields) { nusched.curGraphicsTask = NULL; diff --git a/src/os/nusys/nusimgr.c b/src/os/nusys/nusimgr.c index 616cd20b7e..c0244eace7 100644 --- a/src/os/nusys/nusimgr.c +++ b/src/os/nusys/nusimgr.c @@ -1,15 +1,15 @@ #include "common.h" #include "nu/nusys.h" +OSMesgQueue nuSiMesgQ; +static OSMesg nuSiMesgBuf[8]; +static OSThread siMgrThread; +static u64 siMgrStack[NU_SI_STACK_SIZE/sizeof(u64)]; +OSMesgQueue nuSiMgrMesgQ; NUCallBackList* nuSiCallBackList = NULL; -extern OSMesg nuSiMesgBuf[8]; -extern OSThread siMgrThread; - static void nuSiMgrThread(void* arg); -extern u64 siMgrStack[NU_SI_STACK_SIZE/sizeof(u64)]; - #if !VERSION_JP && !VERSION_IQUE u8 nuSiMgrInit(void) { u8 pattern; diff --git a/src/os/osFlash.c b/src/os/osFlash.c index 0e6ee1cc85..e22cdb076e 100644 --- a/src/os/osFlash.c +++ b/src/os/osFlash.c @@ -2,12 +2,12 @@ #include "PR/os_flash.h" // BSS -extern u32 __osFlashID[4]; -extern OSIoMesg __osFlashMsg; -extern OSMesgQueue __osFlashMessageQ; -extern OSPiHandle __osFlashHandler; -extern OSMesg __osFlashMsgBuf; -extern s32 __osFlashVersion; +u32 __osFlashID[4]; +OSIoMesg __osFlashMsg; +OSMesgQueue __osFlashMessageQ; +OSPiHandle __osFlashHandler; +OSMesg __osFlashMsgBuf; +s32 __osFlashVersion; OSPiHandle* osFlashReInit(u8 latency, u8 pulse, u8 page_size, u8 rel_duration, u32 start) { __osFlashHandler.baseAddress = PHYS_TO_K1(start); diff --git a/ver/us/asm/os/osGetCount.s b/src/os/osGetCount.s similarity index 100% rename from ver/us/asm/os/osGetCount.s rename to src/os/osGetCount.s diff --git a/ver/us/asm/os/osInvalDCache.s b/src/os/osInvalDCache.s similarity index 96% rename from ver/us/asm/os/osInvalDCache.s rename to src/os/osInvalDCache.s index ace5b3679c..6105c8ecb2 100644 --- a/ver/us/asm/os/osInvalDCache.s +++ b/src/os/osInvalDCache.s @@ -14,7 +14,11 @@ glabel osInvalDCache /* 3CB2C 8006172C 00AB082B */ sltu $at, $a1, $t3 /* 3CB30 80061730 1020001E */ beqz $at, .L800617AC /* 3CB34 80061734 00000000 */ nop +#ifdef BBPLAYER +/* 3B8E8 800604E8 0080402D */ daddu $t0, $a0, $zero +#else /* 3CB38 80061738 00804021 */ addu $t0, $a0, $zero +#endif /* 3CB3C 8006173C 00854821 */ addu $t1, $a0, $a1 /* 3CB40 80061740 0109082B */ sltu $at, $t0, $t1 /* 3CB44 80061744 10200017 */ beqz $at, .L800617A4 diff --git a/ver/us/asm/os/osInvalICache.s b/src/os/osInvalICache.s similarity index 95% rename from ver/us/asm/os/osInvalICache.s rename to src/os/osInvalICache.s index cdc52d4d6c..15f91b94ec 100644 --- a/ver/us/asm/os/osInvalICache.s +++ b/src/os/osInvalICache.s @@ -14,7 +14,11 @@ glabel osInvalICache /* 3CBDC 800617DC 00AB082B */ sltu $at, $a1, $t3 /* 3CBE0 800617E0 1020000F */ beqz $at, .L80061820 /* 3CBE4 800617E4 00000000 */ nop +#ifdef BBPLAYER +/* 3B998 80060598 0080402D */ daddu $t0, $a0, $zero +#else /* 3CBE8 800617E8 00804021 */ addu $t0, $a0, $zero +#endif /* 3CBEC 800617EC 00854821 */ addu $t1, $a0, $a1 /* 3CBF0 800617F0 0109082B */ sltu $at, $t0, $t1 /* 3CBF4 800617F4 10200008 */ beqz $at, .L80061818 diff --git a/ver/us/asm/os/osMapTLB.s b/src/os/osMapTLB.s similarity index 100% rename from ver/us/asm/os/osMapTLB.s rename to src/os/osMapTLB.s diff --git a/ver/us/asm/os/osMapTLBRdb.s b/src/os/osMapTLBRdb.s similarity index 100% rename from ver/us/asm/os/osMapTLBRdb.s rename to src/os/osMapTLBRdb.s diff --git a/ver/us/asm/os/osSetIntMask.s b/src/os/osSetIntMask.s similarity index 61% rename from ver/us/asm/os/osSetIntMask.s rename to src/os/osSetIntMask.s index 9bd7ce8b6c..eb16a00e65 100644 --- a/ver/us/asm/os/osSetIntMask.s +++ b/src/os/osSetIntMask.s @@ -7,8 +7,72 @@ .section .rodata -dlabel D_80099AA0 -.short 0x0555, 0x0556, 0x0559, 0x055A, 0x0565, 0x0566, 0x0569, 0x056A, 0x0595, 0x0596, 0x0599, 0x059A, 0x05A5, 0x05A6, 0x05A9, 0x05AA, 0x0655, 0x0656, 0x0659, 0x065A, 0x0665, 0x0666, 0x0669, 0x066A, 0x0695, 0x0696, 0x0699, 0x069A, 0x06A5, 0x06A6, 0x06A9, 0x06AA, 0x0955, 0x0956, 0x0959, 0x095A, 0x0965, 0x0966, 0x0969, 0x096A, 0x0995, 0x0996, 0x0999, 0x099A, 0x09A5, 0x09A6, 0x09A9, 0x09AA, 0x0A55, 0x0A56, 0x0A59, 0x0A5A, 0x0A65, 0x0A66, 0x0A69, 0x0A6A, 0x0A95, 0x0A96, 0x0A99, 0x0A9A, 0x0AA5, 0x0AA6, 0x0AA9, 0x0AAA +dlabel __osRcpImTable + .short 0x0555 + .short 0x0556 + .short 0x0559 + .short 0x055A + .short 0x0565 + .short 0x0566 + .short 0x0569 + .short 0x056A + .short 0x0595 + .short 0x0596 + .short 0x0599 + .short 0x059A + .short 0x05A5 + .short 0x05A6 + .short 0x05A9 + .short 0x05AA + .short 0x0655 + .short 0x0656 + .short 0x0659 + .short 0x065A + .short 0x0665 + .short 0x0666 + .short 0x0669 + .short 0x066A + .short 0x0695 + .short 0x0696 + .short 0x0699 + .short 0x069A + .short 0x06A5 + .short 0x06A6 + .short 0x06A9 + .short 0x06AA + .short 0x0955 + .short 0x0956 + .short 0x0959 + .short 0x095A + .short 0x0965 + .short 0x0966 + .short 0x0969 + .short 0x096A + .short 0x0995 + .short 0x0996 + .short 0x0999 + .short 0x099A + .short 0x09A5 + .short 0x09A6 + .short 0x09A9 + .short 0x09AA + .short 0x0A55 + .short 0x0A56 + .short 0x0A59 + .short 0x0A5A + .short 0x0A65 + .short 0x0A66 + .short 0x0A69 + .short 0x0A6A + .short 0x0A95 + .short 0x0A96 + .short 0x0A99 + .short 0x0A9A + .short 0x0AA5 + .short 0x0AA6 + .short 0x0AA9 + .short 0x0AAA +.size __osRcpImTable, . - __osRcpImTable .section .text, "ax" @@ -18,7 +82,12 @@ glabel osSetIntMask /* 3BD48 80060948 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) /* 3BD4C 8006094C 25085900 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) /* 3BD50 80060950 8D0B0000 */ lw $t3, ($t0) +#ifdef BBPLAYER +/* 421A4 80066DA4 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 421A8 80066DA8 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 3BD54 80060954 2401FFFF */ addiu $at, $zero, -1 +#endif /* 3BD58 80060958 01614026 */ xor $t0, $t3, $at /* 3BD5C 8006095C 3108FF00 */ andi $t0, $t0, 0xff00 /* 3BD60 80060960 00481025 */ or $v0, $v0, $t0 @@ -26,7 +95,12 @@ glabel osSetIntMask /* 3BD68 80060968 8D4A000C */ lw $t2, %lo(D_A430000C)($t2) /* 3BD6C 8006096C 11400005 */ beqz $t2, .L80060984 /* 3BD70 80060970 000B4C02 */ srl $t1, $t3, 0x10 +#ifdef BBPLAYER +/* 421C8 80066DC8 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) +/* 421CC 80066DCC 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) +#else /* 3BD74 80060974 2401FFFF */ addiu $at, $zero, -1 +#endif /* 3BD78 80060978 01214826 */ xor $t1, $t1, $at /* 3BD7C 8006097C 3129003F */ andi $t1, $t1, 0x3f /* 3BD80 80060980 01495025 */ or $t2, $t2, $t1 @@ -37,9 +111,9 @@ glabel osSetIntMask /* 3BD90 80060990 00814024 */ and $t0, $a0, $at /* 3BD94 80060994 010B4024 */ and $t0, $t0, $t3 /* 3BD98 80060998 000843C2 */ srl $t0, $t0, 0xf -/* 3BD9C 8006099C 3C0A800A */ lui $t2, %hi(D_80099AA0) +/* 3BD9C 8006099C 3C0A800A */ lui $t2, %hi(__osRcpImTable) /* 3BDA0 800609A0 01485021 */ addu $t2, $t2, $t0 -/* 3BDA4 800609A4 954A9AA0 */ lhu $t2, %lo(D_80099AA0)($t2) +/* 3BDA4 800609A4 954A9AA0 */ lhu $t2, %lo(__osRcpImTable)($t2) /* 3BDA8 800609A8 3C01A430 */ lui $at, %hi(D_A430000C) /* 3BDAC 800609AC AC2A000C */ sw $t2, %lo(D_A430000C)($at) /* 3BDB0 800609B0 3088FF01 */ andi $t0, $a0, 0xff01 diff --git a/ver/us/asm/os/osUnmapTLB.s b/src/os/osUnmapTLB.s similarity index 100% rename from ver/us/asm/os/osUnmapTLB.s rename to src/os/osUnmapTLB.s diff --git a/ver/us/asm/os/osUnmapTLBAll.s b/src/os/osUnmapTLBAll.s similarity index 100% rename from ver/us/asm/os/osUnmapTLBAll.s rename to src/os/osUnmapTLBAll.s diff --git a/ver/us/asm/os/osWritebackDCache.s b/src/os/osWritebackDCache.s similarity index 95% rename from ver/us/asm/os/osWritebackDCache.s rename to src/os/osWritebackDCache.s index c179717552..d73432af59 100644 --- a/ver/us/asm/os/osWritebackDCache.s +++ b/src/os/osWritebackDCache.s @@ -14,7 +14,11 @@ glabel osWritebackDCache /* 3CC5C 8006185C 00AB082B */ sltu $at, $a1, $t3 /* 3CC60 80061860 1020000F */ beqz $at, .L800618A0 /* 3CC64 80061864 00000000 */ nop +#ifdef BBPLAYER +/* 3BA18 80060618 0080402D */ daddu $t0, $a0, $zero +#else /* 3CC68 80061868 00804021 */ addu $t0, $a0, $zero +#endif /* 3CC6C 8006186C 00854821 */ addu $t1, $a0, $a1 /* 3CC70 80061870 0109082B */ sltu $at, $t0, $t1 /* 3CC74 80061874 10200008 */ beqz $at, .L80061898 diff --git a/ver/us/asm/os/osWritebackDCacheAll.s b/src/os/osWritebackDCacheAll.s similarity index 100% rename from ver/us/asm/os/osWritebackDCacheAll.s rename to src/os/osWritebackDCacheAll.s diff --git a/ver/ique/asm/os/padding.s b/src/os/padding.s similarity index 100% rename from ver/ique/asm/os/padding.s rename to src/os/padding.s diff --git a/ver/jp/asm/os/padding_alt.s b/src/os/padding_alt.s similarity index 100% rename from ver/jp/asm/os/padding_alt.s rename to src/os/padding_alt.s diff --git a/ver/ique/asm/os/parameters.s b/src/os/parameters.s similarity index 97% rename from ver/ique/asm/os/parameters.s rename to src/os/parameters.s index 9c6fbf3c30..c3d2e3b7b2 100644 --- a/ver/ique/asm/os/parameters.s +++ b/src/os/parameters.s @@ -34,7 +34,7 @@ osMemSize = 0x80000318 .globl osAppNMIBuffer osAppNMIBuffer = 0x8000031C - +#ifdef BBPLAYER .globl __osBbEepromAddress __osBbEepromAddress = 0x8000035c @@ -81,3 +81,6 @@ __osBbStateDirty = 0x800003b4 __osBbAuxDataLimit = 0x800003b8 .fill 0x70 +#else +.fill 0x60 +#endif diff --git a/src/os/piacs.c b/src/os/piacs.c index f0e079cdd6..d1c6e14f09 100644 --- a/src/os/piacs.c +++ b/src/os/piacs.c @@ -1,9 +1,10 @@ +#include "macros.h" #include "PR/os_internal.h" #define PI_Q_BUF_LEN 1 u32 __osPiAccessQueueEnabled = 0; -extern OSMesg piAccessBuf[PI_Q_BUF_LEN]; -extern OSMesgQueue __osPiAccessQueue; +static OSMesg piAccessBuf[PI_Q_BUF_LEN]; +OSMesgQueue __osPiAccessQueue OSALIGNED(8); void __osPiCreateAccessQueue(void) { __osPiAccessQueueEnabled = 1; diff --git a/src/os/pimgr.c b/src/os/pimgr.c index 813beb494e..ef97edec44 100644 --- a/src/os/pimgr.c +++ b/src/os/pimgr.c @@ -4,25 +4,17 @@ #include "PR/piint.h" #include "PR/rdb.h" -extern OSThread piThread; -extern char piThreadStack[OS_PIM_STACKSIZE]; +static OSThread piThread OSALIGNED(8); +static char piThreadStack[OS_PIM_STACKSIZE] OSALIGNED(16); -extern OSMesgQueue piEventQueue; -extern OSMesg piEventBuf[1]; - -/* -static OSThread piThread ALIGNED(8); -static char piThreadStack[OS_PIM_STACKSIZE] ALIGNED(16); - -static OSMesgQueue piEventQueue ALIGNED(8); +static OSMesgQueue piEventQueue OSALIGNED(8); static OSMesg piEventBuf[1]; -*/ OSDevMgr __osPiDevMgr = { 0 }; OSPiHandle* __osPiTable = NULL; -OSPiHandle __Dom1SpeedParam ALIGNED(8); -OSPiHandle __Dom2SpeedParam ALIGNED(8); -OSPiHandle* __osCurrentHandle[2] ALIGNED(8) = { &__Dom1SpeedParam, &__Dom2SpeedParam }; +OSPiHandle __Dom1SpeedParam OSALIGNED(8); +OSPiHandle __Dom2SpeedParam OSALIGNED(8); +OSPiHandle* __osCurrentHandle[2] OSALIGNED(8) = { &__Dom1SpeedParam, &__Dom2SpeedParam }; void osCreatePiManager(OSPri pri, OSMesgQueue* cmdQ, OSMesg* cmdBuf, s32 cmdMsgCnt) { u32 savedMask; diff --git a/src/os/seteventmesg.c b/src/os/seteventmesg.c index b0156d7308..c0a633b3b1 100644 --- a/src/os/seteventmesg.c +++ b/src/os/seteventmesg.c @@ -1,5 +1,7 @@ +#include "macros.h" #include +__OSEventState __osEventStateTab[OS_NUM_EVENTS] OSALIGNED(8); u32 __osPreNMI = 0; void osSetEventMesg(OSEvent event, OSMesgQueue *mq, OSMesg msg) { diff --git a/ver/us/asm/os/setfpccsr.s b/src/os/setfpccsr.s similarity index 100% rename from ver/us/asm/os/setfpccsr.s rename to src/os/setfpccsr.s diff --git a/ver/us/asm/os/setsr.s b/src/os/setsr.s similarity index 100% rename from ver/us/asm/os/setsr.s rename to src/os/setsr.s diff --git a/src/os/siacs.c b/src/os/siacs.c index e288f0cbff..d49970c81c 100644 --- a/src/os/siacs.c +++ b/src/os/siacs.c @@ -1,10 +1,11 @@ +#include "macros.h" #include #define SI_Q_BUF_LEN 1 u32 __osSiAccessQueueEnabled = 0; -extern OSMesg siAccessBuf[SI_Q_BUF_LEN]; -extern OSMesgQueue __osSiAccessQueue; +static OSMesg siAccessBuf[SI_Q_BUF_LEN] OSALIGNED(8); +OSMesgQueue __osSiAccessQueue OSALIGNED(8); void __osSiCreateAccessQueue(void) { __osSiAccessQueueEnabled = 1; diff --git a/ver/ique/asm/os/skapi.s b/src/os/skapi.s similarity index 100% rename from ver/ique/asm/os/skapi.s rename to src/os/skapi.s diff --git a/src/os/sptask.c b/src/os/sptask.c index 2862a87ec9..ed900e721e 100644 --- a/src/os/sptask.c +++ b/src/os/sptask.c @@ -9,7 +9,7 @@ ptr = (void *)osVirtualToPhysical(ptr); \ } -extern OSTask tmp_task; +static OSTask tmp_task; #if VERSION_IQUE static OSTask* _VirtualToPhysicalTask(OSTask* intp) { diff --git a/src/os/vi.c b/src/os/vi.c index 4b97c4ac5c..0006055a4e 100644 --- a/src/os/vi.c +++ b/src/os/vi.c @@ -7,7 +7,7 @@ #include "PR/rcp.h" #include "PR/viint.h" -static __OSViContext vi[2] ALIGNED(8) = {{0}, {0}}; +static __OSViContext vi[2] OSALIGNED(8) = {{0}, {0}}; __OSViContext *__osViCurr = &vi[0]; __OSViContext *__osViNext = &vi[1]; diff --git a/src/os/vimgr.c b/src/os/vimgr.c index 73f9e1809b..d04ae0a1c1 100644 --- a/src/os/vimgr.c +++ b/src/os/vimgr.c @@ -7,12 +7,12 @@ OSDevMgr __osViDevMgr = {0}; u32 __additional_scanline = 0; -extern OSThread viThread; -extern unsigned char viThreadStack[OS_VIM_STACKSIZE] ALIGNED(16); -extern OSMesgQueue viEventQueue; -extern OSMesg viEventBuf[5] ALIGNED(8); -extern OSIoMesg viRetraceMsg ALIGNED(8); -extern OSIoMesg viCounterMsg ALIGNED(8); +static OSThread viThread; +static unsigned char viThreadStack[OS_VIM_STACKSIZE] OSALIGNED(16); +static OSMesgQueue viEventQueue OSALIGNED(8); +static OSMesg viEventBuf[5] OSALIGNED(8); +static OSIoMesg viRetraceMsg OSALIGNED(8); +static OSIoMesg viCounterMsg OSALIGNED(8); static void viMgrMain(void *arg); @@ -64,13 +64,11 @@ void osCreateViManager(OSPri pri) { } } -extern u16 retrace; - static void viMgrMain(void *arg) { __OSViContext *vc; OSDevMgr *dm; OSIoMesg *mb; - //static u16 retrace; + static u16 retrace; s32 first; u32 count; diff --git a/src/screen_overlays.c b/src/screen_overlays.c index 5627d7ba17..797cb72323 100644 --- a/src/screen_overlays.c +++ b/src/screen_overlays.c @@ -2,12 +2,12 @@ #include "overlay.h" #include "include_asset.h" -SHIFT_BSS s32 screen_overlay_frontType; -SHIFT_BSS f32 screen_overlay_frontZoom; -SHIFT_BSS s32 screen_overlay_backType; -SHIFT_BSS f32 screen_overlay_backZoom; -SHIFT_BSS s32 D_80156910; -SHIFT_BSS ScreenOverlay ScreenOverlays[2]; +BSS s32 screen_overlay_frontType; +BSS f32 screen_overlay_frontZoom; +BSS s32 screen_overlay_backType; +BSS f32 screen_overlay_backZoom; +BSS s32 D_80156910; +ScreenOverlay ScreenOverlays[2]; ScreenTransition CurrentScreenTransition = TRANSITION_END_DEMO_SCENE_BLACK; diff --git a/src/sprite_shading.c b/src/sprite_shading.c index 4cf98bb499..6a826adac4 100644 --- a/src/sprite_shading.c +++ b/src/sprite_shading.c @@ -2,13 +2,14 @@ #include "sprite.h" #include "nu/nusys.h" -SHIFT_BSS SpriteShadingProfile* gSpriteShadingProfile; -SHIFT_BSS SpriteShadingProfile wSpriteShadingProfile; -SHIFT_BSS SpriteShadingProfile bSpriteShadingProfile; -SHIFT_BSS SpriteShadingProfile wSpriteShadingProfileAux; -SHIFT_BSS SpriteShadingProfile bSpriteShadingProfileAux; -SHIFT_BSS SpriteShadingProfile* gAuxSpriteShadingProfile; -SHIFT_BSS PAL_BIN SpriteShadingPalette[16]; +SpriteShadingProfile* gSpriteShadingProfile; +SpriteShadingProfile* gAuxSpriteShadingProfile; + +BSS SpriteShadingProfile wSpriteShadingProfile; +BSS SpriteShadingProfile bSpriteShadingProfile; +BSS SpriteShadingProfile wSpriteShadingProfileAux; +BSS SpriteShadingProfile bSpriteShadingProfileAux; +BSS PAL_BIN SpriteShadingPalette[16]; void appendGfx_shading_palette(Matrix4f mtx, s32 uls, s32 ult, s32 lrs, s32 lrt, s32 alpha, f32 shadowX, f32 shadowY, f32 shadowZ, diff --git a/src/state_battle.c b/src/state_battle.c index c75fbd0807..d0c4d91402 100644 --- a/src/state_battle.c +++ b/src/state_battle.c @@ -19,9 +19,9 @@ s32 D_800778AC[] = { 0x00000000, 0xFFFFFF00, 0xFFFFFF00, 0x00000000, 0x00000000 }; -SHIFT_BSS s8 D_800A0900; -SHIFT_BSS s32 D_800A0904; -SHIFT_BSS s32 D_800A0908; +BSS s8 D_800A0900; +BSS s32 D_800A0904; +BSS s32 D_800A0908; #if defined(SHIFT) || VERSION_IQUE #define shim_battle_heap_create_obfuscated battle_heap_create diff --git a/src/state_file_select.c b/src/state_file_select.c index 0a6a82fcd5..010c9d3bfb 100644 --- a/src/state_file_select.c +++ b/src/state_file_select.c @@ -42,9 +42,9 @@ u8 IntroMessageIdx = 0; extern s32 D_80200000; extern ShapeFile gMapShapeData; -SHIFT_BSS s8 D_800A0930; -SHIFT_BSS s8 D_800A0931; -SHIFT_BSS s16 D_800A0932[1]; +BSS s8 D_800A0930; +BSS s8 D_800A0931; +static s16 D_800A0932[1]; // TODO any possible workaround to make this visible? void state_init_language_select(void) { D_800A0931 = 0; diff --git a/src/state_intro.c b/src/state_intro.c index a2de9ad898..427da19607 100644 --- a/src/state_intro.c +++ b/src/state_intro.c @@ -12,15 +12,15 @@ enum IntroStates { INTRO_ENABLE_DRAW_FRAME = 0x00000015, // unused }; -SHIFT_BSS s32 IntroEnableDrawFrameDelay; -SHIFT_BSS s16 IntroOverlayAlpha; -SHIFT_BSS s16 IntroFrontFadeAlpha; -SHIFT_BSS s16 IntroOverlayDelta; -SHIFT_BSS s16 IntroFadeColorR; -SHIFT_BSS s16 IntroFadeColorG; -SHIFT_BSS s16 IntroFadeColorB; -SHIFT_BSS s32 IntroOverlayType; -SHIFT_BSS s32 D_800A0964; // related to skipping the intro +BSS s32 IntroEnableDrawFrameDelay; +BSS s16 IntroOverlayAlpha; +BSS s16 IntroFrontFadeAlpha; +BSS s16 IntroOverlayDelta; +BSS s16 IntroFadeColorR; +BSS s16 IntroFadeColorG; +BSS s16 IntroFadeColorB; +BSS s32 IntroOverlayType; +BSS s32 D_800A0964; // related to skipping the intro void state_init_intro(void) { s8 viewportMode; diff --git a/src/state_logos.c b/src/state_logos.c index 6198540b54..f09e28e39e 100644 --- a/src/state_logos.c +++ b/src/state_logos.c @@ -57,10 +57,10 @@ Gfx D_80077908[] = { gsSPEndDisplayList(), }; -SHIFT_BSS u8* gLogosImages; -SHIFT_BSS u8* gLogosImage3; -SHIFT_BSS u8* gLogosImage1; -SHIFT_BSS u8* gLogosImage2; +BSS u8* gLogosImages; +BSS u8* gLogosImage3; +BSS u8* gLogosImage1; +BSS u8* gLogosImage2; void state_init_logos(void) { s8* romStart; diff --git a/src/state_pause.c b/src/state_pause.c index 7c0539c214..295f7ecd18 100644 --- a/src/state_pause.c +++ b/src/state_pause.c @@ -39,10 +39,10 @@ NUPiOverlaySegment D_8007795C = { .bssEnd = pause_BSS_END, }; -SHIFT_BSS s8 StepPauseDelay; -SHIFT_BSS s8 StepPauseState; -SHIFT_BSS s16 StepPauseAlpha; // effectively unused, always zero -SHIFT_BSS s32 SavedReverbMode; +BSS s8 StepPauseDelay; +BSS s8 StepPauseState; +BSS s16 StepPauseAlpha; // effectively unused, always zero +BSS s32 SavedReverbMode; void state_init_pause(void) { StepPauseState = 0; diff --git a/src/state_title_screen.c b/src/state_title_screen.c index 4d2b41dbd0..18459bce4a 100644 --- a/src/state_title_screen.c +++ b/src/state_title_screen.c @@ -98,15 +98,13 @@ typedef struct TitleDataStruct { #define COPYRIGHT_WIDTH 144 #endif -SHIFT_BSS s16 TitleScreen_AppearDelay; -SHIFT_BSS TitleDataStruct* TitleScreen_ImgList; -SHIFT_BSS s32* TitleScreen_ImgList_Logo; -SHIFT_BSS u8 (*TitleScreen_ImgList_Copyright)[COPYRIGHT_WIDTH]; -SHIFT_BSS s32* TitleScreen_ImgList_PressStart; -#if VERSION_JP -SHIFT_BSS s32* TitleScreen_ImgList_CopyrightPalette; -#endif -SHIFT_BSS s16 TitleScreen_TimeLeft; +BSS s16 TitleScreen_AppearDelay; +BSS TitleDataStruct* TitleScreen_ImgList; +BSS s32* TitleScreen_ImgList_Logo; +BSS u8 (*TitleScreen_ImgList_Copyright)[COPYRIGHT_WIDTH]; +BSS s32* TitleScreen_ImgList_PressStart; +BSS s32* TitleScreen_ImgList_CopyrightPalette; +BSS s16 TitleScreen_TimeLeft; void appendGfx_title_screen(void); void draw_title_screen_NOP(void); diff --git a/src/status_icons.c b/src/status_icons.c index a24b13e4a9..78b241af3b 100644 --- a/src/status_icons.c +++ b/src/status_icons.c @@ -80,9 +80,9 @@ s32 D_80078168[] = { MSG_Menus_Merlee_Exhausted, }; -SHIFT_BSS PopupMessage D_800A0BC0[32]; -SHIFT_BSS s32 D_800A0F40; -SHIFT_BSS HudStatusIcon* D_800A0F44; +BSS PopupMessage D_800A0BC0[32]; +BSS s32 D_800A0F40; +BSS HudStatusIcon* D_800A0F44; extern HudScript HES_Item_Present; extern HudScript HES_AsleepBegin; diff --git a/src/trigger.c b/src/trigger.c index 5499619aff..fbfaa1335d 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -1,9 +1,9 @@ #include "common.h" -SHIFT_BSS s16 gTriggerCount; -SHIFT_BSS TriggerList wTriggerList; -SHIFT_BSS TriggerList bTriggerList; -SHIFT_BSS TriggerList* gCurrentTriggerListPtr; +s16 gTriggerCount; +BSS TriggerList wTriggerList; +BSS TriggerList bTriggerList; +BSS TriggerList* gCurrentTriggerListPtr; void default_trigger_on_activate(Trigger* self) { self->flags |= TRIGGER_ACTIVATED; diff --git a/src/windows.c b/src/windows.c index 8ec77c6a80..119e1221e9 100644 --- a/src/windows.c +++ b/src/windows.c @@ -20,7 +20,7 @@ typedef struct WindowGroup { /* 0x01 */ u8 max; } WindowGroup; // size = 0x02 -SHIFT_BSS Window gWindows[64]; +Window gWindows[64]; WindowStyle gWindowStyles[64] = { { WINDOW_STYLE_3 }, { WINDOW_STYLE_3 }, { WINDOW_STYLE_11 }, { WINDOW_STYLE_12 }, diff --git a/src/worker.c b/src/worker.c index 74de70d890..357fae23ce 100644 --- a/src/worker.c +++ b/src/worker.c @@ -1,8 +1,8 @@ #include "common.h" -SHIFT_BSS WorkerList gWorldWorkerList; -SHIFT_BSS WorkerList gBattleWorkerList; -SHIFT_BSS WorkerList* gCurrentWorkerListPtr; +BSS WorkerList gWorldWorkerList; +BSS WorkerList gBattleWorkerList; +BSS WorkerList* gCurrentWorkerListPtr; void worker_delegate_do_nothing(void) { } diff --git a/src/world/actions.c b/src/world/actions.c index 9e7e68fa1f..c409103ae7 100644 --- a/src/world/actions.c +++ b/src/world/actions.c @@ -38,6 +38,7 @@ void action_update_use_tweester(void); void action_update_state_23(void); #if VERSION_JP // TODO remove once segments are split +extern Addr world_use_item_VRAM; extern Addr world_action_idle_ROM_START; extern Addr world_action_idle_ROM_END; extern Addr world_action_walk_ROM_START; @@ -223,3 +224,23 @@ Action PlayerActionsTable[] = { [ACTION_STATE_INVALID_25] { action_update_launch, ACTION_FILE(walk), FALSE }, [ACTION_STATE_USE_SPRING] { action_update_launch, ACTION_FILE(misc), TRUE }, }; + +extern UseItemStruct UseItemDmaArgs; + +BSS s32 D_8010CD20; + +s32 use_consumable(s32 invSlot) { + Evt* script; + + D_8010CD20 = invSlot; + invSlot = gPlayerData.invItems[invSlot]; + dma_copy(UseItemDmaArgs.dmaStart, UseItemDmaArgs.dmaEnd, world_use_item_VRAM); + script = start_script(UseItemDmaArgs.main, EVT_PRIORITY_1, 0); + script->varTable[10] = invSlot; + return script->id; +} + +void remove_consumable(void) { + gPlayerData.invItems[D_8010CD20] = ITEM_NONE; + sort_items(); +} diff --git a/src/world/menus.c b/src/world/menus.c index 3b1f33b515..ddd446a985 100644 --- a/src/world/menus.c +++ b/src/world/menus.c @@ -24,8 +24,7 @@ enum WorldMenuTypes { WORLD_MENU_PAUSE = 2, }; -BSS s16 SwappedWorldMenus; -BSS char D_8010C9C4[0x4]; +BSS s32 D_8010C9C4; BSS PopupMenu WorldPopupMenu; BSS s16 WorldMenuType; BSS s16 WorldMenuDelay; diff --git a/src/world/partners.c b/src/world/partners.c index 8a3ba6327c..90110a0ec6 100644 --- a/src/world/partners.c +++ b/src/world/partners.c @@ -39,29 +39,27 @@ #include "partner/twink.h" #include "sprite/npc/Twink.h" -extern s32 D_8010CD20; - -SHIFT_BSS PartnerStatus gPartnerStatus; -SHIFT_BSS Npc* wPartnerNpc; +PartnerStatus gPartnerStatus; +Npc* wPartnerNpc; BSS s32 PartnerCommandState; BSS PlayerPathElement gPlayerMoveHistory[40]; BSS s32 gPlayerMoveHistoryIndex; BSS s32 D_8010CFBC; -SHIFT_BSS f32 wPartnerTetherDistance; -SHIFT_BSS s32 D_8010CFC4; -SHIFT_BSS s16 wPartnerFollowState; -SHIFT_BSS s16 D_8010CFCA; -SHIFT_BSS s16 D_8010CFCC; -SHIFT_BSS s16 D_8010CFCE; -SHIFT_BSS s32 wPartnerNpcIndex; -SHIFT_BSS Evt* wPartnerCurrentScript; -SHIFT_BSS s32 wCurrentPartnerId; -SHIFT_BSS s32 wPartnerCurrentScriptID; -SHIFT_BSS s32 D_8010CFE0; -SHIFT_BSS s32 NextPartnerID; -SHIFT_BSS s32 NextPartnerCommand; -SHIFT_BSS WorldPartner* wPartner; +BSS f32 wPartnerTetherDistance; +BSS s32 D_8010CFC4; +BSS s16 wPartnerFollowState; +BSS s16 D_8010CFCA; +BSS s16 D_8010CFCC; +BSS s16 D_8010CFCE; +BSS s32 wPartnerNpcIndex; +BSS Evt* wPartnerCurrentScript; +BSS s32 wCurrentPartnerId; +BSS s32 wPartnerCurrentScriptID; +BSS s32 D_8010CFE0; +BSS s32 NextPartnerID; +BSS s32 NextPartnerCommand; +BSS WorldPartner* wPartner; extern HudScript HES_Partner0; extern HudScript HES_Goombario; @@ -160,13 +158,6 @@ void _use_partner_ability(void); void partner_flying_follow_player(Npc*); void partner_move_to_goal(Npc*, s32); -typedef struct UseItemStruct { - /* 0x00 */ u8* dmaStart; - /* 0x04 */ u8* dmaEnd; - /* 0x08 */ EvtScript* main; - /* 0x0C */ s32 unk_0C; -} UseItemStruct; - // Partner icons HudScript* wPartnerHudScripts[] = { &HES_Partner0, &HES_Goombario, &HES_Kooper, &HES_Bombette, @@ -515,22 +506,6 @@ PartnerAnimations gPartnerAnimations[] = { f32 D_800F84F8 = 0.0f; -s32 use_consumable(s32 invSlot) { - Evt* script; - - D_8010CD20 = invSlot; - invSlot = gPlayerData.invItems[invSlot]; - dma_copy(UseItemDmaArgs.dmaStart, UseItemDmaArgs.dmaEnd, world_use_item_VRAM); - script = start_script(UseItemDmaArgs.main, EVT_PRIORITY_1, 0); - script->varTable[10] = invSlot; - return script->id; -} - -void remove_consumable(void) { - gPlayerData.invItems[D_8010CD20] = ITEM_NONE; - sort_items(); -} - s32 func_800EA4B0(s32 collisionID) { s32 ret = TRUE; diff --git a/src/world/world.c b/src/world/world.c index c08016f7b0..d5b092893f 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -44,12 +44,18 @@ s32 pad_map_table[] = { 0, 0 }; #define ASSET_TABLE_HEADER_SIZE 0x20 #define ASSET_TABLE_FIRST_ENTRY (ASSET_TABLE_ROM_START + ASSET_TABLE_HEADER_SIZE) -SHIFT_BSS MapSettings gMapSettings; -SHIFT_BSS MapConfig* gMapConfig; -SHIFT_BSS char wMapHitName[0x18]; -SHIFT_BSS char wMapShapeName[0x18]; -SHIFT_BSS char wMapTexName[0x18]; -SHIFT_BSS char wMapBgName[0x18]; +BSS MapConfig* gMapConfig; +BSS s32 D_800A41E4; +BSS MapSettings gMapSettings; + +#if VERSION_JP || VERSION_IQUE +char wMapHitName[0x14]; +#else +char wMapHitName[0x18]; +#endif +char wMapShapeName[0x18]; +char wMapTexName[0x18]; +char wMapBgName[0x14]; typedef struct { /* 0x00 */ char name[16]; diff --git a/tools/build/configure.py b/tools/build/configure.py index 48e9c01287..9ce2b8564a 100755 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -69,7 +69,7 @@ def write_ninja_rules( CPPFLAGS_272 = CPPFLAGS_COMMON + " -nostdinc" - CPPFLAGS_EGCS = CPPFLAGS_COMMON + " -D__USE_ISOC99 -DBBPLAYER -nostdinc" + CPPFLAGS_EGCS = CPPFLAGS_COMMON + " -D__USE_ISOC99 -nostdinc" CPPFLAGS = "-w " + CPPFLAGS_COMMON + " -nostdinc" @@ -643,6 +643,13 @@ class Configure: if isinstance(seg, splat.segtypes.n64.header.N64SegHeader): build(entry.object_path, entry.src_paths, "as") + elif isinstance(seg, splat.segtypes.common.hasm.CommonSegHasm): + cppflags = f"-DVERSION_{self.version.upper()}" + + if version == "ique" and seg.name.startswith("os/"): + cppflags += " -DBBPLAYER" + + build(entry.object_path, entry.src_paths, "as", variables={"cppflags": cppflags}) elif isinstance(seg, splat.segtypes.common.asm.CommonSegAsm) or ( isinstance(seg, splat.segtypes.common.data.CommonSegData) and not seg.type[0] == "." @@ -697,6 +704,14 @@ class Configure: if task == "cc_modern": cppflags += " -DMODERN_COMPILER" + if version == "ique": + if "nusys" in entry.src_paths[0].parts: + pass + elif "os" in entry.src_paths[0].parts: + cppflags += " -DBBPLAYER" + elif entry.src_paths[0].parts[-2] == "bss": + cppflags += " -DBBPLAYER" + encoding = "CP932" # similar to SHIFT-JIS, but includes backslash and tilde if version == "ique": encoding = "EUC-JP" diff --git a/ver/ique/asm/bss.s b/ver/ique/asm/bss.s deleted file mode 100644 index 63672b1346..0000000000 --- a/ver/ique/asm/bss.s +++ /dev/null @@ -1,931 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .bss - -dlabel nuScPreNMIFlag -.space 4 - -dlabel D_8009A5B4 -.space 4 - -dlabel D_8009A5B8 -.space 4 - -dlabel D_8009A5BC -.space 4 - -dlabel __osFlashVersion -.space 4 - -dlabel gSoundGlobals -.space 4 - -dlabel D_8009A5C4 -.space 4 - -dlabel __osBaseCounter -.space 4 - -dlabel gBGMPlayerC -.space 4 - -dlabel gEncounterSubState -.space 4 - -dlabel __osBbRCountWraps -.space 4 - -dlabel CurrentSefCmdHandler -.space 4 - -dlabel timeFreezeMode -.space 4 - -dlabel __osBbLastRCount -.space 4 - -dlabel nuGfxZBuffer -.space 4 - -dlabel nuContDataLockKey -.space 4 - -dlabel __osViIntrCount -.space 4 - -dlabel BeginSoundUpdateCallback -.space 4 - -dlabel D_8009A5EC -.space 4 - -dlabel nuGfxCfbCounter -.space 4 - -dlabel gCurrentModelTreeNodeInfo -.space 4 - -dlabel nuGfxDisplay -.space 4 - -dlabel gBGMPlayerB -.space 4 - -dlabel gEncounterState -.space 4 - -dlabel gNpcCount -.space 2 - -dlabel __osMaxControllers -.space 2 - -dlabel __osFlashMsgBuf -.space 4 - -dlabel __osCurrentTime -.space 8 - -dlabel nuGfxUcode -.space 4 - -dlabel nuContNum -.space 4 - -dlabel __osBbLastVCount -.space 4 - -dlabel nuGfxTaskSpool -.space 4 - -dlabel __osContLastCmd -.space 4 - -dlabel __osEepromTimerMsg -.space 4 - -dlabel D_8009A624 -.space 4 - -dlabel gAuAmbienceManager -.space 4 - -dlabel __osTimerCounter -.space 4 - -dlabel nuIdleFunc -.space 4 - -dlabel gCurrentCamID -.space 4 - -dlabel nuPiCartHandle -.space 4 - -dlabel __osBbVCountWraps -.space 4 - -dlabel D_8009A63C -.space 4 - -dlabel gSoundManager -.space 4 - -dlabel D_8009A644 -.space 8 - -dlabel nuGfxCfb_ptr -.space 4 - -dlabel gOverrideFlags -.space 4 - -dlabel HasPreBattleSongPushed -.space 4 - -dlabel nuGfxCfb -.space 4 - -dlabel D_8009A65C -.space 4 - -dlabel __osFinalrom -.space 4 - -dlabel gBGMPlayerA -.space 4 - -dlabel gFirstStrikeMessagePos -.space 4 - -dlabel gMainGfxPos -.space 4 - -dlabel D_8009A670 -.space 4 - -dlabel gDisplayContext -.space 4 - -dlabel D_8009A678 -.space 4 - -dlabel D_8009A67C -.space 4 - -.space 8 - -dlabel ResetFrameBufferArray -.space 4 - -dlabel D_8009A684 -.space 0x0000000c - -dlabel SoftResetDelay -.space 4 - -dlabel D_8009A694 -.space 0x0000000c - -dlabel D_8009A6A0 -.space 2 - -dlabel D_8009A6A2 -.space 2 - -dlabel D_8009A6A4 -.space 2 - -dlabel D_8009A6A6 -.space 2 - -dlabel D_8009A6A8 -.space 8 - -dlabel FetchSaveBuffer -.space 0x00001380 - -dlabel LogicalSaveInfo -.space 0x00000020 - -dlabel PhysicalSaveInfo -.space 0x00000030 - -dlabel NextAvailablePhysicalSave -.space 4 - -dlabel D_8009BA84 -.space 0x0000000c - -dlabel gCurtainScale -.space 4 - -dlabel gCurtainScaleGoal -.space 4 - -dlabel gCurtainFade -.space 4 - -dlabel gCurtainFadeGoal -.space 4 - -dlabel gCurtainDrawCallback -.space 4 - -dlabel D_8009BAA4 -.space 4 - -dlabel D_8009BAA8 -.space 0x00000080 - -dlabel D_8009BA28 -.space 8 - -dlabel gCrashScreen -.space 0x000009e0 - -dlabel nuGfxTask_ptr -.space 4 - -dlabel taskDoneMsg -.space 2 - -dlabel swapBufMsg -.space 2 - -dlabel GfxTaskMgrThread -.space 0x000001b0 - -.align 4 -dlabel GfxTaskMgrStack -.space 0x00002000 - -dlabel D_8009E6D0 -.space 0x00000020 - -dlabel gCurrentCamConfiguration -.space 0x0000001c - -dlabel D_800A08DC -.space 4 - -dlabel D_800A08E0 -.space 4 - -dlabel D_800A08E4 -.space 4 - -dlabel D_800A08E8 -.space 4 - -dlabel D_800A08EC -.space 4 - -dlabel CurGameMode -.space 4 - -dlabel D_800A08F4 -.space 0x0000000c - -dlabel D_800A0900 -.space 4 - -dlabel D_800A0904 -.space 4 - -dlabel D_800A0908 -.space 4 - -dlabel D_800A090C -.space 4 - -dlabel gLogosImages -.space 4 - -dlabel gLogosImage3 -.space 4 - -dlabel gLogosImage1 -.space 4 - -dlabel gLogosImage2 -.space 4 - -dlabel StepPauseDelay -.space 1 - -dlabel StepPauseState -.space 1 - -dlabel StepPauseAlpha -.space 2 - -dlabel SavedReverbMode -.space 4 - -dlabel D_800A0928 -.space 8 - -dlabel D_800A0930 -.space 1 - -dlabel D_800A0931 -.space 1 - -dlabel D_800A0932 -.space 2 - -dlabel D_800A0934 -.space 0x0000000c - -dlabel gMapTransitionAlpha -.space 2 - -dlabel gMapTransitionFadeRate -.space 2 - -dlabel gMapTransitionState -.space 2 - -dlabel gMapTransitionStateTime -.space 2 - -dlabel gLoadedFromFileSelect -.space 4 - -dlabel D_800A094C -.space 4 - -dlabel IntroEnableDrawFrameDelay -.space 4 - -dlabel IntroOverlayAlpha -.space 2 - -dlabel IntroFrontFadeAlpha -.space 2 - -dlabel IntroOverlayDelta -.space 2 - -dlabel IntroFadeColorR -.space 2 - -dlabel IntroFadeColorG -.space 2 - -dlabel IntroFadeColorB -.space 2 - -dlabel IntroOverlayType -.space 0x00000004 - -dlabel D_800A0964 -.space 4 - -dlabel D_800A0968 -.space 8 - -dlabel TitleScreen_AppearDelay -.space 4 - -dlabel TitleScreen_ImgList -.space 4 - -dlabel TitleScreen_ImgList_Logo -.space 4 - -dlabel TitleScreen_ImgList_Copyright -.space 4 - -dlabel TitleScreen_ImgList_PressStart -.space 4 - -dlabel D_800A0984 -.space 4 - -dlabel TitleScreen_TimeLeft -.space 4 - -dlabel D_800A098C -.space 4 - -dlabel gWorldNpcList -.space 0x00000100 - -dlabel gBattleNpcList -.space 0x00000100 - -dlabel gCurrentNpcListPtr -.space 4 - -dlabel gNpcPlayerCollisionsEnabled -.space 4 - -dlabel D_800A0B98 -.space 8 - -dlabel D_800A0BA0 -.space 4 - -dlabel D_800A0BA4 -.space 4 - -dlabel WorldMerleeOrbEffect -.space 4 - -dlabel WorldMerleeWaveEffect -.space 4 - -dlabel D_800A0BB0 -.space 4 - -dlabel D_800A0BB4 -.space 4 - -dlabel D_800A0BB8 -.space 4 - -dlabel D_800A0BBC -.space 4 - -dlabel D_800A0BC0 -.space 0x00000380 - -dlabel D_800A0F40 -.space 4 - -dlabel D_800A0F44 -.space 4 - -dlabel D_800A0F48 -.space 8 - -dlabel AuInitialGlobalVolume -.space 4 - -dlabel D_800A0F54 -.space 4 - -dlabel nuAuMgrThread -.space 0x000001b0 - -# TODO: figure out what this extra space is used for -.space 0x00000408 - -dlabel AuStack -.space 0x00002000 - -dlabel AlCmdListBuffers -.space 0x0000000c - -dlabel D_800A351C -.space 4 - -dlabel nuAuTasks -.space 0x00000108 - -dlabel D_800A3628 -.space 0x0000000c - -dlabel AlFrameSize -.space 4 - -dlabel AlMinFrameSize -.space 4 - -dlabel D_800A363C -.space 4 - -dlabel nuAuDmaMesgQ -.space 0x18 - -dlabel nuAuDmaMesgBuf -.space 0x000000c8 - -dlabel nuAuDmaIOMesgBuf -.space 0x000004b0 - -dlabel nuAuDmaState -.space 4 - -dlabel D_800A3BD4 -.space 4 - -dlabel D_800A3BD8 -.space 8 - -dlabel nuAuDmaBufList -.space 0x000003e8 - -dlabel D_800A3FC8 -.space 8 - -dlabel CurrentSeqCmdHandler -.space 4 - -dlabel D_800A3FD4 -.space 0x0000000c - -dlabel AuDelayBufferMain -.space 4 - -dlabel AuDelayBufferAux -.space 4 - -dlabel AuDelayCounter -.space 4 - -dlabel AuDelayedVoiceGroup -.space 2 - -dlabel AuDelayedChannel -.space 2 - -dlabel AuDelayCount -.space 4 - -dlabel D_800A3FF4 -.space 0x0000000c - -dlabel gEffectGraphicsData -.space 0x000001E0 - -dlabel gMapConfig -.space 4 - -dlabel D_800A41E4 -.space 4 - -dlabel gMapSettings -.space 0x40 - -.space 8 - -dlabel gCollisionRayStartX -.space 4 - -dlabel gCollisionRayStartY -.space 4 - -dlabel gCollisionRayStartZ -.space 4 - -dlabel gCollisionRayDirX -.space 4 - -dlabel gCollisionRayDirY -.space 4 - -dlabel gCollisionRayDirZ -.space 4 - -dlabel gCollisionPointX -.space 4 - -dlabel gCollisionPointY -.space 4 - -dlabel gCollisionPointZ -.space 4 - -dlabel gCollisionRayLength -.space 4 - -dlabel gCollisionNormalX -.space 4 - -dlabel gCollisionNormalY -.space 4 - -dlabel gCollisionNormalZ -.space 4 - -dlabel gCollisionDataBackup -.space 4 - -dlabel gCollisionDataZoneBackup -.space 4 - -dlabel D_800A426C -.space 4 - -dlabel IdleThread -.space 0x000001b0 - -dlabel MainThread -.space 0x000001b0 - -dlabel IdleStack -.space 0x00002000 - -dlabel nuScStack -.space 0x00002000 - -dlabel nuScAudioStack -.space 0x00002000 - -dlabel nuScGraphicsStack -.space 0x00002000 - -dlabel D_800AC5D0 -.space 4 - -dlabel D_800AC5D4 -.space 0x00000014 - -dlabel D_800AC5E8 -.space 0x000000c8 - -dlabel nuGfxMesgBuf -.space 0x00000020 - -dlabel GfxStack -.space 0x00002000 - -dlabel nuSiMesgBuf -.space 0x00000020 - -dlabel siMgrThread -.space 0x1b0 - -dlabel siMgrStack -.space 0x2000 - -dlabel nuContWaitMesgBuf -.space 4 - -dlabel nuContDataMutexBuf -.space 4 - -.align 4 -dlabel tmp_task -.space 0x00000040 - -dlabel siAccessBuf -.space 4 - -dlabel D_800AC6D8 -.space 8 - -.space 4 - -dlabel retrace -.space 4 - -.space 4 - -dlabel viThread -.space 0x1B0 - -dlabel viThreadStack -.space 0x1000 - -dlabel viEventQueue -.space 0x18 - -dlabel viEventBuf -.space 4 * 5 - -dlabel viRetraceMsg -.space 0x00000018 - -dlabel viCounterMsg -.space 0x00000018 - -.align 4 - -dlabel piThread -.space 0x1B0 - -dlabel piThreadStack -.space 0x1000 - -dlabel piEventQueue -.space 0x18 - -dlabel piEventBuf -.space 0x8 - -dlabel piAccessBuf -.space 0x8 - -.space 0x20 - -dlabel wMapTexName -.space 0x18 - -dlabel __osThreadSave -.space 0x1b0 - -dlabel nuContWaitMesgQ -.space 0x18 - -.align 4 -dlabel __osContPifRam -.space 0x40 - -dlabel gCurrentEncounter -.space 0x00000bf4 - -dlabel __Dom2SpeedParam -.space 0x74 - -dlabel nuContStatus -.space 0x4 * 4 - -dlabel D_800B1B90 -.space 0x000001b0 - -dlabel nuContRmbCtl -.space 0xA * 4 - -.space 2 - - .align 4 -dlabel nuContData -.space 6 * 4 - - .align 4 -dlabel gCameras -.space 0x00001560 - -dlabel D_800B32E0 -.space 0x800 - -dlabel D_800B3AE0 -.space 0x800 - -dlabel gCollisionData -.space 0x10 - -dlabel nuGfxMesgQ -.space 0x18 - -dlabel __CartRomHandle -.space 0x74 - -dlabel __osPiAccessQueue -.space 0x18 - - .align 3 -dlabel gEffectInstances -.space 4*96 - -dlabel __Dom1SpeedParam -.space 0x74 - - .align 4 -dlabel nuBootStack -.space 0x00002000 - -dlabel nuMainStack -.space 0x00002000 - -dlabel nuYieldBuf -.space 0x00000c10 - -dlabel auSynDriver -.space 0x00000030 - -dlabel D_800B91D0 -.space 0x00020000 - -dlabel __osFlashHandler -.space 0x00000074 - -.align 3 -dlabel gZoneCollisionData -.space 0x00000010 - -dlabel wMapHitName -.space 0x00000014 - -dlabel nuSiMgrMesgQ -.space 0x00000018 - - .align 3 -dlabel __osBaseTimer -.space 0x20 - -dlabel wMapShapeName -.space 0x00000018 - -dlabel nuAuHeap -.space 0x00000010 - -dlabel __osFlashMessageQ -.space 0x18 - -# TODO: figure out where this space comes from -.space 0x20 - -dlabel nuGfxTask -.space 0x58*10 - -dlabel gSaveGlobals -.space 0x80 - -dlabel wMapBgName -.space 0x00000014 - -dlabel __osPfsInodeCache -.space 0x00000100 - -dlabel __osEventStateTab -.space 0x00000100 - - .align 4 - -dlabel __osPfsPifRam -.space 0x0000003c - -.space 4 - -dlabel D_800DA040 -.space 0x00000400 - -dlabel nusched -.space 0x67e - - .align 3 - -dlabel __osEepromTimerQ -.space 0x00000018 - -dlabel nuContPfs -.space 0x68 * 4 - -dlabel nuSiMesgQ -.space 0x00000018 - -dlabel D_800DAC90 -.space 0x00000018 - -dlabel __osSiAccessQueue -.space 0x00000018 - -dlabel __osBbFlashBuffer -.space 0x80 - -dlabel gCurrentSaveFile -.space 0x00001380 - -dlabel nuContDataMutexQ -.space 0x00000020 - -dlabel D_800DC060 -.space 4 - -dlabel gCurrentStagePtr -.space 4 - -dlabel gBattleState -.space 4 - -dlabel D_800DC06C -.space 4 - -dlabel gBattleStatus -.space 0x00000460 - -dlabel gLastDrawBattleState -.space 4 - -dlabel D_800DC4D4 -.space 4 - -dlabel gDefeatedBattleSubstate -.space 4 - -dlabel gBattleSubState -.space 4 - -dlabel D_800DC4E0 -.space 4 - -dlabel gDefeatedBattleState -.space 4 - -dlabel gCurrentBattleID -.space 4 - -dlabel gCurrentStageID -.space 4 - -dlabel D_800DC4F0 -.space 4 - -dlabel gOverrideBattlePtr -.space 4 - -dlabel D_800DC4F8 -.space 4 - -dlabel gCurrentBattlePtr -.space 4 diff --git a/ver/ique/asm/bss2.s b/ver/ique/asm/bss2.s deleted file mode 100644 index fd1019a927..0000000000 --- a/ver/ique/asm/bss2.s +++ /dev/null @@ -1,114 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel PulseStoneNotificationCallback -.space 4 - -dlabel D_8010C924 -.space 4 - -dlabel D_8010C928 -.space 4 - -dlabel D_8010C92C -.space 4 - -dlabel wPartnerNpc -.space 4 - -dlabel TweesterTouchingPlayer -.space 4 - -dlabel PlayerNormalYaw -.space 4 - -dlabel ISpyNotificationCallback -.space 4 - -dlabel TalkNotificationCallback -.space 4 - -dlabel gSpinHistoryBufferPos -.space 4 - -dlabel D_8010C948 -.space 4 - -dlabel NpcHitQueryBehindRightY -.space 4 - -dlabel D_8010C950 -.space 4 - -dlabel TweesterTouchingPartner -.space 4 - -dlabel InteractNotificationCallback -.space 4 - -dlabel PrevPlayerDirection -.space 4 - -dlabel JumpedOnSwitchX -.space 4 - -dlabel D_8010C964 -.space 4 - -dlabel NpcHitQueryBehindCollider -.space 4 - -dlabel PeachDisguiseNpcIndex -.space 4 - -dlabel NpcHitQueryAheadY -.space 4 - -dlabel NpcHitQueryBehindLeftY -.space 4 - -dlabel NpcHitQueryColliderID -.space 4 - -dlabel JumpedOnSwitchZ -.space 4 - -dlabel PlayerRunStateTime -.space 4 - -dlabel D_8010C984 -.space 4 - -dlabel D_8010C988 -.space 4 - -dlabel NpcHitQueryAheadCollider -.space 4 - -dlabel PlayerNormalPitch -.space 4 - -dlabel D_8010C994 -.space 0x0000000c - -dlabel PlayerYInterpUpdateDelay -.space 4 - -dlabel D_8010C9A4 -.space 0x0000000c - -dlabel D_8010C9B0 -.space 4 - -dlabel D_8010C9B4 -.space 0x0000000c - -#endif diff --git a/ver/ique/asm/bss2_2.s b/ver/ique/asm/bss2_2.s deleted file mode 100644 index dd58463ae8..0000000000 --- a/ver/ique/asm/bss2_2.s +++ /dev/null @@ -1,225 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel wPartnerTetherDistance -.space 4 - -dlabel D_8010CFC4 -.space 4 - -dlabel wPartnerFollowState -.space 2 - -dlabel D_8010CFCA -.space 2 - -dlabel D_8010CFCC -.space 2 - -dlabel D_8010CFCE -.space 2 - -dlabel wPartnerNpcIndex -.space 4 - -dlabel wPartnerCurrentScript -.space 4 - -dlabel wCurrentPartnerId -.space 4 - -dlabel wPartnerCurrentScriptID -.space 4 - -dlabel D_8010CFE0 -.space 4 - -dlabel NextPartnerID -.space 4 - -dlabel NextPartnerCommand -.space 4 - -dlabel wPartner -.space 4 - -dlabel D_8010CFF0 -.space 4 - -dlabel D_8010CFF4 -.space 4 - -dlabel D_8010CFF8 -.space 8 - -dlabel D_8010D000 -.space 0x63C - -dlabel D_8010D63C -.space 0x4 - -dlabel gPopupState -.space 4 - -dlabel D_8010D644 -.space 4 - -dlabel PopupMenu_SelectedIndex -.space 4 - -dlabel PopupMenu_PrevSelectedIndex -.space 4 - -dlabel PopupMenu_Alpha -.space 4 - -dlabel PopupMenu_FirstDisplayIndex -.space 1 - -dlabel PopupMenu_LastDisplayIndex -.space 1 - -dlabel PopupMenu_DisplayedEntryCount -.space 2 - -dlabel D_8010D658 -.space 2 - -dlabel D_8010D65A -.space 2 - -dlabel PopupMenu_EmptybarHEID -.space 4 - -dlabel PopupMenu_TitleIconHEID -.space 4 - -dlabel PopupMenu_TimesHEID -.space 4 - -dlabel PopupMenu_PartnerLevelHEID -.space 4 - -dlabel PopupMenu_CursorHEID -.space 4 - -dlabel PopupMenu_UpArrowHEID -.space 4 - -dlabel PopupMenu_DownArrowHEID -.space 4 - -dlabel PopupMenu_EntryIconHEID -.space 4 - -dlabel D_8010D67C -.space 2 - -dlabel D_8010D67E -.space 2 - -dlabel D_8010D680 -.space 2 - -dlabel D_8010D682 -.space 2 - -dlabel D_8010D684 -.space 2 - -dlabel D_8010D686 -.space 2 - -dlabel PopupMenu_StarPieceCounterPosX -.space 2 - -dlabel PopupMenu_StarPieceCounterPosY -.space 2 - -dlabel D_8010D68C -.space 2 - -dlabel PopupNotBattle -.space 1 - -dlabel PopupMenu_MaxDisplayableEntryCount -.space 1 - -dlabel D_8010D690 -.space 1 - -dlabel D_8010D691 -.space 1 - -dlabel D_8010D692 -.space 1 - -dlabel D_8010D693 -.space 1 - -dlabel gPopupWorker -.space 4 - -dlabel PopupNotDipping -.space 1 - -dlabel PopupDipMode -.space 1 - -dlabel PopupMenu_WasStatusBarIgnoringChanges -.space 2 - -dlabel gPopupMenu -.space 4 - -dlabel D_8010D6A0 -.space 4 - -dlabel D_8010D6A4 -.space 4 - -dlabel D_8010D6A8 -.space 0x8 - -dlabel gBoxQuadBuffer -.space 0x1500 - -dlabel gPartnerStatus -.space 0x360 - -dlabel gSpinHistoryPosY -.space 0x18 - -dlabel gSpinHistoryPosX -.space 0x18 - -dlabel gSpinHistoryPosZ -.space 0x18 - -dlabel gStatusBar -.space 0x70 - -dlabel gPlayerStatus -.space 0x288 - -dlabel gPlayerSpinState -.space 0x34 - -dlabel D_8010F284 -.space 0xC - -dlabel gPlayerData -.space 0x428 - -dlabel gSpinHistoryPosAngle -.space 0x10 - -#endif diff --git a/ver/ique/asm/bss3.s b/ver/ique/asm/bss3.s deleted file mode 100644 index d4c003271e..0000000000 --- a/ver/ique/asm/bss3.s +++ /dev/null @@ -1,685 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .bss - -dlabel gAuxSpriteShadingProfile -.space 4 - -dlabel gHudElementsNumber -.space 4 - -dlabel gCurrentCustomModelGfxBuildersPtr -.space 4 - -dlabel D_801512BC -.space 4 - -dlabel entity_numEntities -.space 4 - -dlabel gEntityHeapBase -.space 4 - -dlabel gHudElementCacheTableRaster -.space 4 - -dlabel gCurrentModels -.space 4 - -dlabel gHudElementCacheTablePalette -.space 4 - -dlabel gAnimCount -.space 4 - -dlabel gMsgBGScrollAmtX -.space 4 - -dlabel D_801512DC -.space 4 - -dlabel gCurrentTransformGroups -.space 4 - -dlabel gMsgGlobalWaveCounter -.space 4 - -dlabel gCurrentCustomModelGfxPtr -.space 4 - -dlabel gLastCreatedEntityIndex -.space 4 - -dlabel gBackgroundTintModePtr -.space 4 - -dlabel gMsgVarImages -.space 4 - -dlabel ItemEntitiesCreated -.space 4 - -dlabel gCurrentModelTreeRoot -.space 4 - -dlabel gEntityHeapBottom -.space 4 - -dlabel D_80151304 -.space 4 - -dlabel gCurrentRoomDoorSounds -.space 4 - -dlabel gMsgBGScrollAmtY -.space 2 - -dlabel D_8015130E -.space 2 - -dlabel gEntityHideMode -.space 4 - -dlabel gHudElementCacheBuffer -.space 4 - -dlabel gEntityModelCount -.space 4 - -dlabel D_8015131C -.space 4 - -dlabel D_80151320 -.space 4 - -dlabel entity_numShadows -.space 4 - -dlabel gSpriteShadingProfile -.space 4 - -dlabel isAreaSpecificEntityDataLoaded -.space 4 - -dlabel entity_updateCounter -.space 4 - -dlabel gTriggerCount -.space 4 - -dlabel D_80151338 -.space 4 - -dlabel gHudElementCacheSize -.space 4 - -dlabel gCurrentDoorSounds -.space 4 - -dlabel D_80151344 -.space 4 - -dlabel D_80151348 -.space 0x00000028 - -dlabel gWorldEntityList -.space 0x00000078 - -dlabel gBattleEntityList -.space 0x00000078 - -dlabel gCurrentEntityListPtr -.space 4 - -dlabel D_80151474 -.space 4 - -dlabel gWorldShadowList -.space 0x000000f0 - -dlabel gBattleShadowList -.space 0x000000f0 - -dlabel gCurrentShadowListPtr -.space 4 - -dlabel wEntityDataLoadedSize -.space 4 - -dlabel bEntityDataLoadedSize -.space 4 - -dlabel D_80151664 -.space 4 - -dlabel wEntityBlueprint -.space 0x00000078 - -.space 8 - -dlabel bEntityBlueprint -.space 0x00000014 - -dlabel D_801516FC -.space 4 - -dlabel gMainGameMode -.space 0x00000040 - -dlabel gCurrentTextureHeader -.space 0x00000030 - -dlabel wModelList -.space 0x00000400 - -dlabel bModelList -.space 0x00000400 - -dlabel wTransformGroups -.space 0x00000010 - -dlabel bTransformGroups -.space 0x00000010 - -dlabel wCustomModelGfx -.space 0x00000080 - -dlabel bCustomModelGfx -.space 0x00000080 - -dlabel wCustomModelGfxBuilders -.space 0x00000080 - -dlabel bCustomModelGfxBuilders -.space 0x00000080 - -dlabel wModelLocalVtxBuffers -.space 0x00000040 - -dlabel bModelLocalVtxBuffers -.space 0x00000040 - -dlabel gCurrentModelLocalVtxBuffers -.space 4 - -dlabel wModelTreeRoot -.space 4 - -dlabel bModelTreeRoot -.space 4 - -dlabel D_8015221C -.space 4 - -dlabel wModelTreeNodeInfo -.space 0x00000800 - -dlabel bModelTreeNodeInfo -.space 0x00000800 - -dlabel wBackgroundTintMode -.space 1 - -dlabel bBackgroundTintMode -.space 1 - -dlabel D_80153222 -.space 1 - -dlabel D_80153223 -.space 1 - -dlabel TreeIterPos -.space 4 - -dlabel wFogSettings -.space 0x00000020 - -dlabel bFogSettings -.space 0x0000001c - -dlabel gFogSettings -.space 4 - -dlabel texPannerMainU -.space 0x00000040 - -dlabel texPannerMainV -.space 0x00000040 - -dlabel texPannerAuxU -.space 0x00000040 - -dlabel texPannerAuxV -.space 0x00000040 - -dlabel TextureHeapPos -.space 4 - -dlabel mtg_IterIdx -.space 2 - -dlabel mtg_SearchModelID -.space 2 - -dlabel mtg_FoundModelNode -.space 4 - -dlabel mtg_MinChild -.space 2 - -dlabel mtg_MaxChild -.space 2 - -dlabel D_80153378 -.space 8 - -dlabel DepthCopyBuffer -.space 0x00000020 - -dlabel RenderTaskLists -.space 0x0000000c - -dlabel RenderTaskListIdx -.space 4 - -dlabel RenderTaskCount -.space 0x00000010 - -dlabel D_801533C0 -.space 0x00000300 - -dlabel D_801536C0 -.space 0x00000300 - -dlabel D_801539C0 -.space 0x00000040 - -dlabel D_80153A00 -.space 0x00000040 - -dlabel gCurrentAnimMeshListPtr -.space 4 - -dlabel gAnimModelFogEnabled -.space 4 - -dlabel gAnimModelFogR -.space 4 - -dlabel gAnimModelFogG -.space 4 - -dlabel gAnimModelFogB -.space 4 - -dlabel gAnimModelFogA -.space 4 - -dlabel gAnimModelFogStart -.space 4 - -dlabel gAnimModelFogEnd -.space 4 - -dlabel gAnimVtxSegment -.space 4 - -dlabel D_80153A64 -.space 4 - -dlabel gAnimRotMtx -.space 0x00000040 - -dlabel gAnimScaleMtx -.space 0x00000040 - -dlabel gAnimTranslateMtx -.space 0x00000040 - -dlabel gAnimRotScaleMtx -.space 0x00000040 - -dlabel gAnimTreeRoot -.space 8 - -dlabel gWorldEntityModelList -.space 0x00000400 - -dlabel gBattleEntityModelList -.space 0x00000400 - -dlabel gCurrentEntityModelList -.space 4 - -dlabel D_80154374 -.space 4 - -dlabel entity_fog_enabled -.space 4 - -dlabel entity_fog_red -.space 4 - -dlabel entity_fog_green -.space 4 - -dlabel entity_fog_blue -.space 4 - -dlabel entity_fog_alpha -.space 4 - -dlabel entity_fog_dist_min -.space 4 - -dlabel entity_fog_dist_max -.space 4 - -######################## -.align 4 # file boundary -######################## - -dlabel gWorldWorkerList -.space 0x00000040 - -dlabel gBattleWorkerList -.space 0x00000040 - -dlabel gCurrentWorkerListPtr -.space 4 - -.align 4 # file boundary - -dlabel gMessageBuffers -.space 0x00000800 - -dlabel gMessagePrinters -.space 0x00001008 - -dlabel gMessageMsgVars -.space 0x00000060 - -dlabel D_80155C98 -.space 8 - -.align 4 - -dlabel gMessageWindowProjMatrix -.space 0x00000080 - -dlabel D_801544A0 -.space 120 * 128 - -dlabel D_80155D20 -.space 4 - -dlabel D_8015DD24 -.space 0x00000050 - -dlabel msg_drawState -.space 4 - -dlabel D_8015DD78 -.space 8 - -dlabel UnusedItemPhysicsScriptID -.space 4 - -dlabel ItemEntityAlternatingSpawn -.space 4 - -dlabel ItemEntityRenderGroup -.space 4 - -dlabel CoinSparkleCenterX -.space 2 - -dlabel CoinSparkleCenterY -.space 2 - -dlabel CoinSparkleCenterZ -.space 2 - -dlabel pad_ItemEntity -.space 0x000000E - -dlabel WorldItemEntities -.space 0x00000400 - -dlabel BattleItemEntities -.space 0x00000400 - -dlabel gCurrentItemEntities -.space 4 - -dlabel isPickingUpItem -.space 2 - -dlabel ItemSpawnWithinPlayerPickupDelay -.space 2 - -dlabel D_801565A8 -.space 4 - -dlabel D_801565AC -.space 4 - -dlabel ItemPickupMenu -.space 0x00000330 - -dlabel ItemPickupIconID -.space 4 - -dlabel ItemPickupStateDelay -.space 4 - -dlabel ThrowAwayMenuIdx -.space 4 - -dlabel ThrowAwayItemID -.space 4 - -dlabel ItemPickupGotOutline -.space 4 - -dlabel GotItemTutorialPrinter -.space 4 - -dlabel GotItemTutorialClosed -.space 4 - -dlabel D_801568FC -.space 4 - -dlabel screen_overlay_frontType -.space 4 - -dlabel screen_overlay_frontZoom -.space 4 - -dlabel screen_overlay_backType -.space 4 - -dlabel screen_overlay_backZoom -.space 4 - -dlabel D_80156910 -.space 0x00000010 - -dlabel ImgFXCurrentTexture -.space 0x00000028 - -dlabel ImgFXVtxBuffers -.space 8 - -dlabel imgfx_vtxBuf -.space 4 - -dlabel ImgFXInstances -.space 4 - -dlabel D_80156958 -.space 8 - -dlabel D_80156960 -.space 8 - -dlabel D_80156968 -.space 8 - -dlabel D_80156970 -.space 0x00000010 - -dlabel ImgFXAnimHeaders -.space 0x000005a0 - -dlabel ImgFXDataCache -.space 0x00000040 - -dlabel gHudElementsWorld -.space 0x00000500 - -dlabel gHudElementsBattle -.space 0x00000500 - -dlabel gHudElements -.space 4 - -dlabel gHudElementCacheBufferWorld -.space 4 - -dlabel gHudElementCacheSizeWorld -.space 4 - -dlabel D_8015796C -.space 4 - -dlabel gHudElementCacheTableRasterWorld -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteWorld -.space 0x00000600 - -dlabel gHudElementCacheBufferBattle -.space 4 - -dlabel gHudElementCacheSizeBattle -.space 4 - -dlabel D_80158578 -.space 8 - -dlabel gHudElementCacheTableRasterBattle -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteBattle -.space 0x00000600 - -dlabel D_80159180 -.space 0x00000010 - -dlabel wTriggerList -.space 0x00000100 - -dlabel bTriggerList -.space 0x00000100 - -dlabel gCurrentTriggerListPtr -.space 4 - -dlabel D_80159394 -.space 0x0000000c - -dlabel gBackgroundPalette -.space 0x00000200 - -dlabel gBackroundLastScrollValue -.space 0x00000020 - -dlabel wSpriteShadingProfile -.space 0x000000b0 - -dlabel bSpriteShadingProfile -.space 0x000000b0 - -dlabel wSpriteShadingProfileAux -.space 0x000000b0 - -dlabel bSpriteShadingProfileAux -.space 0x000000b0 - -dlabel SpriteShadingPalette -.space 0x00000020 - -dlabel wEnvSounds -.space 0x00000118 - -dlabel bEnvSounds -.space 0x00000118 - -dlabel gCurrentEnvSounds -.space 4 - -dlabel SfxReverbMode -.space 4 - -dlabel D_80159AD8 -.space 8 - -dlabel MusicDefaultVolume -.space 2 - -dlabel MusicTargetVolume -.space 2 - -dlabel MusicMaxVolume -.space 2 - -dlabel MusicCurrentVolume -.space 2 - -dlabel D_80159AE8 -.space 8 - -dlabel gMusicSettings -.space 0x00000060 - -dlabel D_80159B50 -.space 0x00000200 - -dlabel gWindows -.space 0x00000800 - -dlabel gCollisionStatus -.space 0x00000028 - -dlabel gCurrentHiddenPanels -.space 0x10 - -.space 8 - -dlabel TextureHandles -.space 0x00002200 - -dlabel ScreenOverlays -.space 0x00000030 - -dlabel AmbientSoundData -.space 0x00000010 - -dlabel CreateEntityVarArgBuffer -.space 0x00000010 - -dlabel D_8015C7E0 -.space 0x20 - -.space 0x3C80 - -dlabel D_80164000 -.space 0x1a230 * 2 diff --git a/ver/ique/asm/entry_point.s b/ver/ique/asm/entry_point.s deleted file mode 100644 index 8f5da3021c..0000000000 --- a/ver/ique/asm/entry_point.s +++ /dev/null @@ -1,38 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel func_IQUE_80025C00 -/* 1000 80025C00 3C08800A */ lui $t0, %hi(main_BSS_START) -/* 1004 80025C04 25089170 */ addiu $t0, $t0, %lo(main_BSS_START) -/* 1008 80025C08 3C090004 */ lui $t1, %hi(main_BSS_SIZE) -/* 100C 80025C0C 25291770 */ addiu $t1, $t1, %lo(main_BSS_SIZE) -.LIQUE_80025C10: -/* 1010 80025C10 AD000000 */ sw $zero, 0x0($t0) -/* 1014 80025C14 AD000004 */ sw $zero, 0x4($t0) -/* 1018 80025C18 21080008 */ addi $t0, $t0, 0x8 # handwritten instruction -/* 101C 80025C1C 2129FFF8 */ addi $t1, $t1, -0x8 # handwritten instruction -/* 1020 80025C20 1520FFFB */ bnez $t1, .LIQUE_80025C10 -/* 1024 80025C24 00000000 */ nop -/* 1028 80025C28 3C1D800B */ lui $sp, %hi(nuBootStack + 0x2000) -/* 102C 80025C2C 27BD4FE0 */ addiu $sp, $sp, %lo(nuBootStack + 0x2000) -/* 1030 80025C30 3C0A8006 */ lui $t2, %hi(nuBoot) -/* 1034 80025C34 254ADF60 */ addiu $t2, $t2, %lo(nuBoot) -/* 1038 80025C38 01400008 */ jr $t2 -/* 103C 80025C3C 00000000 */ nop -/* 1040 80025C40 00000000 */ nop -/* 1044 80025C44 00000000 */ nop -/* 1048 80025C48 00000000 */ nop -/* 104C 80025C4C 00000000 */ nop -/* 1050 80025C50 00000000 */ nop -/* 1054 80025C54 00000000 */ nop -/* 1058 80025C58 00000000 */ nop -/* 105C 80025C5C 00000000 */ nop diff --git a/ver/ique/asm/os/bcmp.s b/ver/ique/asm/os/bcmp.s deleted file mode 100644 index af6a954a28..0000000000 --- a/ver/ique/asm/os/bcmp.s +++ /dev/null @@ -1,90 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel bcmp -/* 45B70 8006A770 00851026 */ xor $v0, $a0, $a1 -/* 45B74 8006A774 28C10010 */ slti $at, $a2, 0x10 -/* 45B78 8006A778 14200034 */ bnez $at, .LIQUE_8006A84C -/* 45B7C 8006A77C 00000000 */ nop -/* 45B80 8006A780 30420003 */ andi $v0, $v0, 0x3 -/* 45B84 8006A784 14400018 */ bnez $v0, .LIQUE_8006A7E8 -/* 45B88 8006A788 0004C023 */ negu $t8, $a0 -/* 45B8C 8006A78C 33180003 */ andi $t8, $t8, 0x3 -/* 45B90 8006A790 13000007 */ beqz $t8, .LIQUE_8006A7B0 -/* 45B94 8006A794 00D83023 */ subu $a2, $a2, $t8 -/* 45B98 8006A798 00601021 */ addu $v0, $v1, $zero -/* 45B9C 8006A79C 88820000 */ lwl $v0, 0x0($a0) -/* 45BA0 8006A7A0 88A30000 */ lwl $v1, 0x0($a1) -/* 45BA4 8006A7A4 00982021 */ addu $a0, $a0, $t8 -/* 45BA8 8006A7A8 14430033 */ bne $v0, $v1, .LIQUE_8006A878 -/* 45BAC 8006A7AC 00B82821 */ addu $a1, $a1, $t8 -.LIQUE_8006A7B0: -/* 45BB0 8006A7B0 2401FFFC */ addiu $at, $zero, -0x4 -/* 45BB4 8006A7B4 00C13824 */ and $a3, $a2, $at -/* 45BB8 8006A7B8 10E00024 */ beqz $a3, .LIQUE_8006A84C -/* 45BBC 8006A7BC 00C73023 */ subu $a2, $a2, $a3 -/* 45BC0 8006A7C0 00E43821 */ addu $a3, $a3, $a0 -.LIQUE_8006A7C4: -/* 45BC4 8006A7C4 8C820000 */ lw $v0, 0x0($a0) -/* 45BC8 8006A7C8 8CA30000 */ lw $v1, 0x0($a1) -/* 45BCC 8006A7CC 24840004 */ addiu $a0, $a0, 0x4 -/* 45BD0 8006A7D0 14430029 */ bne $v0, $v1, .LIQUE_8006A878 -/* 45BD4 8006A7D4 24A50004 */ addiu $a1, $a1, 0x4 -/* 45BD8 8006A7D8 1487FFFA */ bne $a0, $a3, .LIQUE_8006A7C4 -/* 45BDC 8006A7DC 00000000 */ nop -/* 45BE0 8006A7E0 1000001A */ b .LIQUE_8006A84C -/* 45BE4 8006A7E4 00000000 */ nop -.LIQUE_8006A7E8: -/* 45BE8 8006A7E8 00053823 */ negu $a3, $a1 -/* 45BEC 8006A7EC 30E70003 */ andi $a3, $a3, 0x3 -/* 45BF0 8006A7F0 10E00009 */ beqz $a3, .LIQUE_8006A818 -/* 45BF4 8006A7F4 00C73023 */ subu $a2, $a2, $a3 -/* 45BF8 8006A7F8 00E43821 */ addu $a3, $a3, $a0 -.LIQUE_8006A7FC: -/* 45BFC 8006A7FC 90820000 */ lbu $v0, 0x0($a0) -/* 45C00 8006A800 90A30000 */ lbu $v1, 0x0($a1) -/* 45C04 8006A804 24840001 */ addiu $a0, $a0, 0x1 -/* 45C08 8006A808 1443001B */ bne $v0, $v1, .LIQUE_8006A878 -/* 45C0C 8006A80C 24A50001 */ addiu $a1, $a1, 0x1 -/* 45C10 8006A810 1487FFFA */ bne $a0, $a3, .LIQUE_8006A7FC -/* 45C14 8006A814 00000000 */ nop -.LIQUE_8006A818: -/* 45C18 8006A818 2401FFFC */ addiu $at, $zero, -0x4 -/* 45C1C 8006A81C 00C13824 */ and $a3, $a2, $at -/* 45C20 8006A820 10E0000A */ beqz $a3, .LIQUE_8006A84C -/* 45C24 8006A824 00C73023 */ subu $a2, $a2, $a3 -/* 45C28 8006A828 00E43821 */ addu $a3, $a3, $a0 -.LIQUE_8006A82C: -/* 45C2C 8006A82C 88820000 */ lwl $v0, 0x0($a0) -/* 45C30 8006A830 98820003 */ lwr $v0, 0x3($a0) -/* 45C34 8006A834 8CA30000 */ lw $v1, 0x0($a1) -/* 45C38 8006A838 24840004 */ addiu $a0, $a0, 0x4 -/* 45C3C 8006A83C 1443000E */ bne $v0, $v1, .LIQUE_8006A878 -/* 45C40 8006A840 24A50004 */ addiu $a1, $a1, 0x4 -/* 45C44 8006A844 1487FFF9 */ bne $a0, $a3, .LIQUE_8006A82C -/* 45C48 8006A848 00000000 */ nop -.LIQUE_8006A84C: -/* 45C4C 8006A84C 18C00008 */ blez $a2, .LIQUE_8006A870 -/* 45C50 8006A850 00C43821 */ addu $a3, $a2, $a0 -.LIQUE_8006A854: -/* 45C54 8006A854 90820000 */ lbu $v0, 0x0($a0) -/* 45C58 8006A858 90A30000 */ lbu $v1, 0x0($a1) -/* 45C5C 8006A85C 24840001 */ addiu $a0, $a0, 0x1 -/* 45C60 8006A860 14430005 */ bne $v0, $v1, .LIQUE_8006A878 -/* 45C64 8006A864 24A50001 */ addiu $a1, $a1, 0x1 -/* 45C68 8006A868 1487FFFA */ bne $a0, $a3, .LIQUE_8006A854 -/* 45C6C 8006A86C 00000000 */ nop -.LIQUE_8006A870: -/* 45C70 8006A870 03E00008 */ jr $ra -/* 45C74 8006A874 00001021 */ addu $v0, $zero, $zero -.LIQUE_8006A878: -/* 45C78 8006A878 03E00008 */ jr $ra -/* 45C7C 8006A87C 24020001 */ addiu $v0, $zero, 0x1 diff --git a/ver/ique/asm/os/bcopy.s b/ver/ique/asm/os/bcopy.s deleted file mode 100644 index df4489cbee..0000000000 --- a/ver/ique/asm/os/bcopy.s +++ /dev/null @@ -1,232 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel bcopy -/* 3DC10 80062810 10C0001B */ beqz $a2, .LIQUE_80062880 -/* 3DC14 80062814 00A03821 */ addu $a3, $a1, $zero -/* 3DC18 80062818 10850019 */ beq $a0, $a1, .LIQUE_80062880 -/* 3DC1C 8006281C 00000000 */ nop -/* 3DC20 80062820 00A4082A */ slt $at, $a1, $a0 -/* 3DC24 80062824 14200007 */ bnez $at, .LIQUE_80062844 -/* 3DC28 80062828 00000000 */ nop -/* 3DC2C 8006282C 00861020 */ add $v0, $a0, $a2 # handwritten instruction -/* 3DC30 80062830 00A2082A */ slt $at, $a1, $v0 -/* 3DC34 80062834 10200003 */ beqz $at, .LIQUE_80062844 -/* 3DC38 80062838 00000000 */ nop -/* 3DC3C 8006283C 1000005C */ b .LIQUE_800629B0 -/* 3DC40 80062840 00000000 */ nop -.LIQUE_80062844: -/* 3DC44 80062844 28C10010 */ slti $at, $a2, 0x10 -/* 3DC48 80062848 14200005 */ bnez $at, .LIQUE_80062860 -/* 3DC4C 8006284C 00000000 */ nop -/* 3DC50 80062850 30820003 */ andi $v0, $a0, 0x3 -/* 3DC54 80062854 30A30003 */ andi $v1, $a1, 0x3 -/* 3DC58 80062858 1043000B */ beq $v0, $v1, .LIQUE_80062888 -/* 3DC5C 8006285C 00000000 */ nop -.LIQUE_80062860: -/* 3DC60 80062860 10C00007 */ beqz $a2, .LIQUE_80062880 -/* 3DC64 80062864 00000000 */ nop -/* 3DC68 80062868 00861821 */ addu $v1, $a0, $a2 -.LIQUE_8006286C: -/* 3DC6C 8006286C 80820000 */ lb $v0, 0x0($a0) -/* 3DC70 80062870 24840001 */ addiu $a0, $a0, 0x1 -/* 3DC74 80062874 A0A20000 */ sb $v0, 0x0($a1) -/* 3DC78 80062878 1483FFFC */ bne $a0, $v1, .LIQUE_8006286C -/* 3DC7C 8006287C 24A50001 */ addiu $a1, $a1, 0x1 -.LIQUE_80062880: -/* 3DC80 80062880 03E00008 */ jr $ra -/* 3DC84 80062884 00E01021 */ addu $v0, $a3, $zero -.LIQUE_80062888: -/* 3DC88 80062888 1040001A */ beqz $v0, .LIQUE_800628F4 -/* 3DC8C 8006288C 00000000 */ nop -/* 3DC90 80062890 24010001 */ addiu $at, $zero, 0x1 -/* 3DC94 80062894 10410010 */ beq $v0, $at, .LIQUE_800628D8 -/* 3DC98 80062898 00000000 */ nop -/* 3DC9C 8006289C 24010002 */ addiu $at, $zero, 0x2 -/* 3DCA0 800628A0 10410007 */ beq $v0, $at, .LIQUE_800628C0 -/* 3DCA4 800628A4 00000000 */ nop -/* 3DCA8 800628A8 80820000 */ lb $v0, 0x0($a0) -/* 3DCAC 800628AC 24840001 */ addiu $a0, $a0, 0x1 -/* 3DCB0 800628B0 A0A20000 */ sb $v0, 0x0($a1) -/* 3DCB4 800628B4 24A50001 */ addiu $a1, $a1, 0x1 -/* 3DCB8 800628B8 1000000E */ b .LIQUE_800628F4 -/* 3DCBC 800628BC 24C6FFFF */ addiu $a2, $a2, -0x1 -.LIQUE_800628C0: -/* 3DCC0 800628C0 84820000 */ lh $v0, 0x0($a0) -/* 3DCC4 800628C4 24840002 */ addiu $a0, $a0, 0x2 -/* 3DCC8 800628C8 A4A20000 */ sh $v0, 0x0($a1) -/* 3DCCC 800628CC 24A50002 */ addiu $a1, $a1, 0x2 -/* 3DCD0 800628D0 10000008 */ b .LIQUE_800628F4 -/* 3DCD4 800628D4 24C6FFFE */ addiu $a2, $a2, -0x2 -.LIQUE_800628D8: -/* 3DCD8 800628D8 80820000 */ lb $v0, 0x0($a0) -/* 3DCDC 800628DC 84830001 */ lh $v1, 0x1($a0) -/* 3DCE0 800628E0 24840003 */ addiu $a0, $a0, 0x3 -/* 3DCE4 800628E4 A0A20000 */ sb $v0, 0x0($a1) -/* 3DCE8 800628E8 A4A30001 */ sh $v1, 0x1($a1) -/* 3DCEC 800628EC 24A50003 */ addiu $a1, $a1, 0x3 -/* 3DCF0 800628F0 24C6FFFD */ addiu $a2, $a2, -0x3 -.LIQUE_800628F4: -/* 3DCF4 800628F4 28C10020 */ slti $at, $a2, 0x20 -/* 3DCF8 800628F8 14200015 */ bnez $at, .LIQUE_80062950 -/* 3DCFC 800628FC 00000000 */ nop -/* 3DD00 80062900 8C820000 */ lw $v0, 0x0($a0) -/* 3DD04 80062904 8C830004 */ lw $v1, 0x4($a0) -/* 3DD08 80062908 8C880008 */ lw $t0, 0x8($a0) -/* 3DD0C 8006290C 8C89000C */ lw $t1, 0xC($a0) -/* 3DD10 80062910 8C8A0010 */ lw $t2, 0x10($a0) -/* 3DD14 80062914 8C8B0014 */ lw $t3, 0x14($a0) -/* 3DD18 80062918 8C8C0018 */ lw $t4, 0x18($a0) -/* 3DD1C 8006291C 8C8D001C */ lw $t5, 0x1C($a0) -/* 3DD20 80062920 24840020 */ addiu $a0, $a0, 0x20 -/* 3DD24 80062924 ACA20000 */ sw $v0, 0x0($a1) -/* 3DD28 80062928 ACA30004 */ sw $v1, 0x4($a1) -/* 3DD2C 8006292C ACA80008 */ sw $t0, 0x8($a1) -/* 3DD30 80062930 ACA9000C */ sw $t1, 0xC($a1) -/* 3DD34 80062934 ACAA0010 */ sw $t2, 0x10($a1) -/* 3DD38 80062938 ACAB0014 */ sw $t3, 0x14($a1) -/* 3DD3C 8006293C ACAC0018 */ sw $t4, 0x18($a1) -/* 3DD40 80062940 ACAD001C */ sw $t5, 0x1C($a1) -/* 3DD44 80062944 24A50020 */ addiu $a1, $a1, 0x20 -/* 3DD48 80062948 1000FFEA */ b .LIQUE_800628F4 -/* 3DD4C 8006294C 24C6FFE0 */ addiu $a2, $a2, -0x20 -.LIQUE_80062950: -/* 3DD50 80062950 28C10010 */ slti $at, $a2, 0x10 -/* 3DD54 80062954 1420000D */ bnez $at, .LIQUE_8006298C -/* 3DD58 80062958 00000000 */ nop -/* 3DD5C 8006295C 8C820000 */ lw $v0, 0x0($a0) -/* 3DD60 80062960 8C830004 */ lw $v1, 0x4($a0) -/* 3DD64 80062964 8C880008 */ lw $t0, 0x8($a0) -/* 3DD68 80062968 8C89000C */ lw $t1, 0xC($a0) -/* 3DD6C 8006296C 24840010 */ addiu $a0, $a0, 0x10 -/* 3DD70 80062970 ACA20000 */ sw $v0, 0x0($a1) -/* 3DD74 80062974 ACA30004 */ sw $v1, 0x4($a1) -/* 3DD78 80062978 ACA80008 */ sw $t0, 0x8($a1) -/* 3DD7C 8006297C ACA9000C */ sw $t1, 0xC($a1) -/* 3DD80 80062980 24A50010 */ addiu $a1, $a1, 0x10 -/* 3DD84 80062984 1000FFF2 */ b .LIQUE_80062950 -/* 3DD88 80062988 24C6FFF0 */ addiu $a2, $a2, -0x10 -.LIQUE_8006298C: -/* 3DD8C 8006298C 28C10004 */ slti $at, $a2, 0x4 -/* 3DD90 80062990 1420FFB3 */ bnez $at, .LIQUE_80062860 -/* 3DD94 80062994 00000000 */ nop -/* 3DD98 80062998 8C820000 */ lw $v0, 0x0($a0) -/* 3DD9C 8006299C 24840004 */ addiu $a0, $a0, 0x4 -/* 3DDA0 800629A0 ACA20000 */ sw $v0, 0x0($a1) -/* 3DDA4 800629A4 24A50004 */ addiu $a1, $a1, 0x4 -/* 3DDA8 800629A8 1000FFF8 */ b .LIQUE_8006298C -/* 3DDAC 800629AC 24C6FFFC */ addiu $a2, $a2, -0x4 -.LIQUE_800629B0: -/* 3DDB0 800629B0 00862020 */ add $a0, $a0, $a2 # handwritten instruction -/* 3DDB4 800629B4 00A62820 */ add $a1, $a1, $a2 # handwritten instruction -/* 3DDB8 800629B8 28C10010 */ slti $at, $a2, 0x10 -/* 3DDBC 800629BC 14200005 */ bnez $at, .LIQUE_800629D4 -/* 3DDC0 800629C0 00000000 */ nop -/* 3DDC4 800629C4 30820003 */ andi $v0, $a0, 0x3 -/* 3DDC8 800629C8 30A30003 */ andi $v1, $a1, 0x3 -/* 3DDCC 800629CC 1043000D */ beq $v0, $v1, .LIQUE_80062A04 -/* 3DDD0 800629D0 00000000 */ nop -.LIQUE_800629D4: -/* 3DDD4 800629D4 10C0FFAA */ beqz $a2, .LIQUE_80062880 -/* 3DDD8 800629D8 00000000 */ nop -/* 3DDDC 800629DC 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3DDE0 800629E0 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3DDE4 800629E4 00861823 */ subu $v1, $a0, $a2 -.LIQUE_800629E8: -/* 3DDE8 800629E8 80820000 */ lb $v0, 0x0($a0) -/* 3DDEC 800629EC 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3DDF0 800629F0 A0A20000 */ sb $v0, 0x0($a1) -/* 3DDF4 800629F4 1483FFFC */ bne $a0, $v1, .LIQUE_800629E8 -/* 3DDF8 800629F8 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3DDFC 800629FC 03E00008 */ jr $ra -/* 3DE00 80062A00 00E01021 */ addu $v0, $a3, $zero -.LIQUE_80062A04: -/* 3DE04 80062A04 1040001A */ beqz $v0, .LIQUE_80062A70 -/* 3DE08 80062A08 00000000 */ nop -/* 3DE0C 80062A0C 24010003 */ addiu $at, $zero, 0x3 -/* 3DE10 80062A10 10410010 */ beq $v0, $at, .LIQUE_80062A54 -/* 3DE14 80062A14 00000000 */ nop -/* 3DE18 80062A18 24010002 */ addiu $at, $zero, 0x2 -/* 3DE1C 80062A1C 10410007 */ beq $v0, $at, .LIQUE_80062A3C -/* 3DE20 80062A20 00000000 */ nop -/* 3DE24 80062A24 8082FFFF */ lb $v0, -0x1($a0) -/* 3DE28 80062A28 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3DE2C 80062A2C A0A2FFFF */ sb $v0, -0x1($a1) -/* 3DE30 80062A30 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3DE34 80062A34 1000000E */ b .LIQUE_80062A70 -/* 3DE38 80062A38 24C6FFFF */ addiu $a2, $a2, -0x1 -.LIQUE_80062A3C: -/* 3DE3C 80062A3C 8482FFFE */ lh $v0, -0x2($a0) -/* 3DE40 80062A40 2484FFFE */ addiu $a0, $a0, -0x2 -/* 3DE44 80062A44 A4A2FFFE */ sh $v0, -0x2($a1) -/* 3DE48 80062A48 24A5FFFE */ addiu $a1, $a1, -0x2 -/* 3DE4C 80062A4C 10000008 */ b .LIQUE_80062A70 -/* 3DE50 80062A50 24C6FFFE */ addiu $a2, $a2, -0x2 -.LIQUE_80062A54: -/* 3DE54 80062A54 8082FFFF */ lb $v0, -0x1($a0) -/* 3DE58 80062A58 8483FFFD */ lh $v1, -0x3($a0) -/* 3DE5C 80062A5C 2484FFFD */ addiu $a0, $a0, -0x3 -/* 3DE60 80062A60 A0A2FFFF */ sb $v0, -0x1($a1) -/* 3DE64 80062A64 A4A3FFFD */ sh $v1, -0x3($a1) -/* 3DE68 80062A68 24A5FFFD */ addiu $a1, $a1, -0x3 -/* 3DE6C 80062A6C 24C6FFFD */ addiu $a2, $a2, -0x3 -.LIQUE_80062A70: -/* 3DE70 80062A70 28C10020 */ slti $at, $a2, 0x20 -/* 3DE74 80062A74 14200015 */ bnez $at, .LIQUE_80062ACC -/* 3DE78 80062A78 00000000 */ nop -/* 3DE7C 80062A7C 8C82FFFC */ lw $v0, -0x4($a0) -/* 3DE80 80062A80 8C83FFF8 */ lw $v1, -0x8($a0) -/* 3DE84 80062A84 8C88FFF4 */ lw $t0, -0xC($a0) -/* 3DE88 80062A88 8C89FFF0 */ lw $t1, -0x10($a0) -/* 3DE8C 80062A8C 8C8AFFEC */ lw $t2, -0x14($a0) -/* 3DE90 80062A90 8C8BFFE8 */ lw $t3, -0x18($a0) -/* 3DE94 80062A94 8C8CFFE4 */ lw $t4, -0x1C($a0) -/* 3DE98 80062A98 8C8DFFE0 */ lw $t5, -0x20($a0) -/* 3DE9C 80062A9C 2484FFE0 */ addiu $a0, $a0, -0x20 -/* 3DEA0 80062AA0 ACA2FFFC */ sw $v0, -0x4($a1) -/* 3DEA4 80062AA4 ACA3FFF8 */ sw $v1, -0x8($a1) -/* 3DEA8 80062AA8 ACA8FFF4 */ sw $t0, -0xC($a1) -/* 3DEAC 80062AAC ACA9FFF0 */ sw $t1, -0x10($a1) -/* 3DEB0 80062AB0 ACAAFFEC */ sw $t2, -0x14($a1) -/* 3DEB4 80062AB4 ACABFFE8 */ sw $t3, -0x18($a1) -/* 3DEB8 80062AB8 ACACFFE4 */ sw $t4, -0x1C($a1) -/* 3DEBC 80062ABC ACADFFE0 */ sw $t5, -0x20($a1) -/* 3DEC0 80062AC0 24A5FFE0 */ addiu $a1, $a1, -0x20 -/* 3DEC4 80062AC4 1000FFEA */ b .LIQUE_80062A70 -/* 3DEC8 80062AC8 24C6FFE0 */ addiu $a2, $a2, -0x20 -.LIQUE_80062ACC: -/* 3DECC 80062ACC 28C10010 */ slti $at, $a2, 0x10 -/* 3DED0 80062AD0 1420000D */ bnez $at, .LIQUE_80062B08 -/* 3DED4 80062AD4 00000000 */ nop -/* 3DED8 80062AD8 8C82FFFC */ lw $v0, -0x4($a0) -/* 3DEDC 80062ADC 8C83FFF8 */ lw $v1, -0x8($a0) -/* 3DEE0 80062AE0 8C88FFF4 */ lw $t0, -0xC($a0) -/* 3DEE4 80062AE4 8C89FFF0 */ lw $t1, -0x10($a0) -/* 3DEE8 80062AE8 2484FFF0 */ addiu $a0, $a0, -0x10 -/* 3DEEC 80062AEC ACA2FFFC */ sw $v0, -0x4($a1) -/* 3DEF0 80062AF0 ACA3FFF8 */ sw $v1, -0x8($a1) -/* 3DEF4 80062AF4 ACA8FFF4 */ sw $t0, -0xC($a1) -/* 3DEF8 80062AF8 ACA9FFF0 */ sw $t1, -0x10($a1) -/* 3DEFC 80062AFC 24A5FFF0 */ addiu $a1, $a1, -0x10 -/* 3DF00 80062B00 1000FFF2 */ b .LIQUE_80062ACC -/* 3DF04 80062B04 24C6FFF0 */ addiu $a2, $a2, -0x10 -.LIQUE_80062B08: -/* 3DF08 80062B08 28C10004 */ slti $at, $a2, 0x4 -/* 3DF0C 80062B0C 1420FFB1 */ bnez $at, .LIQUE_800629D4 -/* 3DF10 80062B10 00000000 */ nop -/* 3DF14 80062B14 8C82FFFC */ lw $v0, -0x4($a0) -/* 3DF18 80062B18 2484FFFC */ addiu $a0, $a0, -0x4 -/* 3DF1C 80062B1C ACA2FFFC */ sw $v0, -0x4($a1) -/* 3DF20 80062B20 24A5FFFC */ addiu $a1, $a1, -0x4 -/* 3DF24 80062B24 1000FFF8 */ b .LIQUE_80062B08 -/* 3DF28 80062B28 24C6FFFC */ addiu $a2, $a2, -0x4 -/* 3DF2C 80062B2C 00000000 */ nop diff --git a/ver/ique/asm/os/bzero.s b/ver/ique/asm/os/bzero.s deleted file mode 100644 index a3311c41e4..0000000000 --- a/ver/ique/asm/os/bzero.s +++ /dev/null @@ -1,59 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel bzero -/* 3DF30 80062B30 00041823 */ negu $v1, $a0 -/* 3DF34 80062B34 28A1000C */ slti $at, $a1, 0xC -/* 3DF38 80062B38 1420001D */ bnez $at, .LIQUE_80062BB0 -/* 3DF3C 80062B3C 00000000 */ nop -/* 3DF40 80062B40 30630003 */ andi $v1, $v1, 0x3 -/* 3DF44 80062B44 10600003 */ beqz $v1, .LIQUE_80062B54 -/* 3DF48 80062B48 00A32823 */ subu $a1, $a1, $v1 -/* 3DF4C 80062B4C A8800000 */ swl $zero, 0x0($a0) -/* 3DF50 80062B50 00832021 */ addu $a0, $a0, $v1 -.LIQUE_80062B54: -/* 3DF54 80062B54 2401FFE0 */ addiu $at, $zero, -0x20 -/* 3DF58 80062B58 00A13824 */ and $a3, $a1, $at -/* 3DF5C 80062B5C 10E0000C */ beqz $a3, .LIQUE_80062B90 -/* 3DF60 80062B60 00A72823 */ subu $a1, $a1, $a3 -/* 3DF64 80062B64 00E43821 */ addu $a3, $a3, $a0 -.LIQUE_80062B68: -/* 3DF68 80062B68 AC800000 */ sw $zero, 0x0($a0) -/* 3DF6C 80062B6C AC800004 */ sw $zero, 0x4($a0) -/* 3DF70 80062B70 AC800008 */ sw $zero, 0x8($a0) -/* 3DF74 80062B74 AC80000C */ sw $zero, 0xC($a0) -/* 3DF78 80062B78 24840020 */ addiu $a0, $a0, 0x20 -/* 3DF7C 80062B7C AC80FFF0 */ sw $zero, -0x10($a0) -/* 3DF80 80062B80 AC80FFF4 */ sw $zero, -0xC($a0) -/* 3DF84 80062B84 AC80FFF8 */ sw $zero, -0x8($a0) -/* 3DF88 80062B88 1487FFF7 */ bne $a0, $a3, .LIQUE_80062B68 -/* 3DF8C 80062B8C AC80FFFC */ sw $zero, -0x4($a0) -.LIQUE_80062B90: -/* 3DF90 80062B90 2401FFFC */ addiu $at, $zero, -0x4 -/* 3DF94 80062B94 00A13824 */ and $a3, $a1, $at -/* 3DF98 80062B98 10E00005 */ beqz $a3, .LIQUE_80062BB0 -/* 3DF9C 80062B9C 00A72823 */ subu $a1, $a1, $a3 -/* 3DFA0 80062BA0 00E43821 */ addu $a3, $a3, $a0 -.LIQUE_80062BA4: -/* 3DFA4 80062BA4 24840004 */ addiu $a0, $a0, 0x4 -/* 3DFA8 80062BA8 1487FFFE */ bne $a0, $a3, .LIQUE_80062BA4 -/* 3DFAC 80062BAC AC80FFFC */ sw $zero, -0x4($a0) -.LIQUE_80062BB0: -/* 3DFB0 80062BB0 18A00005 */ blez $a1, .LIQUE_80062BC8 -/* 3DFB4 80062BB4 00000000 */ nop -/* 3DFB8 80062BB8 00A42821 */ addu $a1, $a1, $a0 -.LIQUE_80062BBC: -/* 3DFBC 80062BBC 24840001 */ addiu $a0, $a0, 0x1 -/* 3DFC0 80062BC0 1485FFFE */ bne $a0, $a1, .LIQUE_80062BBC -/* 3DFC4 80062BC4 A080FFFF */ sb $zero, -0x1($a0) -.LIQUE_80062BC8: -/* 3DFC8 80062BC8 03E00008 */ jr $ra -/* 3DFCC 80062BCC 00000000 */ nop diff --git a/ver/ique/asm/os/decode_yay0.s b/ver/ique/asm/os/decode_yay0.s deleted file mode 100644 index 6ccf3dad5e..0000000000 --- a/ver/ique/asm/os/decode_yay0.s +++ /dev/null @@ -1,63 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel decode_yay0 -/* 49780 8006E380 8C980004 */ lw $t8, 0x4($a0) -/* 49784 8006E384 8C870008 */ lw $a3, 0x8($a0) -/* 49788 8006E388 8C99000C */ lw $t9, 0xC($a0) -/* 4978C 8006E38C 0000302D */ daddu $a2, $zero, $zero -/* 49790 8006E390 0305C020 */ add $t8, $t8, $a1 # handwritten instruction -/* 49794 8006E394 00E43820 */ add $a3, $a3, $a0 # handwritten instruction -/* 49798 8006E398 0324C820 */ add $t9, $t9, $a0 # handwritten instruction -/* 4979C 8006E39C 20840010 */ addi $a0, $a0, 0x10 # handwritten instruction -.LIQUE_8006E3A0: -/* 497A0 8006E3A0 14C00004 */ bnez $a2, .LIQUE_8006E3B4 -/* 497A4 8006E3A4 00000000 */ nop -/* 497A8 8006E3A8 8C880000 */ lw $t0, 0x0($a0) -/* 497AC 8006E3AC 24060020 */ addiu $a2, $zero, 0x20 -/* 497B0 8006E3B0 20840004 */ addi $a0, $a0, 0x4 # handwritten instruction -.LIQUE_8006E3B4: -/* 497B4 8006E3B4 0100482A */ slt $t1, $t0, $zero -/* 497B8 8006E3B8 11200006 */ beqz $t1, .LIQUE_8006E3D4 -/* 497BC 8006E3BC 00000000 */ nop -/* 497C0 8006E3C0 832A0000 */ lb $t2, 0x0($t9) -/* 497C4 8006E3C4 23390001 */ addi $t9, $t9, 0x1 # handwritten instruction -/* 497C8 8006E3C8 A0AA0000 */ sb $t2, 0x0($a1) -/* 497CC 8006E3CC 1000000E */ b .LIQUE_8006E408 -/* 497D0 8006E3D0 20A50001 */ addi $a1, $a1, 0x1 # handwritten instruction -.LIQUE_8006E3D4: -/* 497D4 8006E3D4 94EA0000 */ lhu $t2, 0x0($a3) -/* 497D8 8006E3D8 20E70002 */ addi $a3, $a3, 0x2 # handwritten instruction -/* 497DC 8006E3DC 000A5B02 */ srl $t3, $t2, 12 -/* 497E0 8006E3E0 314A0FFF */ andi $t2, $t2, 0xFFF -/* 497E4 8006E3E4 1160000D */ beqz $t3, .LIQUE_8006E41C -/* 497E8 8006E3E8 00AA4822 */ sub $t1, $a1, $t2 -/* 497EC 8006E3EC 216B0002 */ addi $t3, $t3, 0x2 # handwritten instruction -.LIQUE_8006E3F0: -/* 497F0 8006E3F0 812AFFFF */ lb $t2, -0x1($t1) -/* 497F4 8006E3F4 216BFFFF */ addi $t3, $t3, -0x1 # handwritten instruction -/* 497F8 8006E3F8 21290001 */ addi $t1, $t1, 0x1 # handwritten instruction -/* 497FC 8006E3FC A0AA0000 */ sb $t2, 0x0($a1) -/* 49800 8006E400 1560FFFB */ bnez $t3, .LIQUE_8006E3F0 -/* 49804 8006E404 20A50001 */ addi $a1, $a1, 0x1 # handwritten instruction -.LIQUE_8006E408: -/* 49808 8006E408 00084040 */ sll $t0, $t0, 1 -/* 4980C 8006E40C 14B8FFE4 */ bne $a1, $t8, .LIQUE_8006E3A0 -/* 49810 8006E410 20C6FFFF */ addi $a2, $a2, -0x1 # handwritten instruction -/* 49814 8006E414 03E00008 */ jr $ra -/* 49818 8006E418 00000000 */ nop -.LIQUE_8006E41C: -/* 4981C 8006E41C 932B0000 */ lbu $t3, 0x0($t9) -/* 49820 8006E420 23390001 */ addi $t9, $t9, 0x1 # handwritten instruction -/* 49824 8006E424 1000FFF2 */ b .LIQUE_8006E3F0 -/* 49828 8006E428 216B0012 */ addi $t3, $t3, 0x12 # handwritten instruction -/* 4982C 8006E42C 00000000 */ nop diff --git a/ver/ique/asm/os/exceptasm.s b/ver/ique/asm/os/exceptasm.s deleted file mode 100644 index 2eec30a6db..0000000000 --- a/ver/ique/asm/os/exceptasm.s +++ /dev/null @@ -1,842 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .rodata - -__osIntOffTable: -/* 73CB0 800988B0 */ .byte 0x00 -/* 73CB1 800988B1 */ .byte 0x14 -/* 73CB2 800988B2 */ .byte 0x18 -/* 73CB3 800988B3 */ .byte 0x18 -/* 73CB4 800988B4 */ .byte 0x1C -/* 73CB5 800988B5 */ .byte 0x1C -/* 73CB6 800988B6 */ .byte 0x1C -/* 73CB7 800988B7 */ .byte 0x1C -/* 73CB8 800988B8 */ .byte 0x20 -/* 73CB9 800988B9 */ .byte 0x20 -/* 73CBA 800988BA */ .byte 0x20 -/* 73CBB 800988BB */ .byte 0x20 -/* 73CBC 800988BC */ .byte 0x20 -/* 73CBD 800988BD */ .byte 0x20 -/* 73CBE 800988BE */ .byte 0x20 -/* 73CBF 800988BF */ .byte 0x20 -/* 73CC0 800988C0 */ .byte 0x00 -/* 73CC1 800988C1 */ .byte 0x04 -/* 73CC2 800988C2 */ .byte 0x08 -/* 73CC3 800988C3 */ .byte 0x08 -/* 73CC4 800988C4 */ .byte 0x0C -/* 73CC5 800988C5 */ .byte 0x0C -/* 73CC6 800988C6 */ .byte 0x0C -/* 73CC7 800988C7 */ .byte 0x0C -/* 73CC8 800988C8 */ .byte 0x10 -/* 73CC9 800988C9 */ .byte 0x10 -/* 73CCA 800988CA */ .byte 0x10 -/* 73CCB 800988CB */ .byte 0x10 -/* 73CCC 800988CC */ .byte 0x10 -/* 73CCD 800988CD */ .byte 0x10 -/* 73CCE 800988CE */ .byte 0x10 -/* 73CCF 800988CF */ .byte 0x10 -.size __osIntOffTable, . - __osIntOffTable - -__osIntTable: -/* 73CD0 800988D0 80066894 */ .word .LIQUE_80066894 -/* 73CD4 800988D4 80066858 */ .word .LIQUE_80066858 -/* 73CD8 800988D8 80066834 */ .word .LIQUE_80066834 -/* 73CDC 800988DC 8006664C */ .word .LIQUE_8006664C -/* 73CE0 800988E0 80066508 */ .word .LIQUE_80066508 -/* 73CE4 800988E4 800667C0 */ .word .LIQUE_800667C0 -/* 73CE8 800988E8 800664CC */ .word .LIQUE_800664CC -/* 73CEC 800988EC 800664D8 */ .word .LIQUE_800664D8 -/* 73CF0 800988F0 800664E4 */ .word .LIQUE_800664E4 -/* 73CF4 800988F4 00000000 */ .word 0x00000000 -/* 73CF8 800988F8 00000000 */ .word 0x00000000 -/* 73CFC 800988FC 00000000 */ .word 0x00000000 -.size __osIntTable, . - __osIntTable - -.section .data - -__osHwIntTable: -/* 6F8F0 800944F0 */ .word 0x00000000 -/* 6F8F4 800944F4 */ .word 0x00000000 -/* 6F8F8 800944F8 */ .word 0x00000000 -/* 6F8FC 800944FC */ .word 0x00000000 -/* 6F900 80094500 */ .word 0x00000000 -/* 6F904 80094504 */ .word 0x00000000 -/* 6F908 80094508 */ .word 0x00000000 -/* 6F90C 8009450C */ .word 0x00000000 -/* 6F910 80094510 */ .word 0x00000000 -/* 6F914 80094514 */ .word 0x00000000 -.size __osHwIntTable, . - __osHwIntTable - -__osPiIntTable: -/* 6F918 80094518 */ .word 0x00000000 -/* 6F91C 8009451C */ .word 0x00000000 -.size __osPiIntTable, . - __osPiIntTable - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osExceptionPreamble -/* 41630 80066230 3C1A8006 */ lui $k0, %hi(__osException) # handwritten instruction -/* 41634 80066234 675A6240 */ daddiu $k0, $k0, %lo(__osException) # handwritten instruction -/* 41638 80066238 03400008 */ jr $k0 -/* 4163C 8006623C 00000000 */ nop - -# Handwritten function -glabel __osException -/* 41640 80066240 3C1A800B */ lui $k0, %hi(__osThreadSave) # handwritten instruction -/* 41644 80066244 675AF740 */ daddiu $k0, $k0, %lo(__osThreadSave) # handwritten instruction -/* 41648 80066248 FF410020 */ sd $at, 0x20($k0) # handwritten instruction -/* 4164C 8006624C 401B6000 */ mfc0 $k1, $12 # handwritten instruction -/* 41650 80066250 AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction -/* 41654 80066254 2401FFFC */ addiu $at, $zero, -0x4 -/* 41658 80066258 0361D824 */ and $k1, $k1, $at -/* 4165C 8006625C 409B6000 */ mtc0 $k1, $12 # handwritten instruction -/* 41660 80066260 FF480058 */ sd $t0, 0x58($k0) # handwritten instruction -/* 41664 80066264 FF490060 */ sd $t1, 0x60($k0) # handwritten instruction -/* 41668 80066268 FF4A0068 */ sd $t2, 0x68($k0) # handwritten instruction -/* 4166C 8006626C AF400018 */ sw $zero, 0x18($k0) # handwritten instruction -/* 41670 80066270 40086800 */ mfc0 $t0, $13 # handwritten instruction -/* 41674 80066274 0340402D */ daddu $t0, $k0, $zero -/* 41678 80066278 3C1A8009 */ lui $k0, %hi(__osRunningThread) # handwritten instruction -/* 4167C 8006627C 8F5A3280 */ lw $k0, %lo(__osRunningThread)($k0) # handwritten instruction -/* 41680 80066280 DD090020 */ ld $t1, 0x20($t0) -/* 41684 80066284 FF490020 */ sd $t1, 0x20($k0) # handwritten instruction -/* 41688 80066288 DD090118 */ ld $t1, 0x118($t0) -/* 4168C 8006628C FF490118 */ sd $t1, 0x118($k0) # handwritten instruction -/* 41690 80066290 DD090058 */ ld $t1, 0x58($t0) -/* 41694 80066294 FF490058 */ sd $t1, 0x58($k0) # handwritten instruction -/* 41698 80066298 DD090060 */ ld $t1, 0x60($t0) -/* 4169C 8006629C FF490060 */ sd $t1, 0x60($k0) # handwritten instruction -/* 416A0 800662A0 DD090068 */ ld $t1, 0x68($t0) -/* 416A4 800662A4 FF490068 */ sd $t1, 0x68($k0) # handwritten instruction -/* 416A8 800662A8 FF420028 */ sd $v0, 0x28($k0) # handwritten instruction -/* 416AC 800662AC FF430030 */ sd $v1, 0x30($k0) # handwritten instruction -/* 416B0 800662B0 FF440038 */ sd $a0, 0x38($k0) # handwritten instruction -/* 416B4 800662B4 FF450040 */ sd $a1, 0x40($k0) # handwritten instruction -/* 416B8 800662B8 FF460048 */ sd $a2, 0x48($k0) # handwritten instruction -/* 416BC 800662BC FF470050 */ sd $a3, 0x50($k0) # handwritten instruction -/* 416C0 800662C0 FF4B0070 */ sd $t3, 0x70($k0) # handwritten instruction -/* 416C4 800662C4 FF4C0078 */ sd $t4, 0x78($k0) # handwritten instruction -/* 416C8 800662C8 FF4D0080 */ sd $t5, 0x80($k0) # handwritten instruction -/* 416CC 800662CC FF4E0088 */ sd $t6, 0x88($k0) # handwritten instruction -/* 416D0 800662D0 FF4F0090 */ sd $t7, 0x90($k0) # handwritten instruction -/* 416D4 800662D4 FF500098 */ sd $s0, 0x98($k0) # handwritten instruction -/* 416D8 800662D8 FF5100A0 */ sd $s1, 0xA0($k0) # handwritten instruction -/* 416DC 800662DC FF5200A8 */ sd $s2, 0xA8($k0) # handwritten instruction -/* 416E0 800662E0 FF5300B0 */ sd $s3, 0xB0($k0) # handwritten instruction -/* 416E4 800662E4 FF5400B8 */ sd $s4, 0xB8($k0) # handwritten instruction -/* 416E8 800662E8 FF5500C0 */ sd $s5, 0xC0($k0) # handwritten instruction -/* 416EC 800662EC FF5600C8 */ sd $s6, 0xC8($k0) # handwritten instruction -/* 416F0 800662F0 FF5700D0 */ sd $s7, 0xD0($k0) # handwritten instruction -/* 416F4 800662F4 FF5800D8 */ sd $t8, 0xD8($k0) # handwritten instruction -/* 416F8 800662F8 FF5900E0 */ sd $t9, 0xE0($k0) # handwritten instruction -/* 416FC 800662FC FF5C00E8 */ sd $gp, 0xE8($k0) # handwritten instruction -/* 41700 80066300 FF5D00F0 */ sd $sp, 0xF0($k0) # handwritten instruction -/* 41704 80066304 FF5E00F8 */ sd $fp, 0xF8($k0) # handwritten instruction -/* 41708 80066308 FF5F0100 */ sd $ra, 0x100($k0) # handwritten instruction -/* 4170C 8006630C 00004012 */ mflo $t0 -/* 41710 80066310 FF480108 */ sd $t0, 0x108($k0) # handwritten instruction -/* 41714 80066314 00004010 */ mfhi $t0 -/* 41718 80066318 FF480110 */ sd $t0, 0x110($k0) # handwritten instruction -/* 4171C 8006631C 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 41720 80066320 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 41724 80066324 11200014 */ beqz $t1, .LIQUE_80066378 -/* 41728 80066328 00000000 */ nop -/* 4172C 8006632C 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 41730 80066330 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 41734 80066334 8D080000 */ lw $t0, 0x0($t0) -/* 41738 80066338 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 4173C 8006633C 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 41740 80066340 01015026 */ xor $t2, $t0, $at -/* 41744 80066344 314AFF00 */ andi $t2, $t2, 0xFF00 -/* 41748 80066348 012A6025 */ or $t4, $t1, $t2 -/* 4174C 8006634C 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 41750 80066350 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 41754 80066354 03615824 */ and $t3, $k1, $at -/* 41758 80066358 016C5825 */ or $t3, $t3, $t4 -/* 4175C 8006635C AF4B0118 */ sw $t3, 0x118($k0) # handwritten instruction -/* 41760 80066360 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 41764 80066364 01284824 */ and $t1, $t1, $t0 -/* 41768 80066368 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 4176C 8006636C 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 41770 80066370 0361D824 */ and $k1, $k1, $at -/* 41774 80066374 0369D825 */ or $k1, $k1, $t1 -.LIQUE_80066378: -/* 41778 80066378 3C09A430 */ lui $t1, %hi(D_A430000C) -/* 4177C 8006637C 8D29000C */ lw $t1, %lo(D_A430000C)($t1) -/* 41780 80066380 1120000C */ beqz $t1, .LIQUE_800663B4 -/* 41784 80066384 00000000 */ nop -/* 41788 80066388 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 4178C 8006638C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 41790 80066390 8D080000 */ lw $t0, 0x0($t0) -/* 41794 80066394 00084402 */ srl $t0, $t0, 16 -/* 41798 80066398 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 4179C 8006639C 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 417A0 800663A0 01014026 */ xor $t0, $t0, $at -/* 417A4 800663A4 3108003F */ andi $t0, $t0, 0x3F -/* 417A8 800663A8 8F4C0128 */ lw $t4, 0x128($k0) # handwritten instruction -/* 417AC 800663AC 010C4024 */ and $t0, $t0, $t4 -/* 417B0 800663B0 01284825 */ or $t1, $t1, $t0 -.LIQUE_800663B4: -/* 417B4 800663B4 AF490128 */ sw $t1, 0x128($k0) # handwritten instruction -/* 417B8 800663B8 40087000 */ mfc0 $t0, $14 # handwritten instruction -/* 417BC 800663BC AF48011C */ sw $t0, 0x11C($k0) # handwritten instruction -/* 417C0 800663C0 8F480018 */ lw $t0, 0x18($k0) # handwritten instruction -/* 417C4 800663C4 11000014 */ beqz $t0, .LIQUE_80066418 -/* 417C8 800663C8 00000000 */ nop -/* 417CC 800663CC 4448F800 */ cfc1 $t0, $31 -/* 417D0 800663D0 00000000 */ nop -/* 417D4 800663D4 AF48012C */ sw $t0, 0x12C($k0) # handwritten instruction -/* 417D8 800663D8 F7400130 */ sdc1 $f0, 0x130($k0) -/* 417DC 800663DC F7420138 */ sdc1 $f2, 0x138($k0) -/* 417E0 800663E0 F7440140 */ sdc1 $f4, 0x140($k0) -/* 417E4 800663E4 F7460148 */ sdc1 $f6, 0x148($k0) -/* 417E8 800663E8 F7480150 */ sdc1 $f8, 0x150($k0) -/* 417EC 800663EC F74A0158 */ sdc1 $f10, 0x158($k0) -/* 417F0 800663F0 F74C0160 */ sdc1 $f12, 0x160($k0) -/* 417F4 800663F4 F74E0168 */ sdc1 $f14, 0x168($k0) -/* 417F8 800663F8 F7500170 */ sdc1 $f16, 0x170($k0) -/* 417FC 800663FC F7520178 */ sdc1 $f18, 0x178($k0) -/* 41800 80066400 F7540180 */ sdc1 $f20, 0x180($k0) -/* 41804 80066404 F7560188 */ sdc1 $f22, 0x188($k0) -/* 41808 80066408 F7580190 */ sdc1 $f24, 0x190($k0) -/* 4180C 8006640C F75A0198 */ sdc1 $f26, 0x198($k0) -/* 41810 80066410 F75C01A0 */ sdc1 $f28, 0x1A0($k0) -/* 41814 80066414 F75E01A8 */ sdc1 $f30, 0x1A8($k0) -.LIQUE_80066418: -/* 41818 80066418 40086800 */ mfc0 $t0, $13 # handwritten instruction -/* 4181C 8006641C AF480120 */ sw $t0, 0x120($k0) # handwritten instruction -/* 41820 80066420 24090002 */ addiu $t1, $zero, 0x2 -/* 41824 80066424 A7490010 */ sh $t1, 0x10($k0) # handwritten instruction -/* 41828 80066428 3109007C */ andi $t1, $t0, 0x7C -/* 4182C 8006642C 240A0024 */ addiu $t2, $zero, 0x24 -/* 41830 80066430 112A0112 */ beq $t1, $t2, .LIQUE_8006687C -/* 41834 80066434 00000000 */ nop -/* 41838 80066438 240A002C */ addiu $t2, $zero, 0x2C -/* 4183C 8006643C 112A0164 */ beq $t1, $t2, .LIQUE_800669D0 -/* 41840 80066440 00000000 */ nop -/* 41844 80066444 240A0000 */ addiu $t2, $zero, 0x0 -/* 41848 80066448 152A0126 */ bne $t1, $t2, .LIQUE_800668E4 -/* 4184C 8006644C 00000000 */ nop -/* 41850 80066450 3C098009 */ lui $t1, %hi(__osShutdown) -/* 41854 80066454 652945AC */ daddiu $t1, $t1, %lo(__osShutdown) -/* 41858 80066458 8D2A0000 */ lw $t2, 0x0($t1) -/* 4185C 8006645C 1140000C */ beqz $t2, .LIQUE_80066490 -/* 41860 80066460 00000000 */ nop -/* 41864 80066464 3C098009 */ lui $t1, %hi(__osShutdownTime) -/* 41868 80066468 652945B0 */ daddiu $t1, $t1, %lo(__osShutdownTime) -/* 4186C 8006646C 8D290000 */ lw $t1, 0x0($t1) -/* 41870 80066470 400A4800 */ mfc0 $t2, $9 # handwritten instruction -/* 41874 80066474 01495023 */ subu $t2, $t2, $t1 -/* 41878 80066478 3C090500 */ lui $t1, (0x5000000 >> 16) -/* 4187C 8006647C 012A482B */ sltu $t1, $t1, $t2 -/* 41880 80066480 11200003 */ beqz $t1, .LIQUE_80066490 -/* 41884 80066484 00000000 */ nop -/* 41888 80066488 0C019FEB */ jal skExit -/* 4188C 8006648C 00000000 */ nop -.LIQUE_80066490: -/* 41890 80066490 03688024 */ and $s0, $k1, $t0 -.LIQUE_80066494: -/* 41894 80066494 3209FF00 */ andi $t1, $s0, 0xFF00 -/* 41898 80066498 00095302 */ srl $t2, $t1, 12 -/* 4189C 8006649C 15400003 */ bnez $t2, .LIQUE_800664AC -/* 418A0 800664A0 00000000 */ nop -/* 418A4 800664A4 00095202 */ srl $t2, $t1, 8 -/* 418A8 800664A8 214A0010 */ addi $t2, $t2, 0x10 # handwritten instruction -.LIQUE_800664AC: -/* 418AC 800664AC 3C01800A */ lui $at, %hi(__osIntOffTable) -/* 418B0 800664B0 002A082D */ daddu $at, $at, $t2 -/* 418B4 800664B4 902A88B0 */ lbu $t2, %lo(__osIntOffTable)($at) -/* 418B8 800664B8 3C01800A */ lui $at, %hi(__osIntTable) -/* 418BC 800664BC 002A082D */ daddu $at, $at, $t2 -/* 418C0 800664C0 8C2A88D0 */ lw $t2, %lo(__osIntTable)($at) -/* 418C4 800664C4 01400008 */ jr $t2 -/* 418C8 800664C8 00000000 */ nop -glabel .LIQUE_800664CC -/* 418CC 800664CC 2401DFFF */ addiu $at, $zero, -0x2001 -/* 418D0 800664D0 1000FFF0 */ b .LIQUE_80066494 -/* 418D4 800664D4 02018024 */ and $s0, $s0, $at -glabel .LIQUE_800664D8 -/* 418D8 800664D8 2401BFFF */ addiu $at, $zero, -0x4001 -/* 418DC 800664DC 1000FFED */ b .LIQUE_80066494 -/* 418E0 800664E0 02018024 */ and $s0, $s0, $at -glabel .LIQUE_800664E4 -/* 418E4 800664E4 40095800 */ mfc0 $t1, $11 # handwritten instruction -/* 418E8 800664E8 40895800 */ mtc0 $t1, $11 # handwritten instruction -/* 418EC 800664EC 24040018 */ addiu $a0, $zero, 0x18 -/* 418F0 800664F0 0C019A45 */ jal send_mesg -/* 418F4 800664F4 00000000 */ nop -/* 418F8 800664F8 3C01FFFF */ lui $at, (0xFFFF7FFF >> 16) -/* 418FC 800664FC 34217FFF */ ori $at, $at, (0xFFFF7FFF & 0xFFFF) -/* 41900 80066500 1000FFE4 */ b .LIQUE_80066494 -/* 41904 80066504 02018024 */ and $s0, $s0, $at -glabel .LIQUE_80066508 -/* 41908 80066508 2401F7FF */ addiu $at, $zero, -0x801 -/* 4190C 8006650C 02018024 */ and $s0, $s0, $at -/* 41910 80066510 3C098009 */ lui $t1, %hi(__osHwIntTable) -/* 41914 80066514 652944F0 */ daddiu $t1, $t1, %lo(__osHwIntTable) -/* 41918 80066518 21290008 */ addi $t1, $t1, 0x8 # handwritten instruction -/* 4191C 8006651C 8D2A0000 */ lw $t2, 0x0($t1) -/* 41920 80066520 11400007 */ beqz $t2, .LIQUE_80066540 -/* 41924 80066524 00000000 */ nop -/* 41928 80066528 0140F809 */ jalr $t2 -/* 4192C 8006652C 8D3D0004 */ lw $sp, 0x4($t1) -/* 41930 80066530 10400003 */ beqz $v0, .LIQUE_80066540 -/* 41934 80066534 00000000 */ nop -/* 41938 80066538 100000D6 */ b .LIQUE_80066894 -/* 4193C 8006653C 00000000 */ nop -.LIQUE_80066540: -/* 41940 80066540 3C11A430 */ lui $s1, %hi(D_A4300038) -/* 41944 80066544 8E310038 */ lw $s1, %lo(D_A4300038)($s1) -/* 41948 80066548 32290040 */ andi $t1, $s1, 0x40 -/* 4194C 8006654C 11200007 */ beqz $t1, .LIQUE_8006656C -/* 41950 80066550 00000000 */ nop -/* 41954 80066554 32313F80 */ andi $s1, $s1, 0x3F80 -/* 41958 80066558 24090000 */ addiu $t1, $zero, 0x0 -/* 4195C 8006655C 3C01A460 */ lui $at, %hi(D_A4600048) -/* 41960 80066560 AC290048 */ sw $t1, %lo(D_A4600048)($at) -/* 41964 80066564 0C019A45 */ jal send_mesg -/* 41968 80066568 240400B8 */ addiu $a0, $zero, 0xB8 -.LIQUE_8006656C: -/* 4196C 8006656C 32292000 */ andi $t1, $s1, 0x2000 -/* 41970 80066570 11200007 */ beqz $t1, .LIQUE_80066590 -/* 41974 80066574 00000000 */ nop -/* 41978 80066578 32311FC0 */ andi $s1, $s1, 0x1FC0 -/* 4197C 8006657C 24092000 */ addiu $t1, $zero, 0x2000 -/* 41980 80066580 3C01A430 */ lui $at, %hi(D_A4300038) -/* 41984 80066584 AC290038 */ sw $t1, %lo(D_A4300038)($at) -/* 41988 80066588 0C019A45 */ jal send_mesg -/* 4198C 8006658C 240400F0 */ addiu $a0, $zero, 0xF0 -.LIQUE_80066590: -/* 41990 80066590 32290080 */ andi $t1, $s1, 0x80 -/* 41994 80066594 11200007 */ beqz $t1, .LIQUE_800665B4 -/* 41998 80066598 00000000 */ nop -/* 4199C 8006659C 32313F40 */ andi $s1, $s1, 0x3F40 -/* 419A0 800665A0 24094000 */ addiu $t1, $zero, 0x4000 -/* 419A4 800665A4 3C01A430 */ lui $at, %hi(D_A430003C) -/* 419A8 800665A8 AC29003C */ sw $t1, %lo(D_A430003C)($at) -/* 419AC 800665AC 0C019A45 */ jal send_mesg -/* 419B0 800665B0 240400C0 */ addiu $a0, $zero, 0xC0 -.LIQUE_800665B4: -/* 419B4 800665B4 32290100 */ andi $t1, $s1, 0x100 -/* 419B8 800665B8 11200007 */ beqz $t1, .LIQUE_800665D8 -/* 419BC 800665BC 00000000 */ nop -/* 419C0 800665C0 32313EC0 */ andi $s1, $s1, 0x3EC0 -/* 419C4 800665C4 3C090001 */ lui $t1, (0x10000 >> 16) -/* 419C8 800665C8 3C01A430 */ lui $at, %hi(D_A430003C) -/* 419CC 800665CC AC29003C */ sw $t1, %lo(D_A430003C)($at) -/* 419D0 800665D0 0C019A45 */ jal send_mesg -/* 419D4 800665D4 240400C8 */ addiu $a0, $zero, 0xC8 -.LIQUE_800665D8: -/* 419D8 800665D8 32290200 */ andi $t1, $s1, 0x200 -/* 419DC 800665DC 11200007 */ beqz $t1, .LIQUE_800665FC -/* 419E0 800665E0 00000000 */ nop -/* 419E4 800665E4 32313DC0 */ andi $s1, $s1, 0x3DC0 -/* 419E8 800665E8 3C090004 */ lui $t1, (0x40000 >> 16) -/* 419EC 800665EC 3C01A430 */ lui $at, %hi(D_A430003C) -/* 419F0 800665F0 AC29003C */ sw $t1, %lo(D_A430003C)($at) -/* 419F4 800665F4 0C019A45 */ jal send_mesg -/* 419F8 800665F8 240400D0 */ addiu $a0, $zero, 0xD0 -.LIQUE_800665FC: -/* 419FC 800665FC 32290400 */ andi $t1, $s1, 0x400 -/* 41A00 80066600 11200007 */ beqz $t1, .LIQUE_80066620 -/* 41A04 80066604 00000000 */ nop -/* 41A08 80066608 32313BC0 */ andi $s1, $s1, 0x3BC0 -/* 41A0C 8006660C 3C090010 */ lui $t1, (0x100000 >> 16) -/* 41A10 80066610 3C01A430 */ lui $at, %hi(D_A430003C) -/* 41A14 80066614 AC29003C */ sw $t1, %lo(D_A430003C)($at) -/* 41A18 80066618 0C019A45 */ jal send_mesg -/* 41A1C 8006661C 240400D8 */ addiu $a0, $zero, 0xD8 -.LIQUE_80066620: -/* 41A20 80066620 32290800 */ andi $t1, $s1, 0x800 -/* 41A24 80066624 11200007 */ beqz $t1, .LIQUE_80066644 -/* 41A28 80066628 00000000 */ nop -/* 41A2C 8006662C 323137C0 */ andi $s1, $s1, 0x37C0 -/* 41A30 80066630 3C090040 */ lui $t1, (0x400000 >> 16) -/* 41A34 80066634 3C01A430 */ lui $at, %hi(D_A430003C) -/* 41A38 80066638 AC29003C */ sw $t1, %lo(D_A430003C)($at) -/* 41A3C 8006663C 0C019A45 */ jal send_mesg -/* 41A40 80066640 240400E0 */ addiu $a0, $zero, 0xE0 -.LIQUE_80066644: -/* 41A44 80066644 1000FF93 */ b .LIQUE_80066494 -/* 41A48 80066648 00000000 */ nop -glabel .LIQUE_8006664C -/* 41A4C 8006664C 3C11A430 */ lui $s1, %hi(D_A4300008) -/* 41A50 80066650 8E310008 */ lw $s1, %lo(D_A4300008)($s1) -/* 41A54 80066654 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 41A58 80066658 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 41A5C 8006665C 8D080000 */ lw $t0, 0x0($t0) -/* 41A60 80066660 00084402 */ srl $t0, $t0, 16 -/* 41A64 80066664 02288824 */ and $s1, $s1, $t0 -/* 41A68 80066668 32290001 */ andi $t1, $s1, 0x1 -/* 41A6C 8006666C 11200014 */ beqz $t1, .LIQUE_800666C0 -/* 41A70 80066670 00000000 */ nop -/* 41A74 80066674 3231003E */ andi $s1, $s1, 0x3E -/* 41A78 80066678 3C0CA404 */ lui $t4, %hi(D_A4040010) -/* 41A7C 8006667C 8D8C0010 */ lw $t4, %lo(D_A4040010)($t4) -/* 41A80 80066680 34098008 */ ori $t1, $zero, 0x8008 -/* 41A84 80066684 3C01A404 */ lui $at, %hi(D_A4040010) -/* 41A88 80066688 AC290010 */ sw $t1, %lo(D_A4040010)($at) -/* 41A8C 8006668C 318C0300 */ andi $t4, $t4, 0x300 -/* 41A90 80066690 11800007 */ beqz $t4, .LIQUE_800666B0 -/* 41A94 80066694 00000000 */ nop -/* 41A98 80066698 0C019A45 */ jal send_mesg -/* 41A9C 8006669C 24040020 */ addiu $a0, $zero, 0x20 -/* 41AA0 800666A0 12200044 */ beqz $s1, .LIQUE_800667B4 -/* 41AA4 800666A4 00000000 */ nop -/* 41AA8 800666A8 10000005 */ b .LIQUE_800666C0 -/* 41AAC 800666AC 00000000 */ nop -.LIQUE_800666B0: -/* 41AB0 800666B0 0C019A45 */ jal send_mesg -/* 41AB4 800666B4 24040058 */ addiu $a0, $zero, 0x58 -/* 41AB8 800666B8 1220003E */ beqz $s1, .LIQUE_800667B4 -/* 41ABC 800666BC 00000000 */ nop -.LIQUE_800666C0: -/* 41AC0 800666C0 32290008 */ andi $t1, $s1, 0x8 -/* 41AC4 800666C4 11200008 */ beqz $t1, .LIQUE_800666E8 -/* 41AC8 800666C8 00000000 */ nop -/* 41ACC 800666CC 32310037 */ andi $s1, $s1, 0x37 -/* 41AD0 800666D0 3C01A440 */ lui $at, %hi(D_A4400010) -/* 41AD4 800666D4 AC200010 */ sw $zero, %lo(D_A4400010)($at) -/* 41AD8 800666D8 0C019A45 */ jal send_mesg -/* 41ADC 800666DC 24040038 */ addiu $a0, $zero, 0x38 -/* 41AE0 800666E0 12200034 */ beqz $s1, .LIQUE_800667B4 -/* 41AE4 800666E4 00000000 */ nop -.LIQUE_800666E8: -/* 41AE8 800666E8 32290004 */ andi $t1, $s1, 0x4 -/* 41AEC 800666EC 11200009 */ beqz $t1, .LIQUE_80066714 -/* 41AF0 800666F0 00000000 */ nop -/* 41AF4 800666F4 3231003B */ andi $s1, $s1, 0x3B -/* 41AF8 800666F8 24090001 */ addiu $t1, $zero, 0x1 -/* 41AFC 800666FC 3C01A450 */ lui $at, %hi(D_A450000C) -/* 41B00 80066700 AC29000C */ sw $t1, %lo(D_A450000C)($at) -/* 41B04 80066704 0C019A45 */ jal send_mesg -/* 41B08 80066708 24040030 */ addiu $a0, $zero, 0x30 -/* 41B0C 8006670C 12200029 */ beqz $s1, .LIQUE_800667B4 -/* 41B10 80066710 00000000 */ nop -.LIQUE_80066714: -/* 41B14 80066714 32290002 */ andi $t1, $s1, 0x2 -/* 41B18 80066718 11200008 */ beqz $t1, .LIQUE_8006673C -/* 41B1C 8006671C 00000000 */ nop -/* 41B20 80066720 3231003D */ andi $s1, $s1, 0x3D -/* 41B24 80066724 3C01A480 */ lui $at, %hi(D_A4800018) -/* 41B28 80066728 AC200018 */ sw $zero, %lo(D_A4800018)($at) -/* 41B2C 8006672C 0C019A45 */ jal send_mesg -/* 41B30 80066730 24040028 */ addiu $a0, $zero, 0x28 -/* 41B34 80066734 1220001F */ beqz $s1, .LIQUE_800667B4 -/* 41B38 80066738 00000000 */ nop -.LIQUE_8006673C: -/* 41B3C 8006673C 32290010 */ andi $t1, $s1, 0x10 -/* 41B40 80066740 11200013 */ beqz $t1, .LIQUE_80066790 -/* 41B44 80066744 00000000 */ nop -/* 41B48 80066748 3231002F */ andi $s1, $s1, 0x2F -/* 41B4C 8006674C 24090002 */ addiu $t1, $zero, 0x2 -/* 41B50 80066750 3C01A460 */ lui $at, %hi(D_A4600010) -/* 41B54 80066754 AC290010 */ sw $t1, %lo(D_A4600010)($at) -/* 41B58 80066758 3C098009 */ lui $t1, %hi(__osPiIntTable) -/* 41B5C 8006675C 65294518 */ daddiu $t1, $t1, %lo(__osPiIntTable) -/* 41B60 80066760 8D2A0000 */ lw $t2, 0x0($t1) -/* 41B64 80066764 11400006 */ beqz $t2, .LIQUE_80066780 -/* 41B68 80066768 00000000 */ nop -/* 41B6C 8006676C 8D3D0004 */ lw $sp, 0x4($t1) -/* 41B70 80066770 0140F809 */ jalr $t2 -/* 41B74 80066774 0040202D */ daddu $a0, $v0, $zero -/* 41B78 80066778 14400003 */ bnez $v0, .LIQUE_80066788 -/* 41B7C 8006677C 00000000 */ nop -.LIQUE_80066780: -/* 41B80 80066780 0C019A45 */ jal send_mesg -/* 41B84 80066784 24040040 */ addiu $a0, $zero, 0x40 -.LIQUE_80066788: -/* 41B88 80066788 1220000A */ beqz $s1, .LIQUE_800667B4 -/* 41B8C 8006678C 00000000 */ nop -.LIQUE_80066790: -/* 41B90 80066790 32290020 */ andi $t1, $s1, 0x20 -/* 41B94 80066794 11200007 */ beqz $t1, .LIQUE_800667B4 -/* 41B98 80066798 00000000 */ nop -/* 41B9C 8006679C 3231001F */ andi $s1, $s1, 0x1F -/* 41BA0 800667A0 24090800 */ addiu $t1, $zero, 0x800 -/* 41BA4 800667A4 3C01A430 */ lui $at, %hi(D_A4300000) -/* 41BA8 800667A8 AC290000 */ sw $t1, %lo(D_A4300000)($at) -/* 41BAC 800667AC 0C019A45 */ jal send_mesg -/* 41BB0 800667B0 24040048 */ addiu $a0, $zero, 0x48 -.LIQUE_800667B4: -/* 41BB4 800667B4 2401FBFF */ addiu $at, $zero, -0x401 -/* 41BB8 800667B8 1000FF36 */ b .LIQUE_80066494 -/* 41BBC 800667BC 02018024 */ and $s0, $s0, $at -glabel .LIQUE_800667C0 -/* 41BC0 800667C0 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 41BC4 800667C4 2401EFFF */ addiu $at, $zero, -0x1001 -/* 41BC8 800667C8 0361D824 */ and $k1, $k1, $at -/* 41BCC 800667CC AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction -/* 41BD0 800667D0 3C098009 */ lui $t1, %hi(__osShutdown) -/* 41BD4 800667D4 652945AC */ daddiu $t1, $t1, %lo(__osShutdown) -/* 41BD8 800667D8 8D2A0000 */ lw $t2, 0x0($t1) -/* 41BDC 800667DC 11400004 */ beqz $t2, .LIQUE_800667F0 -/* 41BE0 800667E0 00000000 */ nop -/* 41BE4 800667E4 2401EFFF */ addiu $at, $zero, -0x1001 -/* 41BE8 800667E8 1000002A */ b .LIQUE_80066894 -/* 41BEC 800667EC 02018024 */ and $s0, $s0, $at -.LIQUE_800667F0: -/* 41BF0 800667F0 240A0001 */ addiu $t2, $zero, 0x1 -/* 41BF4 800667F4 AD2A0000 */ sw $t2, 0x0($t1) -/* 41BF8 800667F8 400A4800 */ mfc0 $t2, $9 # handwritten instruction -/* 41BFC 800667FC 3C098009 */ lui $t1, %hi(__osShutdownTime) -/* 41C00 80066800 652945B0 */ daddiu $t1, $t1, %lo(__osShutdownTime) -/* 41C04 80066804 AD2A0000 */ sw $t2, 0x0($t1) -/* 41C08 80066808 0C019A45 */ jal send_mesg -/* 41C0C 8006680C 24040070 */ addiu $a0, $zero, 0x70 -/* 41C10 80066810 2401EFFF */ addiu $at, $zero, -0x1001 -/* 41C14 80066814 02018024 */ and $s0, $s0, $at -/* 41C18 80066818 3C0A8009 */ lui $t2, %hi(__osRunQueue) -/* 41C1C 8006681C 8D4A3278 */ lw $t2, %lo(__osRunQueue)($t2) -/* 41C20 80066820 8D5B0118 */ lw $k1, 0x118($t2) # handwritten instruction -/* 41C24 80066824 2401EFFF */ addiu $at, $zero, -0x1001 -/* 41C28 80066828 0361D824 */ and $k1, $k1, $at -/* 41C2C 8006682C 10000019 */ b .LIQUE_80066894 -/* 41C30 80066830 AD5B0118 */ sw $k1, 0x118($t2) # handwritten instruction -glabel .LIQUE_80066834 -/* 41C34 80066834 2401FDFF */ addiu $at, $zero, -0x201 -/* 41C38 80066838 01014024 */ and $t0, $t0, $at -/* 41C3C 8006683C 40886800 */ mtc0 $t0, $13 # handwritten instruction -/* 41C40 80066840 24040008 */ addiu $a0, $zero, 0x8 -/* 41C44 80066844 0C019A45 */ jal send_mesg -/* 41C48 80066848 00000000 */ nop -/* 41C4C 8006684C 2401FDFF */ addiu $at, $zero, -0x201 -/* 41C50 80066850 1000FF10 */ b .LIQUE_80066494 -/* 41C54 80066854 02018024 */ and $s0, $s0, $at -glabel .LIQUE_80066858 -/* 41C58 80066858 2401FEFF */ addiu $at, $zero, -0x101 -/* 41C5C 8006685C 01014024 */ and $t0, $t0, $at -/* 41C60 80066860 40886800 */ mtc0 $t0, $13 # handwritten instruction -/* 41C64 80066864 24040000 */ addiu $a0, $zero, 0x0 -/* 41C68 80066868 0C019A45 */ jal send_mesg -/* 41C6C 8006686C 00000000 */ nop -/* 41C70 80066870 2401FEFF */ addiu $at, $zero, -0x101 -/* 41C74 80066874 1000FF07 */ b .LIQUE_80066494 -/* 41C78 80066878 02018024 */ and $s0, $s0, $at -.LIQUE_8006687C: -/* 41C7C 8006687C 24090001 */ addiu $t1, $zero, 0x1 -/* 41C80 80066880 A7490012 */ sh $t1, 0x12($k0) # handwritten instruction -/* 41C84 80066884 0C019A45 */ jal send_mesg -/* 41C88 80066888 24040050 */ addiu $a0, $zero, 0x50 -/* 41C8C 8006688C 10000001 */ b .LIQUE_80066894 -/* 41C90 80066890 00000000 */ nop -glabel .LIQUE_80066894 -/* 41C94 80066894 8F490004 */ lw $t1, 0x4($k0) # handwritten instruction -/* 41C98 80066898 3C0A8009 */ lui $t2, %hi(__osRunQueue) -/* 41C9C 8006689C 8D4A3278 */ lw $t2, %lo(__osRunQueue)($t2) -/* 41CA0 800668A0 8D4B0004 */ lw $t3, 0x4($t2) -/* 41CA4 800668A4 012B082A */ slt $at, $t1, $t3 -/* 41CA8 800668A8 10200008 */ beqz $at, .LIQUE_800668CC -/* 41CAC 800668AC 00000000 */ nop -/* 41CB0 800668B0 0340282D */ daddu $a1, $k0, $zero -/* 41CB4 800668B4 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 41CB8 800668B8 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) -/* 41CBC 800668BC 0C019AC4 */ jal __osEnqueueThread -/* 41CC0 800668C0 00000000 */ nop -/* 41CC4 800668C4 08019ADC */ j __osDispatchThread -/* 41CC8 800668C8 00000000 */ nop -.LIQUE_800668CC: -/* 41CCC 800668CC 3C098009 */ lui $t1, %hi(__osRunQueue) -/* 41CD0 800668D0 65293278 */ daddiu $t1, $t1, %lo(__osRunQueue) -/* 41CD4 800668D4 8D2A0000 */ lw $t2, 0x0($t1) -/* 41CD8 800668D8 AF4A0000 */ sw $t2, 0x0($k0) # handwritten instruction -/* 41CDC 800668DC 08019ADC */ j __osDispatchThread -/* 41CE0 800668E0 AD3A0000 */ sw $k0, 0x0($t1) # handwritten instruction -.LIQUE_800668E4: -/* 41CE4 800668E4 3C018009 */ lui $at, %hi(__osFaultedThread) -/* 41CE8 800668E8 AC3A3284 */ sw $k0, %lo(__osFaultedThread)($at) # handwritten instruction -/* 41CEC 800668EC 24090001 */ addiu $t1, $zero, 0x1 -/* 41CF0 800668F0 A7490010 */ sh $t1, 0x10($k0) # handwritten instruction -/* 41CF4 800668F4 24090002 */ addiu $t1, $zero, 0x2 -/* 41CF8 800668F8 A7490012 */ sh $t1, 0x12($k0) # handwritten instruction -/* 41CFC 800668FC 400A4000 */ mfc0 $t2, $8 # handwritten instruction -/* 41D00 80066900 AF4A0124 */ sw $t2, 0x124($k0) # handwritten instruction -/* 41D04 80066904 0C019A45 */ jal send_mesg -/* 41D08 80066908 24040060 */ addiu $a0, $zero, 0x60 -/* 41D0C 8006690C 08019ADC */ j __osDispatchThread -/* 41D10 80066910 00000000 */ nop - -# Handwritten function -glabel send_mesg -/* 41D14 80066914 03E0902D */ daddu $s2, $ra, $zero -/* 41D18 80066918 3C0A800E */ lui $t2, %hi(__osEventStateTab) -/* 41D1C 8006691C 654A825C */ daddiu $t2, $t2, %lo(__osEventStateTab) -/* 41D20 80066920 01445021 */ addu $t2, $t2, $a0 -/* 41D24 80066924 8D490000 */ lw $t1, 0x0($t2) -/* 41D28 80066928 11200027 */ beqz $t1, .LIQUE_800669C8 -/* 41D2C 8006692C 00000000 */ nop -/* 41D30 80066930 8D2B0008 */ lw $t3, 0x8($t1) -/* 41D34 80066934 8D2C0010 */ lw $t4, 0x10($t1) -/* 41D38 80066938 016C082A */ slt $at, $t3, $t4 -/* 41D3C 8006693C 10200022 */ beqz $at, .LIQUE_800669C8 -/* 41D40 80066940 00000000 */ nop -/* 41D44 80066944 8D2D000C */ lw $t5, 0xC($t1) -/* 41D48 80066948 01AB6821 */ addu $t5, $t5, $t3 -/* 41D4C 8006694C 15800002 */ bnez $t4, .LIQUE_80066958 -/* 41D50 80066950 01AC001A */ div $zero, $t5, $t4 -/* 41D54 80066954 0007000D */ break 7 -.LIQUE_80066958: -/* 41D58 80066958 2401FFFF */ addiu $at, $zero, -0x1 -/* 41D5C 8006695C 15810004 */ bne $t4, $at, .LIQUE_80066970 -/* 41D60 80066960 3C018000 */ lui $at, (0x80000000 >> 16) -/* 41D64 80066964 15A10002 */ bne $t5, $at, .LIQUE_80066970 -/* 41D68 80066968 00000000 */ nop -/* 41D6C 8006696C 0006000D */ break 6 -.LIQUE_80066970: -/* 41D70 80066970 00006810 */ mfhi $t5 -/* 41D74 80066974 8D2C0014 */ lw $t4, 0x14($t1) -/* 41D78 80066978 24010004 */ addiu $at, $zero, 0x4 -/* 41D7C 8006697C 01A10018 */ mult $t5, $at -/* 41D80 80066980 00006812 */ mflo $t5 -/* 41D84 80066984 018D6021 */ addu $t4, $t4, $t5 -/* 41D88 80066988 8D4D0004 */ lw $t5, 0x4($t2) -/* 41D8C 8006698C AD8D0000 */ sw $t5, 0x0($t4) -/* 41D90 80066990 256A0001 */ addiu $t2, $t3, 0x1 -/* 41D94 80066994 AD2A0008 */ sw $t2, 0x8($t1) -/* 41D98 80066998 8D2A0000 */ lw $t2, 0x0($t1) -/* 41D9C 8006699C 8D4B0000 */ lw $t3, 0x0($t2) -/* 41DA0 800669A0 11600009 */ beqz $t3, .LIQUE_800669C8 -/* 41DA4 800669A4 00000000 */ nop -/* 41DA8 800669A8 0C019AD6 */ jal __osPopThread -/* 41DAC 800669AC 0120202D */ daddu $a0, $t1, $zero -/* 41DB0 800669B0 0040502D */ daddu $t2, $v0, $zero -/* 41DB4 800669B4 0140282D */ daddu $a1, $t2, $zero -/* 41DB8 800669B8 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 41DBC 800669BC 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) -/* 41DC0 800669C0 0C019AC4 */ jal __osEnqueueThread -/* 41DC4 800669C4 00000000 */ nop -.LIQUE_800669C8: -/* 41DC8 800669C8 02400008 */ jr $s2 -/* 41DCC 800669CC 00000000 */ nop -.LIQUE_800669D0: -/* 41DD0 800669D0 3C013000 */ lui $at, (0x30000000 >> 16) -/* 41DD4 800669D4 01014824 */ and $t1, $t0, $at -/* 41DD8 800669D8 00094F02 */ srl $t1, $t1, 28 -/* 41DDC 800669DC 240A0001 */ addiu $t2, $zero, 0x1 -/* 41DE0 800669E0 152AFFC0 */ bne $t1, $t2, .LIQUE_800668E4 -/* 41DE4 800669E4 00000000 */ nop -/* 41DE8 800669E8 24090001 */ addiu $t1, $zero, 0x1 -/* 41DEC 800669EC AF490018 */ sw $t1, 0x18($k0) # handwritten instruction -/* 41DF0 800669F0 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 41DF4 800669F4 3C012000 */ lui $at, (0x20000000 >> 16) -/* 41DF8 800669F8 0361D825 */ or $k1, $k1, $at -/* 41DFC 800669FC 1000FFB3 */ b .LIQUE_800668CC -/* 41E00 80066A00 AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction - -# Handwritten function -glabel __osEnqueueAndYield -/* 41E04 80066A04 3C058009 */ lui $a1, %hi(__osRunningThread) -/* 41E08 80066A08 8CA53280 */ lw $a1, %lo(__osRunningThread)($a1) -/* 41E0C 80066A0C 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 41E10 80066A10 35080002 */ ori $t0, $t0, 0x2 -/* 41E14 80066A14 ACA80118 */ sw $t0, 0x118($a1) -/* 41E18 80066A18 FCB00098 */ sd $s0, 0x98($a1) -/* 41E1C 80066A1C FCB100A0 */ sd $s1, 0xA0($a1) -/* 41E20 80066A20 FCB200A8 */ sd $s2, 0xA8($a1) -/* 41E24 80066A24 FCB300B0 */ sd $s3, 0xB0($a1) -/* 41E28 80066A28 FCB400B8 */ sd $s4, 0xB8($a1) -/* 41E2C 80066A2C FCB500C0 */ sd $s5, 0xC0($a1) -/* 41E30 80066A30 FCB600C8 */ sd $s6, 0xC8($a1) -/* 41E34 80066A34 FCB700D0 */ sd $s7, 0xD0($a1) -/* 41E38 80066A38 FCBC00E8 */ sd $gp, 0xE8($a1) -/* 41E3C 80066A3C FCBD00F0 */ sd $sp, 0xF0($a1) -/* 41E40 80066A40 FCBE00F8 */ sd $fp, 0xF8($a1) -/* 41E44 80066A44 FCBF0100 */ sd $ra, 0x100($a1) -/* 41E48 80066A48 ACBF011C */ sw $ra, 0x11C($a1) -/* 41E4C 80066A4C 8CBB0018 */ lw $k1, 0x18($a1) # handwritten instruction -/* 41E50 80066A50 13600009 */ beqz $k1, .LIQUE_80066A78 # handwritten instruction -/* 41E54 80066A54 00000000 */ nop -/* 41E58 80066A58 445BF800 */ cfc1 $k1, $31 -/* 41E5C 80066A5C ACBB012C */ sw $k1, 0x12C($a1) # handwritten instruction -/* 41E60 80066A60 F4B40180 */ sdc1 $f20, 0x180($a1) -/* 41E64 80066A64 F4B60188 */ sdc1 $f22, 0x188($a1) -/* 41E68 80066A68 F4B80190 */ sdc1 $f24, 0x190($a1) -/* 41E6C 80066A6C F4BA0198 */ sdc1 $f26, 0x198($a1) -/* 41E70 80066A70 F4BC01A0 */ sdc1 $f28, 0x1A0($a1) -/* 41E74 80066A74 F4BE01A8 */ sdc1 $f30, 0x1A8($a1) -.LIQUE_80066A78: -/* 41E78 80066A78 8CBB0118 */ lw $k1, 0x118($a1) # handwritten instruction -/* 41E7C 80066A7C 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 41E80 80066A80 1120000E */ beqz $t1, .LIQUE_80066ABC -/* 41E84 80066A84 00000000 */ nop -/* 41E88 80066A88 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 41E8C 80066A8C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 41E90 80066A90 8D080000 */ lw $t0, 0x0($t0) -/* 41E94 80066A94 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 41E98 80066A98 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 41E9C 80066A9C 01014026 */ xor $t0, $t0, $at -/* 41EA0 80066AA0 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 41EA4 80066AA4 01284825 */ or $t1, $t1, $t0 -/* 41EA8 80066AA8 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 41EAC 80066AAC 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 41EB0 80066AB0 0361D824 */ and $k1, $k1, $at -/* 41EB4 80066AB4 0369D825 */ or $k1, $k1, $t1 -/* 41EB8 80066AB8 ACBB0118 */ sw $k1, 0x118($a1) # handwritten instruction -.LIQUE_80066ABC: -/* 41EBC 80066ABC 3C1BA430 */ lui $k1, %hi(D_A430000C) # handwritten instruction -/* 41EC0 80066AC0 8F7B000C */ lw $k1, %lo(D_A430000C)($k1) # handwritten instruction -/* 41EC4 80066AC4 1360000C */ beqz $k1, .LIQUE_80066AF8 # handwritten instruction -/* 41EC8 80066AC8 00000000 */ nop -/* 41ECC 80066ACC 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) # handwritten instruction -/* 41ED0 80066AD0 675A45B4 */ daddiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction -/* 41ED4 80066AD4 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction -/* 41ED8 80066AD8 001AD402 */ srl $k0, $k0, 16 -/* 41EDC 80066ADC 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 41EE0 80066AE0 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 41EE4 80066AE4 0341D026 */ xor $k0, $k0, $at -/* 41EE8 80066AE8 335A003F */ andi $k0, $k0, 0x3F # handwritten instruction -/* 41EEC 80066AEC 8CA80128 */ lw $t0, 0x128($a1) -/* 41EF0 80066AF0 0348D024 */ and $k0, $k0, $t0 -/* 41EF4 80066AF4 037AD825 */ or $k1, $k1, $k0 -.LIQUE_80066AF8: -/* 41EF8 80066AF8 10800003 */ beqz $a0, .LIQUE_80066B08 -/* 41EFC 80066AFC ACBB0128 */ sw $k1, 0x128($a1) # handwritten instruction -/* 41F00 80066B00 0C019AC4 */ jal __osEnqueueThread -/* 41F04 80066B04 00000000 */ nop -.LIQUE_80066B08: -/* 41F08 80066B08 08019ADC */ j __osDispatchThread -/* 41F0C 80066B0C 00000000 */ nop - -glabel __osEnqueueThread -/* 41F10 80066B10 0080C82D */ daddu $t9, $a0, $zero -/* 41F14 80066B14 8C980000 */ lw $t8, 0x0($a0) -/* 41F18 80066B18 8CAF0004 */ lw $t7, 0x4($a1) -/* 41F1C 80066B1C 8F0E0004 */ lw $t6, 0x4($t8) -/* 41F20 80066B20 01CF082A */ slt $at, $t6, $t7 -/* 41F24 80066B24 14200007 */ bnez $at, .LIQUE_80066B44 -/* 41F28 80066B28 00000000 */ nop -.LIQUE_80066B2C: -/* 41F2C 80066B2C 0300C82D */ daddu $t9, $t8, $zero -/* 41F30 80066B30 8F180000 */ lw $t8, 0x0($t8) -/* 41F34 80066B34 8F0E0004 */ lw $t6, 0x4($t8) -/* 41F38 80066B38 01CF082A */ slt $at, $t6, $t7 -/* 41F3C 80066B3C 1020FFFB */ beqz $at, .LIQUE_80066B2C -/* 41F40 80066B40 00000000 */ nop -.LIQUE_80066B44: -/* 41F44 80066B44 8F380000 */ lw $t8, 0x0($t9) -/* 41F48 80066B48 ACB80000 */ sw $t8, 0x0($a1) -/* 41F4C 80066B4C AF250000 */ sw $a1, 0x0($t9) -/* 41F50 80066B50 03E00008 */ jr $ra -/* 41F54 80066B54 ACA40008 */ sw $a0, 0x8($a1) - -glabel __osPopThread -/* 41F58 80066B58 8C820000 */ lw $v0, 0x0($a0) -/* 41F5C 80066B5C 8C590000 */ lw $t9, 0x0($v0) -/* 41F60 80066B60 03E00008 */ jr $ra -/* 41F64 80066B64 AC990000 */ sw $t9, 0x0($a0) -/* 41F68 80066B68 03E00008 */ jr $ra -/* 41F6C 80066B6C 00000000 */ nop - -# Handwritten function -glabel __osDispatchThread -/* 41F70 80066B70 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 41F74 80066B74 64843278 */ daddiu $a0, $a0, %lo(__osRunQueue) -/* 41F78 80066B78 0C019AD6 */ jal __osPopThread -/* 41F7C 80066B7C 00000000 */ nop -/* 41F80 80066B80 3C018009 */ lui $at, %hi(__osRunningThread) -/* 41F84 80066B84 AC223280 */ sw $v0, %lo(__osRunningThread)($at) -/* 41F88 80066B88 24080004 */ addiu $t0, $zero, 0x4 -/* 41F8C 80066B8C A4480010 */ sh $t0, 0x10($v0) -/* 41F90 80066B90 0040D02D */ daddu $k0, $v0, $zero -/* 41F94 80066B94 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 41F98 80066B98 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 41F9C 80066B9C 650845B4 */ daddiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 41FA0 80066BA0 8D080000 */ lw $t0, 0x0($t0) -/* 41FA4 80066BA4 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 41FA8 80066BA8 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 41FAC 80066BAC 01284824 */ and $t1, $t1, $t0 -/* 41FB0 80066BB0 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 41FB4 80066BB4 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 41FB8 80066BB8 0361D824 */ and $k1, $k1, $at -/* 41FBC 80066BBC 0369D825 */ or $k1, $k1, $t1 -/* 41FC0 80066BC0 409B6000 */ mtc0 $k1, $12 # handwritten instruction -/* 41FC4 80066BC4 DF410020 */ ld $at, 0x20($k0) # handwritten instruction -/* 41FC8 80066BC8 DF420028 */ ld $v0, 0x28($k0) # handwritten instruction -/* 41FCC 80066BCC DF430030 */ ld $v1, 0x30($k0) # handwritten instruction -/* 41FD0 80066BD0 DF440038 */ ld $a0, 0x38($k0) # handwritten instruction -/* 41FD4 80066BD4 DF450040 */ ld $a1, 0x40($k0) # handwritten instruction -/* 41FD8 80066BD8 DF460048 */ ld $a2, 0x48($k0) # handwritten instruction -/* 41FDC 80066BDC DF470050 */ ld $a3, 0x50($k0) # handwritten instruction -/* 41FE0 80066BE0 DF480058 */ ld $t0, 0x58($k0) # handwritten instruction -/* 41FE4 80066BE4 DF490060 */ ld $t1, 0x60($k0) # handwritten instruction -/* 41FE8 80066BE8 DF4A0068 */ ld $t2, 0x68($k0) # handwritten instruction -/* 41FEC 80066BEC DF4B0070 */ ld $t3, 0x70($k0) # handwritten instruction -/* 41FF0 80066BF0 DF4C0078 */ ld $t4, 0x78($k0) # handwritten instruction -/* 41FF4 80066BF4 DF4D0080 */ ld $t5, 0x80($k0) # handwritten instruction -/* 41FF8 80066BF8 DF4E0088 */ ld $t6, 0x88($k0) # handwritten instruction -/* 41FFC 80066BFC DF4F0090 */ ld $t7, 0x90($k0) # handwritten instruction -/* 42000 80066C00 DF500098 */ ld $s0, 0x98($k0) # handwritten instruction -/* 42004 80066C04 DF5100A0 */ ld $s1, 0xA0($k0) # handwritten instruction -/* 42008 80066C08 DF5200A8 */ ld $s2, 0xA8($k0) # handwritten instruction -/* 4200C 80066C0C DF5300B0 */ ld $s3, 0xB0($k0) # handwritten instruction -/* 42010 80066C10 DF5400B8 */ ld $s4, 0xB8($k0) # handwritten instruction -/* 42014 80066C14 DF5500C0 */ ld $s5, 0xC0($k0) # handwritten instruction -/* 42018 80066C18 DF5600C8 */ ld $s6, 0xC8($k0) # handwritten instruction -/* 4201C 80066C1C DF5700D0 */ ld $s7, 0xD0($k0) # handwritten instruction -/* 42020 80066C20 DF5800D8 */ ld $t8, 0xD8($k0) # handwritten instruction -/* 42024 80066C24 DF5900E0 */ ld $t9, 0xE0($k0) # handwritten instruction -/* 42028 80066C28 DF5C00E8 */ ld $gp, 0xE8($k0) # handwritten instruction -/* 4202C 80066C2C DF5D00F0 */ ld $sp, 0xF0($k0) # handwritten instruction -/* 42030 80066C30 DF5E00F8 */ ld $fp, 0xF8($k0) # handwritten instruction -/* 42034 80066C34 DF5F0100 */ ld $ra, 0x100($k0) # handwritten instruction -/* 42038 80066C38 DF5B0108 */ ld $k1, 0x108($k0) # handwritten instruction -/* 4203C 80066C3C 03600013 */ mtlo $k1 -/* 42040 80066C40 DF5B0110 */ ld $k1, 0x110($k0) # handwritten instruction -/* 42044 80066C44 03600011 */ mthi $k1 -/* 42048 80066C48 8F5B011C */ lw $k1, 0x11C($k0) # handwritten instruction -/* 4204C 80066C4C 409B7000 */ mtc0 $k1, $14 # handwritten instruction -/* 42050 80066C50 8F5B0018 */ lw $k1, 0x18($k0) # handwritten instruction -/* 42054 80066C54 13600013 */ beqz $k1, .LIQUE_80066CA4 # handwritten instruction -/* 42058 80066C58 00000000 */ nop -/* 4205C 80066C5C 8F5B012C */ lw $k1, 0x12C($k0) # handwritten instruction -/* 42060 80066C60 44DBF800 */ ctc1 $k1, $31 -/* 42064 80066C64 D7400130 */ ldc1 $f0, 0x130($k0) -/* 42068 80066C68 D7420138 */ ldc1 $f2, 0x138($k0) -/* 4206C 80066C6C D7440140 */ ldc1 $f4, 0x140($k0) -/* 42070 80066C70 D7460148 */ ldc1 $f6, 0x148($k0) -/* 42074 80066C74 D7480150 */ ldc1 $f8, 0x150($k0) -/* 42078 80066C78 D74A0158 */ ldc1 $f10, 0x158($k0) -/* 4207C 80066C7C D74C0160 */ ldc1 $f12, 0x160($k0) -/* 42080 80066C80 D74E0168 */ ldc1 $f14, 0x168($k0) -/* 42084 80066C84 D7500170 */ ldc1 $f16, 0x170($k0) -/* 42088 80066C88 D7520178 */ ldc1 $f18, 0x178($k0) -/* 4208C 80066C8C D7540180 */ ldc1 $f20, 0x180($k0) -/* 42090 80066C90 D7560188 */ ldc1 $f22, 0x188($k0) -/* 42094 80066C94 D7580190 */ ldc1 $f24, 0x190($k0) -/* 42098 80066C98 D75A0198 */ ldc1 $f26, 0x198($k0) -/* 4209C 80066C9C D75C01A0 */ ldc1 $f28, 0x1A0($k0) -/* 420A0 80066CA0 D75E01A8 */ ldc1 $f30, 0x1A8($k0) -.LIQUE_80066CA4: -/* 420A4 80066CA4 8F5B0128 */ lw $k1, 0x128($k0) # handwritten instruction -/* 420A8 80066CA8 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) # handwritten instruction -/* 420AC 80066CAC 675A45B4 */ daddiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction -/* 420B0 80066CB0 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction -/* 420B4 80066CB4 001AD402 */ srl $k0, $k0, 16 -/* 420B8 80066CB8 037AD824 */ and $k1, $k1, $k0 -/* 420BC 80066CBC 001BD840 */ sll $k1, $k1, 1 -/* 420C0 80066CC0 3C1A800A */ lui $k0, %hi(__osRcpImTable) # handwritten instruction -/* 420C4 80066CC4 675A8900 */ daddiu $k0, $k0, %lo(__osRcpImTable) # handwritten instruction -/* 420C8 80066CC8 037AD821 */ addu $k1, $k1, $k0 -/* 420CC 80066CCC 977B0000 */ lhu $k1, 0x0($k1) # handwritten instruction -/* 420D0 80066CD0 3C1AA430 */ lui $k0, (0xA430000C >> 16) # handwritten instruction -/* 420D4 80066CD4 375A000C */ ori $k0, $k0, (0xA430000C & 0xFFFF) # handwritten instruction -/* 420D8 80066CD8 AF5B0000 */ sw $k1, 0x0($k0) # handwritten instruction -/* 420DC 80066CDC 00000000 */ nop -/* 420E0 80066CE0 00000000 */ nop -/* 420E4 80066CE4 00000000 */ nop -/* 420E8 80066CE8 00000000 */ nop -/* 420EC 80066CEC 42000018 */ eret # handwritten instruction - -glabel __osCleanupThread -/* 420F0 80066CF0 0C01AE38 */ jal osDestroyThread -/* 420F4 80066CF4 0000202D */ daddu $a0, $zero, $zero -/* 420F8 80066CF8 00000000 */ nop -/* 420FC 80066CFC 00000000 */ nop diff --git a/ver/ique/asm/os/getcause.s b/ver/ique/asm/os/getcause.s deleted file mode 100644 index 00a9d16731..0000000000 --- a/ver/ique/asm/os/getcause.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osGetCause -/* 46A30 8006B630 40026800 */ mfc0 $v0, $13 # handwritten instruction -/* 46A34 8006B634 03E00008 */ jr $ra -/* 46A38 8006B638 00000000 */ nop -/* 46A3C 8006B63C 00000000 */ nop diff --git a/ver/ique/asm/os/getsr.s b/ver/ique/asm/os/getsr.s deleted file mode 100644 index 3d7823cb99..0000000000 --- a/ver/ique/asm/os/getsr.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osGetSR -/* 46A40 8006B640 40026000 */ mfc0 $v0, $12 # handwritten instruction -/* 46A44 8006B644 03E00008 */ jr $ra -/* 46A48 8006B648 00000000 */ nop -/* 46A4C 8006B64C 00000000 */ nop diff --git a/ver/ique/asm/os/guMtxCatF.s b/ver/ique/asm/os/guMtxCatF.s deleted file mode 100644 index 6671f7b7c5..0000000000 --- a/ver/ique/asm/os/guMtxCatF.s +++ /dev/null @@ -1,78 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxCatF -/* 40FC0 80065BC0 27BDFFC0 */ addiu $sp, $sp, -0x40 -/* 40FC4 80065BC4 24820040 */ addiu $v0, $a0, 0x40 -/* 40FC8 80065BC8 24A30010 */ addiu $v1, $a1, 0x10 -/* 40FCC 80065BCC 03A05021 */ addu $t2, $sp, $zero -.LIQUE_80065BD0: -/* 40FD0 80065BD0 00A03821 */ addu $a3, $a1, $zero -.LIQUE_80065BD4: -/* 40FD4 80065BD4 C4840000 */ lwc1 $f4, 0x0($a0) -/* 40FD8 80065BD8 C4E60000 */ lwc1 $f6, 0x0($a3) -/* 40FDC 80065BDC 46062202 */ mul.s $f8, $f4, $f6 -/* 40FE0 80065BE0 C48A0004 */ lwc1 $f10, 0x4($a0) -/* 40FE4 80065BE4 C4F00010 */ lwc1 $f16, 0x10($a3) -/* 40FE8 80065BE8 46105482 */ mul.s $f18, $f10, $f16 -/* 40FEC 80065BEC 46124200 */ add.s $f8, $f8, $f18 -/* 40FF0 80065BF0 C4840008 */ lwc1 $f4, 0x8($a0) -/* 40FF4 80065BF4 C4E60020 */ lwc1 $f6, 0x20($a3) -/* 40FF8 80065BF8 46062482 */ mul.s $f18, $f4, $f6 -/* 40FFC 80065BFC 46124200 */ add.s $f8, $f8, $f18 -/* 41000 80065C00 C48A000C */ lwc1 $f10, 0xC($a0) -/* 41004 80065C04 C4F00030 */ lwc1 $f16, 0x30($a3) -/* 41008 80065C08 46105482 */ mul.s $f18, $f10, $f16 -/* 4100C 80065C0C 46124200 */ add.s $f8, $f8, $f18 -/* 41010 80065C10 E5480000 */ swc1 $f8, 0x0($t2) -/* 41014 80065C14 24E70004 */ addiu $a3, $a3, 0x4 -/* 41018 80065C18 14E3FFEE */ bne $a3, $v1, .LIQUE_80065BD4 -/* 4101C 80065C1C 254A0004 */ addiu $t2, $t2, 0x4 -/* 41020 80065C20 24840010 */ addiu $a0, $a0, 0x10 -/* 41024 80065C24 1482FFEA */ bne $a0, $v0, .LIQUE_80065BD0 -/* 41028 80065C28 00000000 */ nop -/* 4102C 80065C2C E4C8003C */ swc1 $f8, 0x3C($a2) -/* 41030 80065C30 8FA80000 */ lw $t0, 0x0($sp) -/* 41034 80065C34 8FA90004 */ lw $t1, 0x4($sp) -/* 41038 80065C38 8FAA0008 */ lw $t2, 0x8($sp) -/* 4103C 80065C3C 8FAB000C */ lw $t3, 0xC($sp) -/* 41040 80065C40 8FAC0010 */ lw $t4, 0x10($sp) -/* 41044 80065C44 8FAD0014 */ lw $t5, 0x14($sp) -/* 41048 80065C48 8FAE0018 */ lw $t6, 0x18($sp) -/* 4104C 80065C4C 8FAF001C */ lw $t7, 0x1C($sp) -/* 41050 80065C50 8FB80020 */ lw $t8, 0x20($sp) -/* 41054 80065C54 8FB90024 */ lw $t9, 0x24($sp) -/* 41058 80065C58 8FA20028 */ lw $v0, 0x28($sp) -/* 4105C 80065C5C 8FA3002C */ lw $v1, 0x2C($sp) -/* 41060 80065C60 8FA40030 */ lw $a0, 0x30($sp) -/* 41064 80065C64 8FA50034 */ lw $a1, 0x34($sp) -/* 41068 80065C68 8FA70038 */ lw $a3, 0x38($sp) -/* 4106C 80065C6C ACC80000 */ sw $t0, 0x0($a2) -/* 41070 80065C70 ACC90004 */ sw $t1, 0x4($a2) -/* 41074 80065C74 ACCA0008 */ sw $t2, 0x8($a2) -/* 41078 80065C78 ACCB000C */ sw $t3, 0xC($a2) -/* 4107C 80065C7C ACCC0010 */ sw $t4, 0x10($a2) -/* 41080 80065C80 ACCD0014 */ sw $t5, 0x14($a2) -/* 41084 80065C84 ACCE0018 */ sw $t6, 0x18($a2) -/* 41088 80065C88 ACCF001C */ sw $t7, 0x1C($a2) -/* 4108C 80065C8C ACD80020 */ sw $t8, 0x20($a2) -/* 41090 80065C90 ACD90024 */ sw $t9, 0x24($a2) -/* 41094 80065C94 ACC20028 */ sw $v0, 0x28($a2) -/* 41098 80065C98 ACC3002C */ sw $v1, 0x2C($a2) -/* 4109C 80065C9C ACC40030 */ sw $a0, 0x30($a2) -/* 410A0 80065CA0 ACC50034 */ sw $a1, 0x34($a2) -/* 410A4 80065CA4 ACC70038 */ sw $a3, 0x38($a2) -/* 410A8 80065CA8 03E00008 */ jr $ra -/* 410AC 80065CAC 27BD0040 */ addiu $sp, $sp, 0x40 -/* 410B0 80065CB0 00000000 */ nop -/* 410B4 80065CB4 00000000 */ nop -/* 410B8 80065CB8 00000000 */ nop -/* 410BC 80065CBC 00000000 */ nop diff --git a/ver/ique/asm/os/guMtxF2L.s b/ver/ique/asm/os/guMtxF2L.s deleted file mode 100644 index 0dc2c3ca48..0000000000 --- a/ver/ique/asm/os/guMtxF2L.s +++ /dev/null @@ -1,45 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxF2L -/* 40EC0 80065AC0 3C014780 */ lui $at, (0x47800000 >> 16) -/* 40EC4 80065AC4 44810000 */ mtc1 $at, $f0 -/* 40EC8 80065AC8 3C19FFFF */ lui $t9, (0xFFFF0000 >> 16) -/* 40ECC 80065ACC 24B80020 */ addiu $t8, $a1, 0x20 -.LIQUE_80065AD0: -/* 40ED0 80065AD0 C4840000 */ lwc1 $f4, 0x0($a0) -/* 40ED4 80065AD4 46002182 */ mul.s $f6, $f4, $f0 -/* 40ED8 80065AD8 4600320D */ trunc.w.s $f8, $f6 -/* 40EDC 80065ADC C48A0004 */ lwc1 $f10, 0x4($a0) -/* 40EE0 80065AE0 46005402 */ mul.s $f16, $f10, $f0 -/* 40EE4 80065AE4 4600848D */ trunc.w.s $f18, $f16 -/* 40EE8 80065AE8 44084000 */ mfc1 $t0, $f8 -/* 40EEC 80065AEC 44099000 */ mfc1 $t1, $f18 -/* 40EF0 80065AF0 01195024 */ and $t2, $t0, $t9 -/* 40EF4 80065AF4 00095C02 */ srl $t3, $t1, 16 -/* 40EF8 80065AF8 014B6025 */ or $t4, $t2, $t3 -/* 40EFC 80065AFC ACAC0000 */ sw $t4, 0x0($a1) -/* 40F00 80065B00 00086C00 */ sll $t5, $t0, 16 -/* 40F04 80065B04 312EFFFF */ andi $t6, $t1, 0xFFFF -/* 40F08 80065B08 01AE7825 */ or $t7, $t5, $t6 -/* 40F0C 80065B0C ACAF0020 */ sw $t7, 0x20($a1) -/* 40F10 80065B10 24A50004 */ addiu $a1, $a1, 0x4 -/* 40F14 80065B14 14B8FFEE */ bne $a1, $t8, .LIQUE_80065AD0 -/* 40F18 80065B18 24840008 */ addiu $a0, $a0, 0x8 -/* 40F1C 80065B1C 03E00008 */ jr $ra -/* 40F20 80065B20 00000000 */ nop -/* 40F24 80065B24 00000000 */ nop -/* 40F28 80065B28 00000000 */ nop -/* 40F2C 80065B2C 00000000 */ nop -/* 40F30 80065B30 00000000 */ nop -/* 40F34 80065B34 00000000 */ nop -/* 40F38 80065B38 00000000 */ nop -/* 40F3C 80065B3C 00000000 */ nop diff --git a/ver/ique/asm/os/guMtxIdent.s b/ver/ique/asm/os/guMtxIdent.s deleted file mode 100644 index 317fe02fca..0000000000 --- a/ver/ique/asm/os/guMtxIdent.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel guMtxIdent -/* 40E00 80065A00 20080001 */ addi $t0, $zero, 0x1 # handwritten instruction -/* 40E04 80065A04 00084C00 */ sll $t1, $t0, 16 -/* 40E08 80065A08 AC890000 */ sw $t1, 0x0($a0) -/* 40E0C 80065A0C AC800004 */ sw $zero, 0x4($a0) -/* 40E10 80065A10 AC880008 */ sw $t0, 0x8($a0) -/* 40E14 80065A14 AC80000C */ sw $zero, 0xC($a0) -/* 40E18 80065A18 AC800010 */ sw $zero, 0x10($a0) -/* 40E1C 80065A1C AC890014 */ sw $t1, 0x14($a0) -/* 40E20 80065A20 AC800018 */ sw $zero, 0x18($a0) -/* 40E24 80065A24 AC88001C */ sw $t0, 0x1C($a0) -/* 40E28 80065A28 AC800020 */ sw $zero, 0x20($a0) -/* 40E2C 80065A2C AC800024 */ sw $zero, 0x24($a0) -/* 40E30 80065A30 AC800028 */ sw $zero, 0x28($a0) -/* 40E34 80065A34 AC80002C */ sw $zero, 0x2C($a0) -/* 40E38 80065A38 AC800030 */ sw $zero, 0x30($a0) -/* 40E3C 80065A3C AC800034 */ sw $zero, 0x34($a0) -/* 40E40 80065A40 AC800038 */ sw $zero, 0x38($a0) -/* 40E44 80065A44 03E00008 */ jr $ra -/* 40E48 80065A48 AC80003C */ sw $zero, 0x3C($a0) -/* 40E4C 80065A4C 00000000 */ nop -/* 40E50 80065A50 00000000 */ nop -/* 40E54 80065A54 00000000 */ nop -/* 40E58 80065A58 00000000 */ nop -/* 40E5C 80065A5C 00000000 */ nop diff --git a/ver/ique/asm/os/guMtxIdentF.s b/ver/ique/asm/os/guMtxIdentF.s deleted file mode 100644 index 34f697c488..0000000000 --- a/ver/ique/asm/os/guMtxIdentF.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxIdentF -/* 40E60 80065A60 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 40E64 80065A64 AC880000 */ sw $t0, 0x0($a0) -/* 40E68 80065A68 AC800004 */ sw $zero, 0x4($a0) -/* 40E6C 80065A6C AC800008 */ sw $zero, 0x8($a0) -/* 40E70 80065A70 AC80000C */ sw $zero, 0xC($a0) -/* 40E74 80065A74 AC800010 */ sw $zero, 0x10($a0) -/* 40E78 80065A78 AC880014 */ sw $t0, 0x14($a0) -/* 40E7C 80065A7C AC800018 */ sw $zero, 0x18($a0) -/* 40E80 80065A80 AC80001C */ sw $zero, 0x1C($a0) -/* 40E84 80065A84 AC800020 */ sw $zero, 0x20($a0) -/* 40E88 80065A88 AC800024 */ sw $zero, 0x24($a0) -/* 40E8C 80065A8C AC880028 */ sw $t0, 0x28($a0) -/* 40E90 80065A90 AC80002C */ sw $zero, 0x2C($a0) -/* 40E94 80065A94 AC800030 */ sw $zero, 0x30($a0) -/* 40E98 80065A98 AC800034 */ sw $zero, 0x34($a0) -/* 40E9C 80065A9C AC800038 */ sw $zero, 0x38($a0) -/* 40EA0 80065AA0 03E00008 */ jr $ra -/* 40EA4 80065AA4 AC88003C */ sw $t0, 0x3C($a0) -/* 40EA8 80065AA8 00000000 */ nop -/* 40EAC 80065AAC 00000000 */ nop -/* 40EB0 80065AB0 00000000 */ nop -/* 40EB4 80065AB4 00000000 */ nop -/* 40EB8 80065AB8 00000000 */ nop -/* 40EBC 80065ABC 00000000 */ nop diff --git a/ver/ique/asm/os/guMtxL2F.s b/ver/ique/asm/os/guMtxL2F.s deleted file mode 100644 index e96ba4169c..0000000000 --- a/ver/ique/asm/os/guMtxL2F.s +++ /dev/null @@ -1,45 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxL2F -/* 40F40 80065B40 3C013780 */ lui $at, (0x37800000 >> 16) -/* 40F44 80065B44 44810000 */ mtc1 $at, $f0 -/* 40F48 80065B48 3C19FFFF */ lui $t9, (0xFFFF0000 >> 16) -/* 40F4C 80065B4C 24B80020 */ addiu $t8, $a1, 0x20 -.LIQUE_80065B50: -/* 40F50 80065B50 8CA80000 */ lw $t0, 0x0($a1) -/* 40F54 80065B54 8CA90020 */ lw $t1, 0x20($a1) -/* 40F58 80065B58 01195024 */ and $t2, $t0, $t9 -/* 40F5C 80065B5C 00095C02 */ srl $t3, $t1, 16 -/* 40F60 80065B60 014B6025 */ or $t4, $t2, $t3 -/* 40F64 80065B64 00086C00 */ sll $t5, $t0, 16 -/* 40F68 80065B68 312EFFFF */ andi $t6, $t1, 0xFFFF -/* 40F6C 80065B6C 01AE7825 */ or $t7, $t5, $t6 -/* 40F70 80065B70 448C2000 */ mtc1 $t4, $f4 -/* 40F74 80065B74 468021A0 */ cvt.s.w $f6, $f4 -/* 40F78 80065B78 46003202 */ mul.s $f8, $f6, $f0 -/* 40F7C 80065B7C 448F5000 */ mtc1 $t7, $f10 -/* 40F80 80065B80 46805420 */ cvt.s.w $f16, $f10 -/* 40F84 80065B84 46008482 */ mul.s $f18, $f16, $f0 -/* 40F88 80065B88 E4880000 */ swc1 $f8, 0x0($a0) -/* 40F8C 80065B8C E4920004 */ swc1 $f18, 0x4($a0) -/* 40F90 80065B90 24A50004 */ addiu $a1, $a1, 0x4 -/* 40F94 80065B94 14B8FFEE */ bne $a1, $t8, .LIQUE_80065B50 -/* 40F98 80065B98 24840008 */ addiu $a0, $a0, 0x8 -/* 40F9C 80065B9C 03E00008 */ jr $ra -/* 40FA0 80065BA0 00000000 */ nop -/* 40FA4 80065BA4 00000000 */ nop -/* 40FA8 80065BA8 00000000 */ nop -/* 40FAC 80065BAC 00000000 */ nop -/* 40FB0 80065BB0 00000000 */ nop -/* 40FB4 80065BB4 00000000 */ nop -/* 40FB8 80065BB8 00000000 */ nop -/* 40FBC 80065BBC 00000000 */ nop diff --git a/ver/ique/asm/os/guNormalize.s b/ver/ique/asm/os/guNormalize.s deleted file mode 100644 index a9ac20fcef..0000000000 --- a/ver/ique/asm/os/guNormalize.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guNormalize -/* 47040 8006BC40 C4840000 */ lwc1 $f4, 0x0($a0) -/* 47044 8006BC44 C4A60000 */ lwc1 $f6, 0x0($a1) -/* 47048 8006BC48 C4C80000 */ lwc1 $f8, 0x0($a2) -/* 4704C 8006BC4C 46042282 */ mul.s $f10, $f4, $f4 -/* 47050 8006BC50 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 47054 8006BC54 46063402 */ mul.s $f16, $f6, $f6 -/* 47058 8006BC58 46105480 */ add.s $f18, $f10, $f16 -/* 4705C 8006BC5C 46084402 */ mul.s $f16, $f8, $f8 -/* 47060 8006BC60 46128280 */ add.s $f10, $f16, $f18 -/* 47064 8006BC64 44889000 */ mtc1 $t0, $f18 -/* 47068 8006BC68 46005404 */ sqrt.s $f16, $f10 -/* 4706C 8006BC6C 46109283 */ div.s $f10, $f18, $f16 -/* 47070 8006BC70 460A2402 */ mul.s $f16, $f4, $f10 -/* 47074 8006BC74 00000000 */ nop -/* 47078 8006BC78 460A3482 */ mul.s $f18, $f6, $f10 -/* 4707C 8006BC7C 00000000 */ nop -/* 47080 8006BC80 460A4102 */ mul.s $f4, $f8, $f10 -/* 47084 8006BC84 E4900000 */ swc1 $f16, 0x0($a0) -/* 47088 8006BC88 E4B20000 */ swc1 $f18, 0x0($a1) -/* 4708C 8006BC8C 03E00008 */ jr $ra -/* 47090 8006BC90 E4C40000 */ swc1 $f4, 0x0($a2) -/* 47094 8006BC94 00000000 */ nop -/* 47098 8006BC98 00000000 */ nop -/* 4709C 8006BC9C 00000000 */ nop diff --git a/ver/ique/asm/os/guScale.s b/ver/ique/asm/os/guScale.s deleted file mode 100644 index cd05fdb4e2..0000000000 --- a/ver/ique/asm/os/guScale.s +++ /dev/null @@ -1,52 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guScale -/* 410C0 80065CC0 3C014780 */ lui $at, (0x47800000 >> 16) -/* 410C4 80065CC4 44812000 */ mtc1 $at, $f4 -/* 410C8 80065CC8 44853000 */ mtc1 $a1, $f6 -/* 410CC 80065CCC 46043202 */ mul.s $f8, $f6, $f4 -/* 410D0 80065CD0 4600428D */ trunc.w.s $f10, $f8 -/* 410D4 80065CD4 44095000 */ mfc1 $t1, $f10 -/* 410D8 80065CD8 00095402 */ srl $t2, $t1, 16 -/* 410DC 80065CDC 000A4400 */ sll $t0, $t2, 16 -/* 410E0 80065CE0 AC880000 */ sw $t0, 0x0($a0) -/* 410E4 80065CE4 00095400 */ sll $t2, $t1, 16 -/* 410E8 80065CE8 AC8A0020 */ sw $t2, 0x20($a0) -/* 410EC 80065CEC 44863000 */ mtc1 $a2, $f6 -/* 410F0 80065CF0 46043202 */ mul.s $f8, $f6, $f4 -/* 410F4 80065CF4 4600428D */ trunc.w.s $f10, $f8 -/* 410F8 80065CF8 44095000 */ mfc1 $t1, $f10 -/* 410FC 80065CFC 00094402 */ srl $t0, $t1, 16 -/* 41100 80065D00 AC880008 */ sw $t0, 0x8($a0) -/* 41104 80065D04 312AFFFF */ andi $t2, $t1, 0xFFFF -/* 41108 80065D08 AC8A0028 */ sw $t2, 0x28($a0) -/* 4110C 80065D0C 44873000 */ mtc1 $a3, $f6 -/* 41110 80065D10 46043202 */ mul.s $f8, $f6, $f4 -/* 41114 80065D14 4600428D */ trunc.w.s $f10, $f8 -/* 41118 80065D18 44095000 */ mfc1 $t1, $f10 -/* 4111C 80065D1C 00095402 */ srl $t2, $t1, 16 -/* 41120 80065D20 000A4400 */ sll $t0, $t2, 16 -/* 41124 80065D24 AC880014 */ sw $t0, 0x14($a0) -/* 41128 80065D28 00095400 */ sll $t2, $t1, 16 -/* 4112C 80065D2C AC8A0034 */ sw $t2, 0x34($a0) -/* 41130 80065D30 24080001 */ addiu $t0, $zero, 0x1 -/* 41134 80065D34 AC88001C */ sw $t0, 0x1C($a0) -/* 41138 80065D38 AC800004 */ sw $zero, 0x4($a0) -/* 4113C 80065D3C AC80000C */ sw $zero, 0xC($a0) -/* 41140 80065D40 AC800010 */ sw $zero, 0x10($a0) -/* 41144 80065D44 AC800018 */ sw $zero, 0x18($a0) -/* 41148 80065D48 AC800024 */ sw $zero, 0x24($a0) -/* 4114C 80065D4C AC80002C */ sw $zero, 0x2C($a0) -/* 41150 80065D50 AC800030 */ sw $zero, 0x30($a0) -/* 41154 80065D54 AC800038 */ sw $zero, 0x38($a0) -/* 41158 80065D58 03E00008 */ jr $ra -/* 4115C 80065D5C AC80003C */ sw $zero, 0x3C($a0) diff --git a/ver/ique/asm/os/guScaleF.s b/ver/ique/asm/os/guScaleF.s deleted file mode 100644 index 2356d3b39c..0000000000 --- a/ver/ique/asm/os/guScaleF.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guScaleF -/* 41160 80065D60 AC850000 */ sw $a1, 0x0($a0) -/* 41164 80065D64 AC800004 */ sw $zero, 0x4($a0) -/* 41168 80065D68 AC800008 */ sw $zero, 0x8($a0) -/* 4116C 80065D6C AC80000C */ sw $zero, 0xC($a0) -/* 41170 80065D70 AC800010 */ sw $zero, 0x10($a0) -/* 41174 80065D74 AC860014 */ sw $a2, 0x14($a0) -/* 41178 80065D78 AC800018 */ sw $zero, 0x18($a0) -/* 4117C 80065D7C AC80001C */ sw $zero, 0x1C($a0) -/* 41180 80065D80 AC800020 */ sw $zero, 0x20($a0) -/* 41184 80065D84 AC800024 */ sw $zero, 0x24($a0) -/* 41188 80065D88 AC870028 */ sw $a3, 0x28($a0) -/* 4118C 80065D8C AC80002C */ sw $zero, 0x2C($a0) -/* 41190 80065D90 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 41194 80065D94 AC800030 */ sw $zero, 0x30($a0) -/* 41198 80065D98 AC800034 */ sw $zero, 0x34($a0) -/* 4119C 80065D9C AC800038 */ sw $zero, 0x38($a0) -/* 411A0 80065DA0 03E00008 */ jr $ra -/* 411A4 80065DA4 AC88003C */ sw $t0, 0x3C($a0) -/* 411A8 80065DA8 00000000 */ nop -/* 411AC 80065DAC 00000000 */ nop -/* 411B0 80065DB0 00000000 */ nop -/* 411B4 80065DB4 00000000 */ nop -/* 411B8 80065DB8 00000000 */ nop -/* 411BC 80065DBC 00000000 */ nop diff --git a/ver/ique/asm/os/guTranslate.s b/ver/ique/asm/os/guTranslate.s deleted file mode 100644 index 7fb1a62f06..0000000000 --- a/ver/ique/asm/os/guTranslate.s +++ /dev/null @@ -1,68 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guTranslate -/* 411C0 80065DC0 3C014780 */ lui $at, (0x47800000 >> 16) -/* 411C4 80065DC4 44812000 */ mtc1 $at, $f4 -/* 411C8 80065DC8 44853000 */ mtc1 $a1, $f6 -/* 411CC 80065DCC 46043202 */ mul.s $f8, $f6, $f4 -/* 411D0 80065DD0 4600428D */ trunc.w.s $f10, $f8 -/* 411D4 80065DD4 44095000 */ mfc1 $t1, $f10 -/* 411D8 80065DD8 44863000 */ mtc1 $a2, $f6 -/* 411DC 80065DDC 46043202 */ mul.s $f8, $f6, $f4 -/* 411E0 80065DE0 4600428D */ trunc.w.s $f10, $f8 -/* 411E4 80065DE4 440B5000 */ mfc1 $t3, $f10 -/* 411E8 80065DE8 00095402 */ srl $t2, $t1, 16 -/* 411EC 80065DEC 000A4400 */ sll $t0, $t2, 16 -/* 411F0 80065DF0 000B5402 */ srl $t2, $t3, 16 -/* 411F4 80065DF4 010A4025 */ or $t0, $t0, $t2 -/* 411F8 80065DF8 AC880018 */ sw $t0, 0x18($a0) -/* 411FC 80065DFC 00094400 */ sll $t0, $t1, 16 -/* 41200 80065E00 000B5400 */ sll $t2, $t3, 16 -/* 41204 80065E04 000A5402 */ srl $t2, $t2, 16 -/* 41208 80065E08 010A4025 */ or $t0, $t0, $t2 -/* 4120C 80065E0C AC880038 */ sw $t0, 0x38($a0) -/* 41210 80065E10 44873000 */ mtc1 $a3, $f6 -/* 41214 80065E14 46043202 */ mul.s $f8, $f6, $f4 -/* 41218 80065E18 4600428D */ trunc.w.s $f10, $f8 -/* 4121C 80065E1C 44095000 */ mfc1 $t1, $f10 -/* 41220 80065E20 00095402 */ srl $t2, $t1, 16 -/* 41224 80065E24 000A4400 */ sll $t0, $t2, 16 -/* 41228 80065E28 25080001 */ addiu $t0, $t0, 0x1 -/* 4122C 80065E2C AC88001C */ sw $t0, 0x1C($a0) -/* 41230 80065E30 00095400 */ sll $t2, $t1, 16 -/* 41234 80065E34 AC8A003C */ sw $t2, 0x3C($a0) -/* 41238 80065E38 AC800000 */ sw $zero, 0x0($a0) -/* 4123C 80065E3C AC800004 */ sw $zero, 0x4($a0) -/* 41240 80065E40 AC800008 */ sw $zero, 0x8($a0) -/* 41244 80065E44 AC80000C */ sw $zero, 0xC($a0) -/* 41248 80065E48 AC800010 */ sw $zero, 0x10($a0) -/* 4124C 80065E4C AC800014 */ sw $zero, 0x14($a0) -/* 41250 80065E50 AC800020 */ sw $zero, 0x20($a0) -/* 41254 80065E54 AC800024 */ sw $zero, 0x24($a0) -/* 41258 80065E58 AC800028 */ sw $zero, 0x28($a0) -/* 4125C 80065E5C AC80002C */ sw $zero, 0x2C($a0) -/* 41260 80065E60 AC800030 */ sw $zero, 0x30($a0) -/* 41264 80065E64 AC800034 */ sw $zero, 0x34($a0) -/* 41268 80065E68 3C080001 */ lui $t0, (0x10000 >> 16) -/* 4126C 80065E6C 35080000 */ ori $t0, $t0, (0x10000 & 0xFFFF) -/* 41270 80065E70 AC880000 */ sw $t0, 0x0($a0) -/* 41274 80065E74 AC880014 */ sw $t0, 0x14($a0) -/* 41278 80065E78 3C080000 */ lui $t0, (0x1 >> 16) -/* 4127C 80065E7C 35080001 */ ori $t0, $t0, (0x1 & 0xFFFF) -/* 41280 80065E80 03E00008 */ jr $ra -/* 41284 80065E84 AC880008 */ sw $t0, 0x8($a0) -/* 41288 80065E88 00000000 */ nop -/* 4128C 80065E8C 00000000 */ nop -/* 41290 80065E90 00000000 */ nop -/* 41294 80065E94 00000000 */ nop -/* 41298 80065E98 00000000 */ nop -/* 4129C 80065E9C 00000000 */ nop diff --git a/ver/ique/asm/os/guTranslateF.s b/ver/ique/asm/os/guTranslateF.s deleted file mode 100644 index 56a929d43e..0000000000 --- a/ver/ique/asm/os/guTranslateF.s +++ /dev/null @@ -1,32 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guTranslateF -/* 412A0 80065EA0 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 412A4 80065EA4 AC880000 */ sw $t0, 0x0($a0) -/* 412A8 80065EA8 AC800004 */ sw $zero, 0x4($a0) -/* 412AC 80065EAC AC800008 */ sw $zero, 0x8($a0) -/* 412B0 80065EB0 AC80000C */ sw $zero, 0xC($a0) -/* 412B4 80065EB4 AC800010 */ sw $zero, 0x10($a0) -/* 412B8 80065EB8 AC880014 */ sw $t0, 0x14($a0) -/* 412BC 80065EBC AC800018 */ sw $zero, 0x18($a0) -/* 412C0 80065EC0 AC80001C */ sw $zero, 0x1C($a0) -/* 412C4 80065EC4 AC800020 */ sw $zero, 0x20($a0) -/* 412C8 80065EC8 AC800024 */ sw $zero, 0x24($a0) -/* 412CC 80065ECC AC880028 */ sw $t0, 0x28($a0) -/* 412D0 80065ED0 AC80002C */ sw $zero, 0x2C($a0) -/* 412D4 80065ED4 AC850030 */ sw $a1, 0x30($a0) -/* 412D8 80065ED8 AC860034 */ sw $a2, 0x34($a0) -/* 412DC 80065EDC AC870038 */ sw $a3, 0x38($a0) -/* 412E0 80065EE0 03E00008 */ jr $ra -/* 412E4 80065EE4 AC88003C */ sw $t0, 0x3C($a0) -/* 412E8 80065EE8 00000000 */ nop -/* 412EC 80065EEC 00000000 */ nop diff --git a/ver/ique/asm/os/interrupt.s b/ver/ique/asm/os/interrupt.s deleted file mode 100644 index 40452ccc56..0000000000 --- a/ver/ique/asm/os/interrupt.s +++ /dev/null @@ -1,53 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osDisableInt -/* 42100 80066D00 3C0A8009 */ lui $t2, %hi(__OSGlobalIntMask) -/* 42104 80066D04 254A45B4 */ addiu $t2, $t2, %lo(__OSGlobalIntMask) -/* 42108 80066D08 8D4B0000 */ lw $t3, 0x0($t2) -/* 4210C 80066D0C 316BFF00 */ andi $t3, $t3, 0xFF00 -/* 42110 80066D10 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 42114 80066D14 2401FFFE */ addiu $at, $zero, -0x2 -/* 42118 80066D18 01014824 */ and $t1, $t0, $at -/* 4211C 80066D1C 40896000 */ mtc0 $t1, $12 # handwritten instruction -/* 42120 80066D20 31020001 */ andi $v0, $t0, 0x1 -/* 42124 80066D24 8D480000 */ lw $t0, 0x0($t2) -/* 42128 80066D28 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 4212C 80066D2C 110B000E */ beq $t0, $t3, .LIQUE_80066D68 -/* 42130 80066D30 3C0A8009 */ lui $t2, %hi(__osRunningThread) -/* 42134 80066D34 254A3280 */ addiu $t2, $t2, %lo(__osRunningThread) -/* 42138 80066D38 8D490118 */ lw $t1, 0x118($t2) -/* 4213C 80066D3C 312AFF00 */ andi $t2, $t1, 0xFF00 -/* 42140 80066D40 01485024 */ and $t2, $t2, $t0 -/* 42144 80066D44 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 42148 80066D48 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 4214C 80066D4C 01214824 */ and $t1, $t1, $at -/* 42150 80066D50 012A4825 */ or $t1, $t1, $t2 -/* 42154 80066D54 2401FFFE */ addiu $at, $zero, -0x2 -/* 42158 80066D58 01214824 */ and $t1, $t1, $at -/* 4215C 80066D5C 40896000 */ mtc0 $t1, $12 # handwritten instruction -/* 42160 80066D60 00000000 */ nop -/* 42164 80066D64 00000000 */ nop -.LIQUE_80066D68: -/* 42168 80066D68 03E00008 */ jr $ra -/* 4216C 80066D6C 00000000 */ nop - -# Handwritten function -glabel __osRestoreInt -/* 42170 80066D70 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 42174 80066D74 01044025 */ or $t0, $t0, $a0 -/* 42178 80066D78 40886000 */ mtc0 $t0, $12 # handwritten instruction -/* 4217C 80066D7C 00000000 */ nop -/* 42180 80066D80 00000000 */ nop -/* 42184 80066D84 03E00008 */ jr $ra -/* 42188 80066D88 00000000 */ nop -/* 4218C 80066D8C 00000000 */ nop diff --git a/ver/ique/asm/os/maptlb.s b/ver/ique/asm/os/maptlb.s deleted file mode 100644 index 1c7328ee77..0000000000 --- a/ver/ique/asm/os/maptlb.s +++ /dev/null @@ -1,67 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osMapTLB -/* 40160 80064D60 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 40164 80064D64 40840000 */ mtc0 $a0, $0 # handwritten instruction -/* 40168 80064D68 40852800 */ mtc0 $a1, $5 # handwritten instruction -/* 4016C 80064D6C 8FA90014 */ lw $t1, 0x14($sp) -/* 40170 80064D70 2401FFFF */ addiu $at, $zero, -0x1 -/* 40174 80064D74 11210004 */ beq $t1, $at, .LIQUE_80064D88 -/* 40178 80064D78 240C0001 */ addiu $t4, $zero, 0x1 -/* 4017C 80064D7C 240A001E */ addiu $t2, $zero, 0x1E -/* 40180 80064D80 10000002 */ b .LIQUE_80064D8C -/* 40184 80064D84 00C93025 */ or $a2, $a2, $t1 -.LIQUE_80064D88: -/* 40188 80064D88 240A001F */ addiu $t2, $zero, 0x1F -.LIQUE_80064D8C: -/* 4018C 80064D8C 40865000 */ mtc0 $a2, $10 # handwritten instruction -/* 40190 80064D90 2401FFFF */ addiu $at, $zero, -0x1 -/* 40194 80064D94 10E10006 */ beq $a3, $at, .LIQUE_80064DB0 -/* 40198 80064D98 00000000 */ nop -/* 4019C 80064D9C 00075982 */ srl $t3, $a3, 6 -/* 401A0 80064DA0 016A5825 */ or $t3, $t3, $t2 -/* 401A4 80064DA4 408B1000 */ mtc0 $t3, $2 # handwritten instruction -/* 401A8 80064DA8 10000002 */ b .LIQUE_80064DB4 -/* 401AC 80064DAC 00000000 */ nop -.LIQUE_80064DB0: -/* 401B0 80064DB0 408C1000 */ mtc0 $t4, $2 # handwritten instruction -.LIQUE_80064DB4: -/* 401B4 80064DB4 8FAB0010 */ lw $t3, 0x10($sp) -/* 401B8 80064DB8 2401FFFF */ addiu $at, $zero, -0x1 -/* 401BC 80064DBC 11610006 */ beq $t3, $at, .LIQUE_80064DD8 -/* 401C0 80064DC0 00000000 */ nop -/* 401C4 80064DC4 000B5982 */ srl $t3, $t3, 6 -/* 401C8 80064DC8 016A5825 */ or $t3, $t3, $t2 -/* 401CC 80064DCC 408B1800 */ mtc0 $t3, $3 # handwritten instruction -/* 401D0 80064DD0 10000007 */ b .LIQUE_80064DF0 -/* 401D4 80064DD4 00000000 */ nop -.LIQUE_80064DD8: -/* 401D8 80064DD8 408C1800 */ mtc0 $t4, $3 # handwritten instruction -/* 401DC 80064DDC 2401FFFF */ addiu $at, $zero, -0x1 -/* 401E0 80064DE0 14E10003 */ bne $a3, $at, .LIQUE_80064DF0 -/* 401E4 80064DE4 00000000 */ nop -/* 401E8 80064DE8 3C0B8000 */ lui $t3, (0x80000000 >> 16) -/* 401EC 80064DEC 408B5000 */ mtc0 $t3, $10 # handwritten instruction -.LIQUE_80064DF0: -/* 401F0 80064DF0 00000000 */ nop -/* 401F4 80064DF4 42000002 */ tlbwi # handwritten instruction -/* 401F8 80064DF8 00000000 */ nop -/* 401FC 80064DFC 00000000 */ nop -/* 40200 80064E00 00000000 */ nop -/* 40204 80064E04 00000000 */ nop -/* 40208 80064E08 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 4020C 80064E0C 03E00008 */ jr $ra -/* 40210 80064E10 00000000 */ nop -/* 40214 80064E14 00000000 */ nop -/* 40218 80064E18 00000000 */ nop -/* 4021C 80064E1C 00000000 */ nop diff --git a/ver/ique/asm/os/maptlbrdb.s b/ver/ique/asm/os/maptlbrdb.s deleted file mode 100644 index 0db1bfce6c..0000000000 --- a/ver/ique/asm/os/maptlbrdb.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osMapTLBRdb -/* 46EC0 8006BAC0 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 46EC4 8006BAC4 2409001F */ addiu $t1, $zero, 0x1F -/* 46EC8 8006BAC8 40890000 */ mtc0 $t1, $0 # handwritten instruction -/* 46ECC 8006BACC 40802800 */ mtc0 $zero, $5 # handwritten instruction -/* 46ED0 8006BAD0 240A0017 */ addiu $t2, $zero, 0x17 -/* 46ED4 8006BAD4 3C09C000 */ lui $t1, (0xC0000000 >> 16) -/* 46ED8 8006BAD8 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 46EDC 8006BADC 3C098000 */ lui $t1, (0x80000000 >> 16) -/* 46EE0 8006BAE0 00095982 */ srl $t3, $t1, 6 -/* 46EE4 8006BAE4 016A5825 */ or $t3, $t3, $t2 -/* 46EE8 8006BAE8 408B1000 */ mtc0 $t3, $2 # handwritten instruction -/* 46EEC 8006BAEC 24090001 */ addiu $t1, $zero, 0x1 -/* 46EF0 8006BAF0 40891800 */ mtc0 $t1, $3 # handwritten instruction -/* 46EF4 8006BAF4 00000000 */ nop -/* 46EF8 8006BAF8 42000002 */ tlbwi # handwritten instruction -/* 46EFC 8006BAFC 00000000 */ nop -/* 46F00 8006BB00 00000000 */ nop -/* 46F04 8006BB04 00000000 */ nop -/* 46F08 8006BB08 00000000 */ nop -/* 46F0C 8006BB0C 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 46F10 8006BB10 03E00008 */ jr $ra -/* 46F14 8006BB14 00000000 */ nop -/* 46F18 8006BB18 00000000 */ nop -/* 46F1C 8006BB1C 00000000 */ nop diff --git a/ver/ique/asm/os/osInvalDCache.s b/ver/ique/asm/os/osInvalDCache.s deleted file mode 100644 index a60a03a773..0000000000 --- a/ver/ique/asm/os/osInvalDCache.s +++ /dev/null @@ -1,63 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.16.0 */ - -# Handwritten function -glabel osInvalDCache -/* 3B8D0 800604D0 18A00020 */ blez $a1, .LIQUE_80060554 -/* 3B8D4 800604D4 00000000 */ nop -/* 3B8D8 800604D8 240B2000 */ addiu $t3, $zero, 0x2000 -/* 3B8DC 800604DC 00AB082B */ sltu $at, $a1, $t3 -/* 3B8E0 800604E0 1020001E */ beqz $at, .LIQUE_8006055C -/* 3B8E4 800604E4 00000000 */ nop -/* 3B8E8 800604E8 0080402D */ daddu $t0, $a0, $zero -/* 3B8EC 800604EC 00854821 */ addu $t1, $a0, $a1 -/* 3B8F0 800604F0 0109082B */ sltu $at, $t0, $t1 -/* 3B8F4 800604F4 10200017 */ beqz $at, .LIQUE_80060554 -/* 3B8F8 800604F8 00000000 */ nop -/* 3B8FC 800604FC 2529FFF0 */ addiu $t1, $t1, -0x10 -/* 3B900 80060500 310A000F */ andi $t2, $t0, 0xF -/* 3B904 80060504 11400007 */ beqz $t2, .LIQUE_80060524 -/* 3B908 80060508 00000000 */ nop -/* 3B90C 8006050C 010A4023 */ subu $t0, $t0, $t2 -/* 3B910 80060510 BD150000 */ cache 0x15, 0x0($t0) # handwritten instruction -/* 3B914 80060514 0109082B */ sltu $at, $t0, $t1 -/* 3B918 80060518 1020000E */ beqz $at, .LIQUE_80060554 -/* 3B91C 8006051C 00000000 */ nop -/* 3B920 80060520 25080010 */ addiu $t0, $t0, 0x10 -.LIQUE_80060524: -/* 3B924 80060524 312A000F */ andi $t2, $t1, 0xF -/* 3B928 80060528 11400006 */ beqz $t2, .LIQUE_80060544 -/* 3B92C 8006052C 00000000 */ nop -/* 3B930 80060530 012A4823 */ subu $t1, $t1, $t2 -/* 3B934 80060534 BD350010 */ cache 0x15, 0x10($t1) # handwritten instruction -/* 3B938 80060538 0128082B */ sltu $at, $t1, $t0 -/* 3B93C 8006053C 14200005 */ bnez $at, .LIQUE_80060554 -/* 3B940 80060540 00000000 */ nop -.LIQUE_80060544: -/* 3B944 80060544 BD110000 */ cache 0x11, 0x0($t0) # handwritten instruction -/* 3B948 80060548 0109082B */ sltu $at, $t0, $t1 -/* 3B94C 8006054C 1420FFFD */ bnez $at, .LIQUE_80060544 -/* 3B950 80060550 25080010 */ addiu $t0, $t0, 0x10 -.LIQUE_80060554: -/* 3B954 80060554 03E00008 */ jr $ra -/* 3B958 80060558 00000000 */ nop -.LIQUE_8006055C: -/* 3B95C 8006055C 3C088000 */ lui $t0, 0x8000 -/* 3B960 80060560 010B4821 */ addu $t1, $t0, $t3 -/* 3B964 80060564 2529FFF0 */ addiu $t1, $t1, -0x10 -.LIQUE_80060568: -/* 3B968 80060568 BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3B96C 8006056C 0109082B */ sltu $at, $t0, $t1 -/* 3B970 80060570 1420FFFD */ bnez $at, .LIQUE_80060568 -/* 3B974 80060574 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3B978 80060578 03E00008 */ jr $ra -/* 3B97C 8006057C 00000000 */ nop -.size osInvalDCache, . - osInvalDCache diff --git a/ver/ique/asm/os/osInvalICache.s b/ver/ique/asm/os/osInvalICache.s deleted file mode 100644 index 99fac8c094..0000000000 --- a/ver/ique/asm/os/osInvalICache.s +++ /dev/null @@ -1,50 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.16.0 */ - -# Handwritten function -glabel osInvalICache -/* 3B980 80060580 18A00011 */ blez $a1, .LIQUE_800605C8 -/* 3B984 80060584 00000000 */ nop -/* 3B988 80060588 240B4000 */ addiu $t3, $zero, 0x4000 -/* 3B98C 8006058C 00AB082B */ sltu $at, $a1, $t3 -/* 3B990 80060590 1020000F */ beqz $at, .LIQUE_800605D0 -/* 3B994 80060594 00000000 */ nop -/* 3B998 80060598 0080402D */ daddu $t0, $a0, $zero -/* 3B99C 8006059C 00854821 */ addu $t1, $a0, $a1 -/* 3B9A0 800605A0 0109082B */ sltu $at, $t0, $t1 -/* 3B9A4 800605A4 10200008 */ beqz $at, .LIQUE_800605C8 -/* 3B9A8 800605A8 00000000 */ nop -/* 3B9AC 800605AC 2529FFE0 */ addiu $t1, $t1, -0x20 -/* 3B9B0 800605B0 310A001F */ andi $t2, $t0, 0x1F -/* 3B9B4 800605B4 010A4023 */ subu $t0, $t0, $t2 -.LIQUE_800605B8: -/* 3B9B8 800605B8 BD100000 */ cache 0x10, 0x0($t0) # handwritten instruction -/* 3B9BC 800605BC 0109082B */ sltu $at, $t0, $t1 -/* 3B9C0 800605C0 1420FFFD */ bnez $at, .LIQUE_800605B8 -/* 3B9C4 800605C4 25080020 */ addiu $t0, $t0, 0x20 -.LIQUE_800605C8: -/* 3B9C8 800605C8 03E00008 */ jr $ra -/* 3B9CC 800605CC 00000000 */ nop -.LIQUE_800605D0: -/* 3B9D0 800605D0 3C088000 */ lui $t0, 0x8000 -/* 3B9D4 800605D4 010B4821 */ addu $t1, $t0, $t3 -/* 3B9D8 800605D8 2529FFE0 */ addiu $t1, $t1, -0x20 -.LIQUE_800605DC: -/* 3B9DC 800605DC BD000000 */ cache 0x00, 0x0($t0) # handwritten instruction -/* 3B9E0 800605E0 0109082B */ sltu $at, $t0, $t1 -/* 3B9E4 800605E4 1420FFFD */ bnez $at, .LIQUE_800605DC -/* 3B9E8 800605E8 25080020 */ addiu $t0, $t0, (0x80000020 & 0xFFFF) -/* 3B9EC 800605EC 03E00008 */ jr $ra -/* 3B9F0 800605F0 00000000 */ nop -/* 3B9F4 800605F4 00000000 */ nop -/* 3B9F8 800605F8 00000000 */ nop -/* 3B9FC 800605FC 00000000 */ nop -.size osInvalICache, . - osInvalICache diff --git a/ver/ique/asm/os/osWritebackDCache.s b/ver/ique/asm/os/osWritebackDCache.s deleted file mode 100644 index aa0332901b..0000000000 --- a/ver/ique/asm/os/osWritebackDCache.s +++ /dev/null @@ -1,50 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.16.0 */ - -# Handwritten function -glabel osWritebackDCache -/* 3BA00 80060600 18A00011 */ blez $a1, .LIQUE_80060648 -/* 3BA04 80060604 00000000 */ nop -/* 3BA08 80060608 240B2000 */ addiu $t3, $zero, 0x2000 -/* 3BA0C 8006060C 00AB082B */ sltu $at, $a1, $t3 -/* 3BA10 80060610 1020000F */ beqz $at, .LIQUE_80060650 -/* 3BA14 80060614 00000000 */ nop -/* 3BA18 80060618 0080402D */ daddu $t0, $a0, $zero -/* 3BA1C 8006061C 00854821 */ addu $t1, $a0, $a1 -/* 3BA20 80060620 0109082B */ sltu $at, $t0, $t1 -/* 3BA24 80060624 10200008 */ beqz $at, .LIQUE_80060648 -/* 3BA28 80060628 00000000 */ nop -/* 3BA2C 8006062C 2529FFF0 */ addiu $t1, $t1, -0x10 -/* 3BA30 80060630 310A000F */ andi $t2, $t0, 0xF -/* 3BA34 80060634 010A4023 */ subu $t0, $t0, $t2 -.LIQUE_80060638: -/* 3BA38 80060638 BD190000 */ cache 0x19, 0x0($t0) # handwritten instruction -/* 3BA3C 8006063C 0109082B */ sltu $at, $t0, $t1 -/* 3BA40 80060640 1420FFFD */ bnez $at, .LIQUE_80060638 -/* 3BA44 80060644 25080010 */ addiu $t0, $t0, 0x10 -.LIQUE_80060648: -/* 3BA48 80060648 03E00008 */ jr $ra -/* 3BA4C 8006064C 00000000 */ nop -.LIQUE_80060650: -/* 3BA50 80060650 3C088000 */ lui $t0, 0x8000 -/* 3BA54 80060654 010B4821 */ addu $t1, $t0, $t3 -/* 3BA58 80060658 2529FFF0 */ addiu $t1, $t1, -0x10 -.LIQUE_8006065C: -/* 3BA5C 8006065C BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3BA60 80060660 0109082B */ sltu $at, $t0, $t1 -/* 3BA64 80060664 1420FFFD */ bnez $at, .LIQUE_8006065C -/* 3BA68 80060668 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3BA6C 8006066C 03E00008 */ jr $ra -/* 3BA70 80060670 00000000 */ nop -/* 3BA74 80060674 00000000 */ nop -/* 3BA78 80060678 00000000 */ nop -/* 3BA7C 8006067C 00000000 */ nop -.size osWritebackDCache, . - osWritebackDCache diff --git a/ver/ique/asm/os/osWritebackDCacheAll.s b/ver/ique/asm/os/osWritebackDCacheAll.s deleted file mode 100644 index 346234bfe5..0000000000 --- a/ver/ique/asm/os/osWritebackDCacheAll.s +++ /dev/null @@ -1,27 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.16.0 */ - -# Handwritten function -glabel osWritebackDCacheAll -/* 3BA80 80060680 3C088000 */ lui $t0, 0x8000 -/* 3BA84 80060684 240A2000 */ addiu $t2, $zero, 0x2000 -/* 3BA88 80060688 010A4821 */ addu $t1, $t0, $t2 -/* 3BA8C 8006068C 2529FFF0 */ addiu $t1, $t1, -0x10 -.LIQUE_80060690: -/* 3BA90 80060690 BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3BA94 80060694 0109082B */ sltu $at, $t0, $t1 -/* 3BA98 80060698 1420FFFD */ bnez $at, .LIQUE_80060690 -/* 3BA9C 8006069C 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3BAA0 800606A0 03E00008 */ jr $ra -/* 3BAA4 800606A4 00000000 */ nop -/* 3BAA8 800606A8 00000000 */ nop -/* 3BAAC 800606AC 00000000 */ nop -.size osWritebackDCacheAll, . - osWritebackDCacheAll diff --git a/ver/ique/asm/os/probetlb.s b/ver/ique/asm/os/probetlb.s deleted file mode 100644 index 76f4fa936d..0000000000 --- a/ver/ique/asm/os/probetlb.s +++ /dev/null @@ -1,65 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osProbeTLB -/* 40220 80064E20 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 40224 80064E24 310900FF */ andi $t1, $t0, 0xFF -/* 40228 80064E28 3C01FFFF */ lui $at, (0xFFFFE000 >> 16) -/* 4022C 80064E2C 3421E000 */ ori $at, $at, (0xFFFFE000 & 0xFFFF) -/* 40230 80064E30 00815024 */ and $t2, $a0, $at -/* 40234 80064E34 012A4825 */ or $t1, $t1, $t2 -/* 40238 80064E38 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 4023C 80064E3C 00000000 */ nop -/* 40240 80064E40 00000000 */ nop -/* 40244 80064E44 00000000 */ nop -/* 40248 80064E48 42000008 */ tlbp # handwritten instruction -/* 4024C 80064E4C 00000000 */ nop -/* 40250 80064E50 00000000 */ nop -/* 40254 80064E54 400B0000 */ mfc0 $t3, $0 # handwritten instruction -/* 40258 80064E58 3C018000 */ lui $at, (0x80000000 >> 16) -/* 4025C 80064E5C 01615824 */ and $t3, $t3, $at -/* 40260 80064E60 1560001A */ bnez $t3, .LIQUE_80064ECC -/* 40264 80064E64 00000000 */ nop -/* 40268 80064E68 42000001 */ tlbr # handwritten instruction -/* 4026C 80064E6C 00000000 */ nop -/* 40270 80064E70 00000000 */ nop -/* 40274 80064E74 00000000 */ nop -/* 40278 80064E78 400B2800 */ mfc0 $t3, $5 # handwritten instruction -/* 4027C 80064E7C 216B2000 */ addi $t3, $t3, 0x2000 # handwritten instruction -/* 40280 80064E80 000B5842 */ srl $t3, $t3, 1 -/* 40284 80064E84 01646024 */ and $t4, $t3, $a0 -/* 40288 80064E88 15800004 */ bnez $t4, .LIQUE_80064E9C -/* 4028C 80064E8C 216BFFFF */ addi $t3, $t3, -0x1 # handwritten instruction -/* 40290 80064E90 40021000 */ mfc0 $v0, $2 # handwritten instruction -/* 40294 80064E94 10000002 */ b .LIQUE_80064EA0 -/* 40298 80064E98 00000000 */ nop -.LIQUE_80064E9C: -/* 4029C 80064E9C 40021800 */ mfc0 $v0, $3 # handwritten instruction -.LIQUE_80064EA0: -/* 402A0 80064EA0 304D0002 */ andi $t5, $v0, 0x2 -/* 402A4 80064EA4 11A00009 */ beqz $t5, .LIQUE_80064ECC -/* 402A8 80064EA8 00000000 */ nop -/* 402AC 80064EAC 3C013FFF */ lui $at, (0x3FFFFFC0 >> 16) -/* 402B0 80064EB0 3421FFC0 */ ori $at, $at, (0x3FFFFFC0 & 0xFFFF) -/* 402B4 80064EB4 00411024 */ and $v0, $v0, $at -/* 402B8 80064EB8 00021180 */ sll $v0, $v0, 6 -/* 402BC 80064EBC 008B6824 */ and $t5, $a0, $t3 -/* 402C0 80064EC0 004D1020 */ add $v0, $v0, $t5 # handwritten instruction -/* 402C4 80064EC4 10000002 */ b .LIQUE_80064ED0 -/* 402C8 80064EC8 00000000 */ nop -.LIQUE_80064ECC: -/* 402CC 80064ECC 2402FFFF */ addiu $v0, $zero, -0x1 -.LIQUE_80064ED0: -/* 402D0 80064ED0 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 402D4 80064ED4 03E00008 */ jr $ra -/* 402D8 80064ED8 00000000 */ nop -/* 402DC 80064EDC 00000000 */ nop diff --git a/ver/ique/asm/os/setfpccsr.s b/ver/ique/asm/os/setfpccsr.s deleted file mode 100644 index 8d2269cdf3..0000000000 --- a/ver/ique/asm/os/setfpccsr.s +++ /dev/null @@ -1,16 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel __osSetFpcCsr -/* 46A50 8006B650 4442F800 */ cfc1 $v0, $31 -/* 46A54 8006B654 44C4F800 */ ctc1 $a0, $31 -/* 46A58 8006B658 03E00008 */ jr $ra -/* 46A5C 8006B65C 00000000 */ nop diff --git a/ver/ique/asm/os/setintmask.s b/ver/ique/asm/os/setintmask.s deleted file mode 100644 index 3f77642854..0000000000 --- a/ver/ique/asm/os/setintmask.s +++ /dev/null @@ -1,127 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .rodata - -glabel __osRcpImTable -/* 73D00 80098900 */ .short 0x0555 -/* 73D02 80098902 */ .short 0x0556 -/* 73D04 80098904 */ .short 0x0559 -/* 73D06 80098906 */ .short 0x055A -/* 73D08 80098908 */ .short 0x0565 -/* 73D0A 8009890A */ .short 0x0566 -/* 73D0C 8009890C */ .short 0x0569 -/* 73D0E 8009890E */ .short 0x056A -/* 73D10 80098910 */ .short 0x0595 -/* 73D12 80098912 */ .short 0x0596 -/* 73D14 80098914 */ .short 0x0599 -/* 73D16 80098916 */ .short 0x059A -/* 73D18 80098918 */ .short 0x05A5 -/* 73D1A 8009891A */ .short 0x05A6 -/* 73D1C 8009891C */ .short 0x05A9 -/* 73D1E 8009891E */ .short 0x05AA -/* 73D20 80098920 */ .short 0x0655 -/* 73D22 80098922 */ .short 0x0656 -/* 73D24 80098924 */ .short 0x0659 -/* 73D26 80098926 */ .short 0x065A -/* 73D28 80098928 */ .short 0x0665 -/* 73D2A 8009892A */ .short 0x0666 -/* 73D2C 8009892C */ .short 0x0669 -/* 73D2E 8009892E */ .short 0x066A -/* 73D30 80098930 */ .short 0x0695 -/* 73D32 80098932 */ .short 0x0696 -/* 73D34 80098934 */ .short 0x0699 -/* 73D36 80098936 */ .short 0x069A -/* 73D38 80098938 */ .short 0x06A5 -/* 73D3A 8009893A */ .short 0x06A6 -/* 73D3C 8009893C */ .short 0x06A9 -/* 73D3E 8009893E */ .short 0x06AA -/* 73D40 80098940 */ .short 0x0955 -/* 73D42 80098942 */ .short 0x0956 -/* 73D44 80098944 */ .short 0x0959 -/* 73D46 80098946 */ .short 0x095A -/* 73D48 80098948 */ .short 0x0965 -/* 73D4A 8009894A */ .short 0x0966 -/* 73D4C 8009894C */ .short 0x0969 -/* 73D4E 8009894E */ .short 0x096A -/* 73D50 80098950 */ .short 0x0995 -/* 73D52 80098952 */ .short 0x0996 -/* 73D54 80098954 */ .short 0x0999 -/* 73D56 80098956 */ .short 0x099A -/* 73D58 80098958 */ .short 0x09A5 -/* 73D5A 8009895A */ .short 0x09A6 -/* 73D5C 8009895C */ .short 0x09A9 -/* 73D5E 8009895E */ .short 0x09AA -/* 73D60 80098960 */ .short 0x0A55 -/* 73D62 80098962 */ .short 0x0A56 -/* 73D64 80098964 */ .short 0x0A59 -/* 73D66 80098966 */ .short 0x0A5A -/* 73D68 80098968 */ .short 0x0A65 -/* 73D6A 8009896A */ .short 0x0A66 -/* 73D6C 8009896C */ .short 0x0A69 -/* 73D6E 8009896E */ .short 0x0A6A -/* 73D70 80098970 */ .short 0x0A95 -/* 73D72 80098972 */ .short 0x0A96 -/* 73D74 80098974 */ .short 0x0A99 -/* 73D76 80098976 */ .short 0x0A9A -/* 73D78 80098978 */ .short 0x0AA5 -/* 73D7A 8009897A */ .short 0x0AA6 -/* 73D7C 8009897C */ .short 0x0AA9 -/* 73D7E 8009897E */ .short 0x0AAA -.size __osRcpImTable, . - __osRcpImTable - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osSetIntMask -/* 42190 80066D90 400C6000 */ mfc0 $t4, $12 # handwritten instruction -/* 42194 80066D94 3182FF01 */ andi $v0, $t4, 0xFF01 -/* 42198 80066D98 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 4219C 80066D9C 250845B4 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 421A0 80066DA0 8D0B0000 */ lw $t3, 0x0($t0) -/* 421A4 80066DA4 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 421A8 80066DA8 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 421AC 80066DAC 01614026 */ xor $t0, $t3, $at -/* 421B0 80066DB0 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 421B4 80066DB4 00481025 */ or $v0, $v0, $t0 -/* 421B8 80066DB8 3C0AA430 */ lui $t2, %hi(D_A430000C) -/* 421BC 80066DBC 8D4A000C */ lw $t2, %lo(D_A430000C)($t2) -/* 421C0 80066DC0 11400006 */ beqz $t2, .LIQUE_80066DDC -/* 421C4 80066DC4 000B4C02 */ srl $t1, $t3, 16 -/* 421C8 80066DC8 3C01FFFF */ lui $at, (0xFFFFFFFF >> 16) -/* 421CC 80066DCC 3421FFFF */ ori $at, $at, (0xFFFFFFFF & 0xFFFF) -/* 421D0 80066DD0 01214826 */ xor $t1, $t1, $at -/* 421D4 80066DD4 3129003F */ andi $t1, $t1, 0x3F -/* 421D8 80066DD8 01495025 */ or $t2, $t2, $t1 -.LIQUE_80066DDC: -/* 421DC 80066DDC 000A5400 */ sll $t2, $t2, 16 -/* 421E0 80066DE0 004A1025 */ or $v0, $v0, $t2 -/* 421E4 80066DE4 3C01003F */ lui $at, (0x3F0000 >> 16) -/* 421E8 80066DE8 00814024 */ and $t0, $a0, $at -/* 421EC 80066DEC 010B4024 */ and $t0, $t0, $t3 -/* 421F0 80066DF0 000843C2 */ srl $t0, $t0, 15 -/* 421F4 80066DF4 3C0A800A */ lui $t2, %hi(__osRcpImTable) -/* 421F8 80066DF8 01485021 */ addu $t2, $t2, $t0 -/* 421FC 80066DFC 954A8900 */ lhu $t2, %lo(__osRcpImTable)($t2) -/* 42200 80066E00 3C01A430 */ lui $at, %hi(D_A430000C) -/* 42204 80066E04 AC2A000C */ sw $t2, %lo(D_A430000C)($at) -/* 42208 80066E08 3088FF01 */ andi $t0, $a0, 0xFF01 -/* 4220C 80066E0C 3169FF00 */ andi $t1, $t3, 0xFF00 -/* 42210 80066E10 01094024 */ and $t0, $t0, $t1 -/* 42214 80066E14 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 42218 80066E18 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 4221C 80066E1C 01816024 */ and $t4, $t4, $at -/* 42220 80066E20 01886025 */ or $t4, $t4, $t0 -/* 42224 80066E24 408C6000 */ mtc0 $t4, $12 # handwritten instruction -/* 42228 80066E28 00000000 */ nop -/* 4222C 80066E2C 00000000 */ nop -/* 42230 80066E30 03E00008 */ jr $ra -/* 42234 80066E34 00000000 */ nop -/* 42238 80066E38 00000000 */ nop -/* 4223C 80066E3C 00000000 */ nop diff --git a/ver/ique/asm/os/setsr.s b/ver/ique/asm/os/setsr.s deleted file mode 100644 index d232294979..0000000000 --- a/ver/ique/asm/os/setsr.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osSetSR -/* 46A60 8006B660 40846000 */ mtc0 $a0, $12 # handwritten instruction -/* 46A64 8006B664 00000000 */ nop -/* 46A68 8006B668 03E00008 */ jr $ra -/* 46A6C 8006B66C 00000000 */ nop diff --git a/ver/ique/asm/os/setwatchlo.s b/ver/ique/asm/os/setwatchlo.s deleted file mode 100644 index 9798c3aa06..0000000000 --- a/ver/ique/asm/os/setwatchlo.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osSetWatchLo -/* 46A70 8006B670 40849000 */ mtc0 $a0, $18 # handwritten instruction -/* 46A74 8006B674 00000000 */ nop -/* 46A78 8006B678 03E00008 */ jr $ra -/* 46A7C 8006B67C 00000000 */ nop diff --git a/ver/ique/asm/os/unmaptlb.s b/ver/ique/asm/os/unmaptlb.s deleted file mode 100644 index 0c7c1bdf1d..0000000000 --- a/ver/ique/asm/os/unmaptlb.s +++ /dev/null @@ -1,29 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osUnmapTLB -/* 402E0 80064EE0 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 402E4 80064EE4 40840000 */ mtc0 $a0, $0 # handwritten instruction -/* 402E8 80064EE8 3C098000 */ lui $t1, (0x80000000 >> 16) -/* 402EC 80064EEC 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 402F0 80064EF0 40801000 */ mtc0 $zero, $2 # handwritten instruction -/* 402F4 80064EF4 40801800 */ mtc0 $zero, $3 # handwritten instruction -/* 402F8 80064EF8 00000000 */ nop -/* 402FC 80064EFC 42000002 */ tlbwi # handwritten instruction -/* 40300 80064F00 00000000 */ nop -/* 40304 80064F04 00000000 */ nop -/* 40308 80064F08 00000000 */ nop -/* 4030C 80064F0C 00000000 */ nop -/* 40310 80064F10 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 40314 80064F14 03E00008 */ jr $ra -/* 40318 80064F18 00000000 */ nop -/* 4031C 80064F1C 00000000 */ nop diff --git a/ver/ique/asm/os/unmaptlball.s b/ver/ique/asm/os/unmaptlball.s deleted file mode 100644 index ab84227826..0000000000 --- a/ver/ique/asm/os/unmaptlball.s +++ /dev/null @@ -1,34 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osUnmapTLBAll -/* 40320 80064F20 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 40324 80064F24 2409001E */ addiu $t1, $zero, 0x1E -/* 40328 80064F28 3C0A8000 */ lui $t2, (0x80000000 >> 16) -/* 4032C 80064F2C 408A5000 */ mtc0 $t2, $10 # handwritten instruction -/* 40330 80064F30 40801000 */ mtc0 $zero, $2 # handwritten instruction -/* 40334 80064F34 40801800 */ mtc0 $zero, $3 # handwritten instruction -.LIQUE_80064F38: -/* 40338 80064F38 40890000 */ mtc0 $t1, $0 # handwritten instruction -/* 4033C 80064F3C 00000000 */ nop -/* 40340 80064F40 42000002 */ tlbwi # handwritten instruction -/* 40344 80064F44 00000000 */ nop -/* 40348 80064F48 00000000 */ nop -/* 4034C 80064F4C 2129FFFF */ addi $t1, $t1, -0x1 # handwritten instruction -/* 40350 80064F50 0521FFF9 */ bgez $t1, .LIQUE_80064F38 -/* 40354 80064F54 00000000 */ nop -/* 40358 80064F58 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 4035C 80064F5C 03E00008 */ jr $ra -/* 40360 80064F60 00000000 */ nop -/* 40364 80064F64 00000000 */ nop -/* 40368 80064F68 00000000 */ nop -/* 4036C 80064F6C 00000000 */ nop diff --git a/ver/ique/splat.yaml b/ver/ique/splat.yaml index a6f0c6c3f3..a7bd672348 100644 --- a/ver/ique/splat.yaml +++ b/ver/ique/splat.yaml @@ -27,6 +27,7 @@ options: symbol_name_format_no_rom: IQUE_$VRAM_$SEG ld_wildcard_sections: True ld_use_symbolic_vram_addresses: False + hasm_in_src_path: True asset_stack: - ique segments: @@ -40,8 +41,8 @@ segments: start: 0x1000 vram: 0x80025C00 subsegments: - - [auto, hasm, bss] - - [auto, hasm, entry_point] + - [auto, hasm, boot/entry_point] + - [auto, c, bss/main_pre_bss] - [auto, c, main_pre] - [auto, c, main] - [auto, c, main_loop] @@ -178,10 +179,10 @@ segments: - [auto, c, os/settime, egcs -O0 -mips2] - [auto, c, os/settimer, egcs -O0 -mips2] - [auto, c, os/timerintr, egcs -O0 -mips2] - - [auto, hasm, os/maptlb] - - [auto, hasm, os/probetlb] - - [auto, hasm, os/unmaptlb] - - [auto, hasm, os/unmaptlball] + - [auto, hasm, os/osMapTLB] + - [auto, hasm, os/__osProbeTLB] + - [auto, hasm, os/osUnmapTLB] + - [auto, hasm, os/osUnmapTLBAll] - [auto, c, os/vigetcurrframebuf, egcs -O2 -mips2] - [auto, c, os/vigetnextframebuf, egcs -O2 -mips2] - [auto, c, os/vigetmode, egcs -O2 -mips2] @@ -211,8 +212,9 @@ segments: - [auto, c, os/guMtxXFMF, egcs -O2 -mips2] - [auto, c, os/guRotate, egcs -O2 -mips2] - [auto, hasm, os/exceptasm] - - [auto, hasm, os/interrupt] - - [auto, hasm, os/setintmask] + - [auto, hasm, os/__osDisableInt] + - [auto, hasm, os/__osRestoreInt] + - [auto, hasm, os/osSetIntMask] - [auto, c, os/pimgr, egcs -O2 -mips2] - [auto, c, os/epirawdma, egcs -O2 -mips2] - [auto, c, os/epiwrite, egcs -O2 -mips2] @@ -253,11 +255,11 @@ segments: - [auto, c, os/xlitob, egcs -O2 -mips2] - [auto, c, os/xldtob, egcs -O2 -mips2] - [auto, c, os/jammesg, egcs -O0 -mips2] - - [auto, hasm, os/getcause] - - [auto, hasm, os/getsr] + - [auto, hasm, os/__osGetCause] + - [auto, hasm, os/__osGetSR] - [auto, hasm, os/setfpccsr] - [auto, hasm, os/setsr] - - [auto, hasm, os/setwatchlo] + - [auto, hasm, os/__osSetWatchLo] - [auto, c, os/_setcompare, egcs -O0 -mips3 -mgp64 -mfp64] - [auto, c, os/sp, egcs -O2 -mips2] - [auto, c, os/spgetstat, egcs -O2 -mips2] @@ -269,7 +271,7 @@ segments: - [auto, c, os/destroythread, egcs -O0 -mips2] - [auto, c, os/getthreadpri, egcs -O0 -mips2] - [auto, c, os/yieldthread, egcs -O0 -mips2] - - [auto, hasm, os/maptlbrdb] + - [auto, hasm, os/osMapTLBRdb] - [auto, c, os/vi, egcs -O2 -mips2] - [auto, c, os/vigetcurrcontext, egcs -O2 -mips2] - [auto, c, os/vimodepallan1, egcs -O2 -mips2] @@ -292,7 +294,9 @@ segments: - [auto, c, os/strcpy, gcc_272 -O1] - [auto, hasm, os/decode_yay0] - [0x49830, pm_effect_loads, effect_loads] + - [auto, c, bss/main_post_bss] - [auto, c, battle/battle] + - [auto, c, battle/battle_bss] - [0x4D140, bin, rspboot] - [0x4D210, bin, n_aspMain_text] - start: 0x4DE70 @@ -332,7 +336,7 @@ segments: start: 0x74570 vram: 0x800da8e0 subsegments: - - [auto, hasm, bss2] + - [auto, c, bss/engine1_pre_bss] - [auto, c, npc_collision] - [auto, c, 77480] - [auto, c, 7B440] @@ -342,12 +346,12 @@ segments: - [auto, c, inventory] - [auto, c, world/actions] - [auto, c, world/partners] - - [auto, hasm, bss2_2] - [auto, c, global_hud_scripts] - [auto, c, 891b0_len_fb0] - [auto, c, 8a160_len_700] - [auto, c, 8a860_len_3f30] - [auto, c, draw_box] + - [auto, c, bss/engine1_post_bss] - start: 0x90570 type: .data name: global_hud_scripts @@ -767,7 +771,7 @@ segments: start: 0xa4990 vram: 0x8010dab0 subsegments: - - [auto, hasm, bss3] + - [auto, c, bss/engine2_pre_bss] - [auto, c, entity] - [auto, c, game_states] - [auto, c, model] @@ -790,6 +794,7 @@ segments: - [auto, c, sprite_shading] - [auto, c, audio/sfx] - [auto, c, audio/e0b30_len_b80] + - [auto, c, bss/engine2_post_bss] - start: 0xE1D60 type: .data name: screen_overlays diff --git a/ver/jp/asm/bss2.s b/ver/jp/asm/bss2.s deleted file mode 100644 index fd1019a927..0000000000 --- a/ver/jp/asm/bss2.s +++ /dev/null @@ -1,114 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel PulseStoneNotificationCallback -.space 4 - -dlabel D_8010C924 -.space 4 - -dlabel D_8010C928 -.space 4 - -dlabel D_8010C92C -.space 4 - -dlabel wPartnerNpc -.space 4 - -dlabel TweesterTouchingPlayer -.space 4 - -dlabel PlayerNormalYaw -.space 4 - -dlabel ISpyNotificationCallback -.space 4 - -dlabel TalkNotificationCallback -.space 4 - -dlabel gSpinHistoryBufferPos -.space 4 - -dlabel D_8010C948 -.space 4 - -dlabel NpcHitQueryBehindRightY -.space 4 - -dlabel D_8010C950 -.space 4 - -dlabel TweesterTouchingPartner -.space 4 - -dlabel InteractNotificationCallback -.space 4 - -dlabel PrevPlayerDirection -.space 4 - -dlabel JumpedOnSwitchX -.space 4 - -dlabel D_8010C964 -.space 4 - -dlabel NpcHitQueryBehindCollider -.space 4 - -dlabel PeachDisguiseNpcIndex -.space 4 - -dlabel NpcHitQueryAheadY -.space 4 - -dlabel NpcHitQueryBehindLeftY -.space 4 - -dlabel NpcHitQueryColliderID -.space 4 - -dlabel JumpedOnSwitchZ -.space 4 - -dlabel PlayerRunStateTime -.space 4 - -dlabel D_8010C984 -.space 4 - -dlabel D_8010C988 -.space 4 - -dlabel NpcHitQueryAheadCollider -.space 4 - -dlabel PlayerNormalPitch -.space 4 - -dlabel D_8010C994 -.space 0x0000000c - -dlabel PlayerYInterpUpdateDelay -.space 4 - -dlabel D_8010C9A4 -.space 0x0000000c - -dlabel D_8010C9B0 -.space 4 - -dlabel D_8010C9B4 -.space 0x0000000c - -#endif diff --git a/ver/jp/asm/bss2_2.s b/ver/jp/asm/bss2_2.s deleted file mode 100644 index dd58463ae8..0000000000 --- a/ver/jp/asm/bss2_2.s +++ /dev/null @@ -1,225 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel wPartnerTetherDistance -.space 4 - -dlabel D_8010CFC4 -.space 4 - -dlabel wPartnerFollowState -.space 2 - -dlabel D_8010CFCA -.space 2 - -dlabel D_8010CFCC -.space 2 - -dlabel D_8010CFCE -.space 2 - -dlabel wPartnerNpcIndex -.space 4 - -dlabel wPartnerCurrentScript -.space 4 - -dlabel wCurrentPartnerId -.space 4 - -dlabel wPartnerCurrentScriptID -.space 4 - -dlabel D_8010CFE0 -.space 4 - -dlabel NextPartnerID -.space 4 - -dlabel NextPartnerCommand -.space 4 - -dlabel wPartner -.space 4 - -dlabel D_8010CFF0 -.space 4 - -dlabel D_8010CFF4 -.space 4 - -dlabel D_8010CFF8 -.space 8 - -dlabel D_8010D000 -.space 0x63C - -dlabel D_8010D63C -.space 0x4 - -dlabel gPopupState -.space 4 - -dlabel D_8010D644 -.space 4 - -dlabel PopupMenu_SelectedIndex -.space 4 - -dlabel PopupMenu_PrevSelectedIndex -.space 4 - -dlabel PopupMenu_Alpha -.space 4 - -dlabel PopupMenu_FirstDisplayIndex -.space 1 - -dlabel PopupMenu_LastDisplayIndex -.space 1 - -dlabel PopupMenu_DisplayedEntryCount -.space 2 - -dlabel D_8010D658 -.space 2 - -dlabel D_8010D65A -.space 2 - -dlabel PopupMenu_EmptybarHEID -.space 4 - -dlabel PopupMenu_TitleIconHEID -.space 4 - -dlabel PopupMenu_TimesHEID -.space 4 - -dlabel PopupMenu_PartnerLevelHEID -.space 4 - -dlabel PopupMenu_CursorHEID -.space 4 - -dlabel PopupMenu_UpArrowHEID -.space 4 - -dlabel PopupMenu_DownArrowHEID -.space 4 - -dlabel PopupMenu_EntryIconHEID -.space 4 - -dlabel D_8010D67C -.space 2 - -dlabel D_8010D67E -.space 2 - -dlabel D_8010D680 -.space 2 - -dlabel D_8010D682 -.space 2 - -dlabel D_8010D684 -.space 2 - -dlabel D_8010D686 -.space 2 - -dlabel PopupMenu_StarPieceCounterPosX -.space 2 - -dlabel PopupMenu_StarPieceCounterPosY -.space 2 - -dlabel D_8010D68C -.space 2 - -dlabel PopupNotBattle -.space 1 - -dlabel PopupMenu_MaxDisplayableEntryCount -.space 1 - -dlabel D_8010D690 -.space 1 - -dlabel D_8010D691 -.space 1 - -dlabel D_8010D692 -.space 1 - -dlabel D_8010D693 -.space 1 - -dlabel gPopupWorker -.space 4 - -dlabel PopupNotDipping -.space 1 - -dlabel PopupDipMode -.space 1 - -dlabel PopupMenu_WasStatusBarIgnoringChanges -.space 2 - -dlabel gPopupMenu -.space 4 - -dlabel D_8010D6A0 -.space 4 - -dlabel D_8010D6A4 -.space 4 - -dlabel D_8010D6A8 -.space 0x8 - -dlabel gBoxQuadBuffer -.space 0x1500 - -dlabel gPartnerStatus -.space 0x360 - -dlabel gSpinHistoryPosY -.space 0x18 - -dlabel gSpinHistoryPosX -.space 0x18 - -dlabel gSpinHistoryPosZ -.space 0x18 - -dlabel gStatusBar -.space 0x70 - -dlabel gPlayerStatus -.space 0x288 - -dlabel gPlayerSpinState -.space 0x34 - -dlabel D_8010F284 -.space 0xC - -dlabel gPlayerData -.space 0x428 - -dlabel gSpinHistoryPosAngle -.space 0x10 - -#endif diff --git a/ver/jp/asm/bss3.s b/ver/jp/asm/bss3.s deleted file mode 100644 index 88b0988287..0000000000 --- a/ver/jp/asm/bss3.s +++ /dev/null @@ -1,682 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel gAuxSpriteShadingProfile -.space 4 - -dlabel gHudElementsNumber -.space 4 - -dlabel gCurrentCustomModelGfxBuildersPtr -.space 4 - -dlabel D_801512BC -.space 4 - -dlabel entity_numEntities -.space 4 - -dlabel gEntityHeapBase -.space 4 - -dlabel gHudElementCacheTableRaster -.space 4 - -dlabel gCurrentModels -.space 4 - -dlabel gHudElementCacheTablePalette -.space 4 - -dlabel gAnimCount -.space 4 - -dlabel gMsgBGScrollAmtX -.space 4 - -dlabel D_801512DC -.space 4 - -dlabel gCurrentTransformGroups -.space 4 - -dlabel gMsgGlobalWaveCounter -.space 4 - -dlabel gCurrentCustomModelGfxPtr -.space 4 - -dlabel gLastCreatedEntityIndex -.space 4 - -dlabel gBackgroundTintModePtr -.space 4 - -dlabel gMsgVarImages -.space 4 - -dlabel ItemEntitiesCreated -.space 4 - -dlabel gCurrentModelTreeRoot -.space 4 - -dlabel gEntityHeapBottom -.space 4 - -dlabel D_80151304 -.space 4 - -dlabel gCurrentRoomDoorSounds -.space 4 - -dlabel gMsgBGScrollAmtY -.space 2 - -dlabel D_8015130E -.space 2 - -dlabel gEntityHideMode -.space 4 - -dlabel gHudElementCacheBuffer -.space 4 - -dlabel gEntityModelCount -.space 4 - -dlabel D_8015131C -.space 4 - -dlabel D_80151320 -.space 4 - -dlabel entity_numShadows -.space 4 - -dlabel gSpriteShadingProfile -.space 4 - -dlabel isAreaSpecificEntityDataLoaded -.space 4 - -dlabel entity_updateCounter -.space 4 - -dlabel gTriggerCount -.space 4 - -dlabel D_80151338 -.space 4 - -dlabel gHudElementCacheSize -.space 4 - -dlabel gCurrentDoorSounds -.space 4 - -dlabel D_80151344 -.space 4 - -dlabel D_80151348 -.space 0x00000018 - -dlabel gWorldEntityList -.space 0x00000078 - -dlabel gBattleEntityList -.space 0x00000078 - -dlabel gCurrentEntityListPtr -.space 4 - -dlabel D_80151474 -.space 4 - -dlabel gWorldShadowList -.space 0x000000f0 - -dlabel gBattleShadowList -.space 0x000000f0 - -dlabel gCurrentShadowListPtr -.space 4 - -dlabel wEntityDataLoadedSize -.space 4 - -dlabel bEntityDataLoadedSize -.space 4 - -dlabel D_80151664 -.space 4 - -dlabel wEntityBlueprint -.space 0x00000078 - -.space 8 - -dlabel bEntityBlueprint -.space 0x00000014 - -dlabel D_801516FC -.space 4 - -dlabel gMainGameMode -.space 0x00000040 - -dlabel gCurrentTextureHeader -.space 0x00000030 - -dlabel wModelList -.space 0x00000400 - -dlabel bModelList -.space 0x00000400 - -dlabel wTransformGroups -.space 0x00000010 - -dlabel bTransformGroups -.space 0x00000010 - -dlabel wCustomModelGfx -.space 0x00000080 - -dlabel bCustomModelGfx -.space 0x00000080 - -dlabel wCustomModelGfxBuilders -.space 0x00000080 - -dlabel bCustomModelGfxBuilders -.space 0x00000080 - -dlabel wModelLocalVtxBuffers -.space 0x00000040 - -dlabel bModelLocalVtxBuffers -.space 0x00000040 - -dlabel gCurrentModelLocalVtxBuffers -.space 4 - -dlabel wModelTreeRoot -.space 4 - -dlabel bModelTreeRoot -.space 4 - -dlabel D_8015221C -.space 4 - -dlabel wModelTreeNodeInfo -.space 0x00000800 - -dlabel bModelTreeNodeInfo -.space 0x00000800 - -dlabel wBackgroundTintMode -.space 1 - -dlabel bBackgroundTintMode -.space 1 - -dlabel D_80153222 -.space 1 - -dlabel D_80153223 -.space 1 - -dlabel TreeIterPos -.space 4 - -dlabel wFogSettings -.space 0x00000020 - -dlabel bFogSettings -.space 0x0000001c - -dlabel gFogSettings -.space 4 - -dlabel texPannerMainU -.space 0x00000040 - -dlabel texPannerMainV -.space 0x00000040 - -dlabel texPannerAuxU -.space 0x00000040 - -dlabel texPannerAuxV -.space 0x00000040 - -dlabel TextureHeapPos -.space 4 - -dlabel mtg_IterIdx -.space 2 - -dlabel mtg_SearchModelID -.space 2 - -dlabel mtg_FoundModelNode -.space 4 - -dlabel mtg_MinChild -.space 2 - -dlabel mtg_MaxChild -.space 2 - -dlabel D_80153378 -.space 8 - -dlabel DepthCopyBuffer -.space 0x00000020 - -dlabel RenderTaskLists -.space 0x0000000c - -dlabel RenderTaskListIdx -.space 4 - -dlabel RenderTaskCount -.space 0x00000010 - -dlabel D_801533C0 -.space 0x00000300 - -dlabel D_801536C0 -.space 0x00000300 - -dlabel D_801539C0 -.space 0x00000040 - -dlabel D_80153A00 -.space 0x00000040 - -dlabel gCurrentAnimMeshListPtr -.space 4 - -dlabel gAnimModelFogEnabled -.space 4 - -dlabel gAnimModelFogR -.space 4 - -dlabel gAnimModelFogG -.space 4 - -dlabel gAnimModelFogB -.space 4 - -dlabel gAnimModelFogA -.space 4 - -dlabel gAnimModelFogStart -.space 4 - -dlabel gAnimModelFogEnd -.space 4 - -dlabel gAnimVtxSegment -.space 4 - -dlabel D_80153A64 -.space 4 - -dlabel gAnimRotMtx -.space 0x00000040 - -dlabel gAnimScaleMtx -.space 0x00000040 - -dlabel gAnimTranslateMtx -.space 0x00000040 - -dlabel gAnimRotScaleMtx -.space 0x00000040 - -dlabel gAnimTreeRoot -.space 8 - -dlabel gWorldEntityModelList -.space 0x00000400 - -dlabel gBattleEntityModelList -.space 0x00000400 - -dlabel gCurrentEntityModelList -.space 4 - -dlabel D_80154374 -.space 4 - -dlabel entity_fog_enabled -.space 4 - -dlabel entity_fog_red -.space 4 - -dlabel entity_fog_green -.space 4 - -dlabel entity_fog_blue -.space 4 - -dlabel entity_fog_alpha -.space 4 - -dlabel entity_fog_dist_min -.space 4 - -dlabel entity_fog_dist_max -.space 4 - -dlabel D_80154394 -.space 0x0000000c - -dlabel gWorldWorkerList -.space 0x00000040 - -dlabel gBattleWorkerList -.space 0x00000040 - -dlabel gCurrentWorkerListPtr -.space 4 - -dlabel D_80154424 -.space 0x0000000c - -dlabel gMessageBuffers -.space 0x00000800 - -dlabel gMessagePrinters -.space 0x00000F40 - -dlabel gMessageMsgVars -.space 0x00000060 - -dlabel D_80155C98 -.space 8 - -dlabel gMessageWindowProjMatrix -.space 0x00000080 - -dlabel D_JP_8015AC98_pad -.space 8 - -dlabel D_80155D20 -.space 4 - -dlabel D_8015DD24 -.space 0x00000050 - -dlabel msg_drawState -.space 4 - -dlabel D_8015DD78 -.space 8 - -dlabel UnusedItemPhysicsScriptID -.space 4 - -dlabel ItemEntityAlternatingSpawn -.space 4 - -dlabel ItemEntityRenderGroup -.space 4 - -dlabel CoinSparkleCenterX -.space 2 - -dlabel CoinSparkleCenterY -.space 2 - -dlabel CoinSparkleCenterZ -.space 2 - -dlabel pad_ItemEntity -.space 0x000000E - -dlabel WorldItemEntities -.space 0x00000400 - -dlabel BattleItemEntities -.space 0x00000400 - -dlabel gCurrentItemEntities -.space 4 - -dlabel isPickingUpItem -.space 2 - -dlabel ItemSpawnWithinPlayerPickupDelay -.space 2 - -dlabel ItemPickupMenu -.space 0x00000330 - -dlabel ItemPickupIconID -.space 4 - -dlabel ItemPickupStateDelay -.space 4 - -dlabel ThrowAwayMenuIdx -.space 4 - -dlabel ThrowAwayItemID -.space 4 - -dlabel ItemPickupGotOutline -.space 4 - -dlabel GotItemTutorialPrinter -.space 4 - -dlabel GotItemTutorialClosed -.space 4 - -dlabel D_801568FC -.space 0xC - -dlabel screen_overlay_frontType -.space 4 - -dlabel screen_overlay_frontZoom -.space 4 - -dlabel screen_overlay_backType -.space 4 - -dlabel screen_overlay_backZoom -.space 4 - -dlabel D_80156910 -.space 0x00000010 - -dlabel ImgFXCurrentTexture -.space 0x00000028 - -dlabel ImgFXVtxBuffers -.space 8 - -dlabel imgfx_vtxBuf -.space 4 - -dlabel ImgFXInstances -.space 4 - -dlabel D_80156958 -.space 8 - -dlabel D_80156960 -.space 8 - -dlabel D_80156968 -.space 8 - -dlabel D_80156970 -.space 0x00000010 - -dlabel ImgFXAnimHeaders -.space 0x000005a0 - -dlabel ImgFXDataCache -.space 0x00000040 - -dlabel gHudElementsWorld -.space 0x00000500 - -dlabel gHudElementsBattle -.space 0x00000500 - -dlabel gHudElements -.space 4 - -dlabel gHudElementCacheBufferWorld -.space 4 - -dlabel gHudElementCacheSizeWorld -.space 4 - -dlabel D_8015796C -.space 4 - -dlabel gHudElementCacheTableRasterWorld -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteWorld -.space 0x00000600 - -dlabel gHudElementCacheBufferBattle -.space 4 - -dlabel gHudElementCacheSizeBattle -.space 4 - -dlabel D_80158578 -.space 8 - -dlabel gHudElementCacheTableRasterBattle -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteBattle -.space 0x00000600 - -dlabel D_80159180 -.space 0x00000010 - -dlabel wTriggerList -.space 0x00000100 - -dlabel bTriggerList -.space 0x00000100 - -dlabel gCurrentTriggerListPtr -.space 4 - -dlabel D_80159394 -.space 0x0000000c - -dlabel gBackgroundPalette -.space 0x00000200 - -dlabel gBackroundLastScrollValue -.space 0x00000020 - -dlabel wSpriteShadingProfile -.space 0x000000b0 - -dlabel bSpriteShadingProfile -.space 0x000000b0 - -dlabel wSpriteShadingProfileAux -.space 0x000000b0 - -dlabel bSpriteShadingProfileAux -.space 0x000000b0 - -dlabel SpriteShadingPalette -.space 0x00000020 - -dlabel wEnvSounds -.space 0x00000118 - -dlabel bEnvSounds -.space 0x00000118 - -dlabel gCurrentEnvSounds -.space 4 - -dlabel SfxReverbMode -.space 4 - -dlabel D_80159AD8 -.space 8 - -dlabel MusicDefaultVolume -.space 2 - -dlabel MusicTargetVolume -.space 2 - -dlabel MusicMaxVolume -.space 2 - -dlabel MusicCurrentVolume -.space 2 - -dlabel D_80159AE8 -.space 8 - -dlabel gMusicSettings -.space 0x00000060 - -dlabel D_80159B50 -.space 0x00000200 - -dlabel gWindows -.space 0x00000800 - -dlabel gCollisionStatus -.space 0x00000028 - -dlabel gCurrentHiddenPanels -.space 0x10 - -.space 8 - -dlabel TextureHandles -.space 0x00002200 - -dlabel ScreenOverlays -.space 0x00000030 - -dlabel AmbientSoundData -.space 0x00000010 - -dlabel CreateEntityVarArgBuffer -.space 0x00000010 - -dlabel D_8015C7E0 -.space 0x20 - -dlabel D_8015C800 -.space 0x2880 - -dlabel D_80164000 -.space 0x32C60 - -#endif diff --git a/ver/jp/asm/entry_point.s b/ver/jp/asm/entry_point.s deleted file mode 100644 index d887c9cd27..0000000000 --- a/ver/jp/asm/entry_point.s +++ /dev/null @@ -1,38 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel func_JP_80025C00 -/* 1000 80025C00 3C08800A */ lui $t0, %hi(main_BSS_START) -/* 1004 80025C04 2508A590 */ addiu $t0, $t0, %lo(main_BSS_START) -/* 1008 80025C08 3C090004 */ lui $t1, %hi(main_BSS_SIZE) -/* 100C 80025C0C 25291F50 */ addiu $t1, $t1, %lo(main_BSS_SIZE) -.LJP_80025C10: -/* 1010 80025C10 AD000000 */ sw $zero, 0x0($t0) -/* 1014 80025C14 AD000004 */ sw $zero, 0x4($t0) -/* 1018 80025C18 21080008 */ addi $t0, $t0, 0x8 # handwritten instruction -/* 101C 80025C1C 2129FFF8 */ addi $t1, $t1, -0x8 # handwritten instruction -/* 1020 80025C20 1520FFFB */ bnez $t1, .LJP_80025C10 -/* 1024 80025C24 00000000 */ nop -/* 1028 80025C28 3C1D800B */ lui $sp, %hi(nuBootStack + 0x2000) -/* 102C 80025C2C 27BD6570 */ addiu $sp, $sp, %lo(nuBootStack + 0x2000) -/* 1030 80025C30 3C0A8006 */ lui $t2, %hi(nuBoot) -/* 1034 80025C34 254AE560 */ addiu $t2, $t2, %lo(nuBoot) -/* 1038 80025C38 01400008 */ jr $t2 -/* 103C 80025C3C 00000000 */ nop -/* 1040 80025C40 00000000 */ nop -/* 1044 80025C44 00000000 */ nop -/* 1048 80025C48 00000000 */ nop -/* 104C 80025C4C 00000000 */ nop -/* 1050 80025C50 00000000 */ nop -/* 1054 80025C54 00000000 */ nop -/* 1058 80025C58 00000000 */ nop -/* 105C 80025C5C 00000000 */ nop diff --git a/ver/jp/asm/main.bss.s b/ver/jp/asm/main.bss.s deleted file mode 100644 index 48c914dd79..0000000000 --- a/ver/jp/asm/main.bss.s +++ /dev/null @@ -1,770 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .bss - -dlabel nuScPreNMIFlag -.space 8 - -dlabel D_8009A5B8 -.space 8 - -dlabel gSoundGlobals -.space 8 - -dlabel __osBaseCounter -.space 4 - -dlabel gBGMPlayerC -.space 4 - -dlabel gEncounterSubState -.space 4 - -dlabel CurrentSefCmdHandler -.space 4 - -dlabel timeFreezeMode -.space 4 - -dlabel nuGfxZBuffer -.space 4 - -dlabel nuContDataLockKey -.space 4 - -dlabel __osViIntrCount -.space 4 - -dlabel BeginSoundUpdateCallback -.space 4 - -dlabel D_8009A5EC -.space 4 - -dlabel nuGfxCfbCounter -.space 8 - -dlabel nuGfxDisplay -.space 4 - -dlabel gBGMPlayerB -.space 4 - -dlabel gEncounterState -.space 4 - -dlabel gNpcCount -.space 2 - -dlabel __osMaxControllers -.space 2 - -dlabel __osCurrentTime -.space 8 - -dlabel nuGfxUcode -.space 4 - -dlabel nuContNum -.space 4 - -dlabel nuGfxTaskSpool -.space 4 - -dlabel __osContLastCmd -.space 4 - -dlabel __osEepromTimerMsg -.space 8 - -dlabel gAuAmbienceManager -.space 4 - -dlabel __osTimerCounter -.space 4 - -dlabel nuIdleFunc -.space 4 - -dlabel gCurrentCamID -.space 4 - -dlabel nuPiCartHandle -.space 4 - -dlabel D_8009A63C -.space 4 - -dlabel gSoundManager -.space 12 - -dlabel nuGfxCfb_ptr -.space 4 - -dlabel gOverrideFlags -.space 4 - -dlabel HasPreBattleSongPushed -.space 4 - -dlabel nuGfxCfb -.space 8 - -dlabel __osFinalrom -.space 4 - -dlabel gBGMPlayerA -.space 4 - -dlabel gFirstStrikeMessagePos -.space 4 - -dlabel gMainGfxPos -.space 4 - -dlabel D_8009A670 -.space 4 - -dlabel gDisplayContext -.space 4 - -dlabel D_8009A678 -.space 8 - -dlabel ResetFrameBufferArray -.space 0x00000010 - -dlabel SoftResetDelay -.space 0x00000010 - -dlabel D_8009A6A0 -.space 2 - -dlabel D_8009A6A2 -.space 2 - -dlabel D_8009A6A4 -.space 2 - -dlabel D_8009A6A6 -.space 10 - -dlabel FetchSaveBuffer -.space 0x00001380 - -dlabel LogicalSaveInfo -.space 0x00000020 - -dlabel PhysicalSaveInfo -.space 0x00000030 - -dlabel NextAvailablePhysicalSave -.space 0x00000010 - -dlabel gCurtainScale -.space 4 - -dlabel gCurtainScaleGoal -.space 4 - -dlabel gCurtainFade -.space 4 - -dlabel gCurtainFadeGoal -.space 4 - -dlabel gCurtainDrawCallback -.space 8 - -dlabel D_8009BAA8 -.space 0x00000088 - -dlabel gCrashScreen -.space 0x000009E0 - -dlabel nuGfxTask_ptr -.space 4 - -dlabel taskDoneMsg -.space 2 - -dlabel swapBufMsg -.space 2 - -dlabel GfxTaskMgrThread -.space 0x000001B8 - -dlabel GfxTaskMgrStack -.space 0x00002000 - -dlabel D_8009E6D0 -.space 0x00000020 - -dlabel gCurrentCamConfiguration -.space 0x0000001C - -dlabel D_800A08DC -.space 4 - -dlabel D_800A08E0 -.space 4 - -dlabel D_800A08E4 -.space 4 - -dlabel D_800A08E8 -.space 4 - -dlabel D_800A08EC -.space 4 - -dlabel CurGameMode -.space 0x00000010 - -dlabel D_800A0900 -.space 4 - -dlabel D_800A0904 -.space 4 - -dlabel D_800A0908 -.space 8 - -dlabel gLogosImages -.space 4 - -dlabel gLogosImage3 -.space 4 - -dlabel gLogosImage1 -.space 4 - -dlabel gLogosImage2 -.space 4 - -dlabel StepPauseDelay -.space 1 - -dlabel StepPauseState -.space 1 - -dlabel StepPauseAlpha -.space 2 - -dlabel SavedReverbMode -.space 12 - -dlabel D_800A0930 -.space 1 - -dlabel D_800A0931 -.space 1 - -dlabel D_800A0932 -.space 14 - -dlabel gMapTransitionAlpha -.space 2 - -dlabel gMapTransitionFadeRate -.space 2 - -dlabel gMapTransitionState -.space 2 - -dlabel gMapTransitionStateTime -.space 2 - -dlabel gLoadedFromFileSelect -.space 8 - -dlabel IntroEnableDrawFrameDelay -.space 4 - -dlabel IntroOverlayAlpha -.space 2 - -dlabel IntroFrontFadeAlpha -.space 2 - -dlabel IntroOverlayDelta -.space 2 - -dlabel IntroFadeColorR -.space 2 - -dlabel IntroFadeColorG -.space 2 - -dlabel IntroFadeColorB -.space 2 - -dlabel IntroOverlayType -.space 4 - -dlabel D_800A0964 -.space 12 - -dlabel TitleScreen_AppearDelay -.space 4 - -dlabel TitleScreen_ImgList -.space 4 - -dlabel TitleScreen_ImgList_Logo -.space 4 - -dlabel TitleScreen_ImgList_Copyright -.space 4 - -dlabel TitleScreen_ImgList_PressStart -.space 4 - -dlabel TitleScreen_ImgList_CopyrightPalette -.space 4 - -dlabel TitleScreen_TimeLeft -.space 8 - -dlabel gWorldNpcList -.space 0x00000100 - -dlabel gBattleNpcList -.space 0x00000100 - -dlabel gCurrentNpcListPtr -.space 4 - -dlabel gNpcPlayerCollisionsEnabled -.space 12 - -dlabel D_800A0BA0 -.space 4 - -dlabel D_800A0BA4 -.space 4 - -dlabel WorldMerleeOrbEffect -.space 4 - -dlabel WorldMerleeWaveEffect -.space 4 - -dlabel D_800A0BB0 -.space 4 - -dlabel D_800A0BB4 -.space 4 - -dlabel D_800A0BB8 -.space 8 - -dlabel D_800A0BC0 -.space 0x00000380 - -dlabel D_800A0F40 -.space 4 - -dlabel D_800A0F44 -.space 12 - -dlabel AuInitialGlobalVolume -.space 8 - -dlabel nuAuMgrThread -.space 0x000005B8 - -dlabel AuStack -.space 0x00002000 - -dlabel AlCmdListBuffers -.space 0x00000010 - -dlabel nuAuTasks -.space 0x00000108 - -dlabel D_800A3628 -.space 12 - -dlabel AlFrameSize -.space 4 - -dlabel AlMinFrameSize -.space 8 - -dlabel nuAuDmaMesgQ -.space 0x00000018 - -dlabel nuAuDmaMesgBuf -.space 0x000000C8 - -dlabel nuAuDmaIOMesgBuf -.space 0x000004B0 - -dlabel nuAuDmaState -.space 0x00000010 - -dlabel nuAuDmaBufList -.space 0x000003F0 - -dlabel CurrentSeqCmdHandler -.space 0x00000010 - -dlabel AuDelayBufferMain -.space 4 - -dlabel AuDelayBufferAux -.space 4 - -dlabel AuDelayCounter -.space 4 - -dlabel AuDelayedVoiceGroup -.space 2 - -dlabel AuDelayedChannel -.space 2 - -dlabel AuDelayCount -.space 0x00000010 - -dlabel gEffectGraphicsData -.space 0x000001E0 - -dlabel gMapConfig -.space 8 - -dlabel gMapSettings -.space 0x00000048 - -dlabel gCollisionRayStartX -.space 4 - -dlabel gCollisionRayStartY -.space 4 - -dlabel gCollisionRayStartZ -.space 4 - -dlabel gCollisionRayDirX -.space 4 - -dlabel gCollisionRayDirY -.space 4 - -dlabel gCollisionRayDirZ -.space 4 - -dlabel gCollisionPointX -.space 4 - -dlabel gCollisionPointY -.space 4 - -dlabel gCollisionPointZ -.space 4 - -dlabel gCollisionRayLength -.space 4 - -dlabel gCollisionNormalX -.space 4 - -dlabel gCollisionNormalY -.space 4 - -dlabel gCollisionNormalZ -.space 4 - -dlabel gCollisionDataBackup -.space 4 - -dlabel gCollisionDataZoneBackup -.space 8 - -dlabel IdleThread -.space 0x000001B0 - -dlabel MainThread -.space 0x000001B0 - -dlabel IdleStack -.space 0x00002000 - -dlabel nuScStack -.space 0x00002000 - -dlabel nuScAudioStack -.space 0x00002000 - -dlabel nuScGraphicsStack -.space 0x00002000 - -dlabel D_800AC5D0 -.space 0x00000018 - -dlabel D_800AC5E8 -.space 0x000000C8 - -dlabel nuGfxMesgBuf -.space 0x00000020 - -dlabel GfxStack -.space 0x00002000 - -dlabel nuSiMesgBuf -.space 0x00000020 - -dlabel siMgrThread -.space 0x000001B0 - -dlabel siMgrStack -.space 0x00002000 - -dlabel nuContWaitMesgBuf -.space 4 - -dlabel nuContDataMutexBuf -.space 12 - -dlabel piThread -.space 0x000001B0 - -dlabel piThreadStack -.space 0x00001000 - -dlabel piEventQueue -.space 0x00000018 - -dlabel piEventBuf -.space 8 - -dlabel piAccessBuf -.space 0x00000010 - -dlabel tmp_task -.space 0x00000040 - -dlabel siAccessBuf -.space 0x00000010 - -dlabel retrace -.space 8 - -dlabel viThread -.space 0x000001B8 - -dlabel viThreadStack -.space 0x00001000 - -dlabel viEventQueue -.space 0x00000018 - -dlabel viEventBuf -.space 0x00000018 - -dlabel viRetraceMsg -.space 0x00000018 - -dlabel viCounterMsg -.space 0x00000018 - -dlabel __MotorDataBuf -.space 0x00000100 - -dlabel __osFlashID -.space 0x00000010 - -dlabel __osFlashMsg -.space 0x00000018 - -dlabel __osFlashMessageQ -.space 0x00000018 - -dlabel __osFlashHandler -.space 0x00000074 - -dlabel __osFlashMsgBuf -.space 4 - -dlabel __osFlashVersion -.space 8 - -dlabel wMapTexName -.space 0x00000018 - -dlabel __osThreadSave -.space 0x000001B0 - -dlabel nuContWaitMesgQ -.space 0x00000018 - -dlabel __osContPifRam -.space 0x00000040 - -dlabel gCurrentEncounter -.space 0x00000BF8 - -dlabel __Dom2SpeedParam -.space 0x00000074 - -dlabel nuContStatus -.space 0x00000014 - -dlabel D_800B1B90 -.space 0x000001B0 - -dlabel nuContRmbCtl -.space 0x00000028 - -dlabel nuContData -.space 0x00000018 - -dlabel gCameras -.space 0x00002560 - -dlabel gCollisionData -.space 0x00000010 - -dlabel nuGfxMesgQ -.space 0x00000018 - -dlabel __CartRomHandle -.space 0x00000078 - -dlabel __osPiAccessQueue -.space 0x00000018 - -dlabel gEffectInstances -.space 0x00000180 - -dlabel __Dom1SpeedParam -.space 0x00000078 - -dlabel nuBootStack -.space 0x00002000 - -dlabel nuMainStack -.space 0x00002000 - -dlabel nuYieldBuf -.space 0x00000C10 - -dlabel auSynDriver -.space 0x00000030 - -dlabel D_800B91D0 -.space 0x00020000 - -dlabel gZoneCollisionData -.space 0x00000010 - -dlabel wMapHitName -.space 0x00000014 - -dlabel nuSiMgrMesgQ -.space 0x0000001C - -dlabel __osBaseTimer -.space 0x00000020 - -dlabel wMapShapeName -.space 0x00000018 - -dlabel nuAuHeap -.space 0x00000030 - -dlabel nuGfxTask -.space 0x00000370 - -dlabel gSaveGlobals -.space 0x00000080 - -dlabel wMapBgName -.space 0x00000018 - -dlabel __osPfsInodeCache -.space 0x00000100 - -dlabel rspbootUcodeBuffer -.space 0x00000800 - -dlabel __osEventStateTab -.space 0x00000080 - -dlabel __osPfsPifRam -.space 0x00000040 - -dlabel D_800DA040 -.space 0x00000400 - -dlabel nusched -.space 0x00000680 - -dlabel __osEepromTimerQ -.space 0x00000018 - -dlabel nuContPfs -.space 0x000001A0 - -dlabel nuSiMesgQ -.space 0x00000018 - -dlabel D_800DAC90 -.space 0x00000018 - -dlabel __osSiAccessQueue -.space 0x00000018 - -dlabel gCurrentSaveFile -.space 0x00001380 - -dlabel nuContDataMutexQ -.space 0x00000020 - -dlabel D_800DC060 -.space 4 - -dlabel gCurrentStagePtr -.space 4 - -dlabel gBattleState -.space 8 - -dlabel gBattleStatus -.space 0x00000460 - -dlabel gLastDrawBattleState -.space 4 - -dlabel D_800DC4D4 -.space 8 - -dlabel gBattleSubState -.space 4 - -dlabel D_800DC4E0 -.space 8 - -dlabel gCurrentBattleID -.space 4 - -dlabel gCurrentStageID -.space 4 - -dlabel D_800DC4F0 -.space 4 - -dlabel gOverrideBattlePtr -.space 4 - -dlabel D_800DC4F8 -.space 4 - -dlabel gCurrentBattlePtr -.space 4 diff --git a/ver/jp/asm/os/__osDisableInt.s b/ver/jp/asm/os/__osDisableInt.s deleted file mode 100644 index d9fe22f842..0000000000 --- a/ver/jp/asm/os/__osDisableInt.s +++ /dev/null @@ -1,42 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osDisableInt -/* 46740 8006B340 3C0A8009 */ lui $t2, %hi(__OSGlobalIntMask) -/* 46744 8006B344 254A5890 */ addiu $t2, $t2, %lo(__OSGlobalIntMask) -/* 46748 8006B348 8D4B0000 */ lw $t3, 0x0($t2) -/* 4674C 8006B34C 316BFF00 */ andi $t3, $t3, 0xFF00 -/* 46750 8006B350 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 46754 8006B354 2401FFFE */ addiu $at, $zero, -0x2 -/* 46758 8006B358 01014824 */ and $t1, $t0, $at -/* 4675C 8006B35C 40896000 */ mtc0 $t1, $12 # handwritten instruction -/* 46760 8006B360 31020001 */ andi $v0, $t0, 0x1 -/* 46764 8006B364 8D480000 */ lw $t0, 0x0($t2) -/* 46768 8006B368 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 4676C 8006B36C 110B000E */ beq $t0, $t3, .LJP_8006B3A8 -/* 46770 8006B370 3C0A8009 */ lui $t2, %hi(__osRunningThread) -/* 46774 8006B374 254A4640 */ addiu $t2, $t2, %lo(__osRunningThread) -/* 46778 8006B378 8D490118 */ lw $t1, 0x118($t2) -/* 4677C 8006B37C 312AFF00 */ andi $t2, $t1, 0xFF00 -/* 46780 8006B380 01485024 */ and $t2, $t2, $t0 -/* 46784 8006B384 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 46788 8006B388 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 4678C 8006B38C 01214824 */ and $t1, $t1, $at -/* 46790 8006B390 012A4825 */ or $t1, $t1, $t2 -/* 46794 8006B394 2401FFFE */ addiu $at, $zero, -0x2 -/* 46798 8006B398 01214824 */ and $t1, $t1, $at -/* 4679C 8006B39C 40896000 */ mtc0 $t1, $12 # handwritten instruction -/* 467A0 8006B3A0 00000000 */ nop -/* 467A4 8006B3A4 00000000 */ nop -.LJP_8006B3A8: -/* 467A8 8006B3A8 03E00008 */ jr $ra -/* 467AC 8006B3AC 00000000 */ nop diff --git a/ver/jp/asm/os/__osGetCause.s b/ver/jp/asm/os/__osGetCause.s deleted file mode 100644 index 3fc09fd4cf..0000000000 --- a/ver/jp/asm/os/__osGetCause.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osGetCause -/* 47A40 8006C640 40026800 */ mfc0 $v0, $13 # handwritten instruction -/* 47A44 8006C644 03E00008 */ jr $ra -/* 47A48 8006C648 00000000 */ nop -/* 47A4C 8006C64C 00000000 */ nop diff --git a/ver/jp/asm/os/__osGetSR.s b/ver/jp/asm/os/__osGetSR.s deleted file mode 100644 index 1dde530b9f..0000000000 --- a/ver/jp/asm/os/__osGetSR.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osGetSR -/* 47A50 8006C650 40026000 */ mfc0 $v0, $12 # handwritten instruction -/* 47A54 8006C654 03E00008 */ jr $ra -/* 47A58 8006C658 00000000 */ nop -/* 47A5C 8006C65C 00000000 */ nop diff --git a/ver/jp/asm/os/__osProbeTLB.s b/ver/jp/asm/os/__osProbeTLB.s deleted file mode 100644 index 4f6863934d..0000000000 --- a/ver/jp/asm/os/__osProbeTLB.s +++ /dev/null @@ -1,65 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osProbeTLB -/* 41C30 80066830 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 41C34 80066834 310900FF */ andi $t1, $t0, 0xFF -/* 41C38 80066838 2401E000 */ addiu $at, $zero, -0x2000 -/* 41C3C 8006683C 00815024 */ and $t2, $a0, $at -/* 41C40 80066840 012A4825 */ or $t1, $t1, $t2 -/* 41C44 80066844 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 41C48 80066848 00000000 */ nop -/* 41C4C 8006684C 00000000 */ nop -/* 41C50 80066850 00000000 */ nop -/* 41C54 80066854 42000008 */ tlbp # handwritten instruction -/* 41C58 80066858 00000000 */ nop -/* 41C5C 8006685C 00000000 */ nop -/* 41C60 80066860 400B0000 */ mfc0 $t3, $0 # handwritten instruction -/* 41C64 80066864 3C018000 */ lui $at, (0x80000000 >> 16) -/* 41C68 80066868 01615824 */ and $t3, $t3, $at -/* 41C6C 8006686C 1560001A */ bnez $t3, .LJP_800668D8 -/* 41C70 80066870 00000000 */ nop -/* 41C74 80066874 42000001 */ tlbr # handwritten instruction -/* 41C78 80066878 00000000 */ nop -/* 41C7C 8006687C 00000000 */ nop -/* 41C80 80066880 00000000 */ nop -/* 41C84 80066884 400B2800 */ mfc0 $t3, $5 # handwritten instruction -/* 41C88 80066888 216B2000 */ addi $t3, $t3, 0x2000 # handwritten instruction -/* 41C8C 8006688C 000B5842 */ srl $t3, $t3, 1 -/* 41C90 80066890 01646024 */ and $t4, $t3, $a0 -/* 41C94 80066894 15800004 */ bnez $t4, .LJP_800668A8 -/* 41C98 80066898 216BFFFF */ addi $t3, $t3, -0x1 # handwritten instruction -/* 41C9C 8006689C 40021000 */ mfc0 $v0, $2 # handwritten instruction -/* 41CA0 800668A0 10000002 */ b .LJP_800668AC -/* 41CA4 800668A4 00000000 */ nop -.LJP_800668A8: -/* 41CA8 800668A8 40021800 */ mfc0 $v0, $3 # handwritten instruction -.LJP_800668AC: -/* 41CAC 800668AC 304D0002 */ andi $t5, $v0, 0x2 -/* 41CB0 800668B0 11A00009 */ beqz $t5, .LJP_800668D8 -/* 41CB4 800668B4 00000000 */ nop -/* 41CB8 800668B8 3C013FFF */ lui $at, (0x3FFFFFC0 >> 16) -/* 41CBC 800668BC 3421FFC0 */ ori $at, $at, (0x3FFFFFC0 & 0xFFFF) -/* 41CC0 800668C0 00411024 */ and $v0, $v0, $at -/* 41CC4 800668C4 00021180 */ sll $v0, $v0, 6 -/* 41CC8 800668C8 008B6824 */ and $t5, $a0, $t3 -/* 41CCC 800668CC 004D1020 */ add $v0, $v0, $t5 # handwritten instruction -/* 41CD0 800668D0 10000002 */ b .LJP_800668DC -/* 41CD4 800668D4 00000000 */ nop -.LJP_800668D8: -/* 41CD8 800668D8 2402FFFF */ addiu $v0, $zero, -0x1 -.LJP_800668DC: -/* 41CDC 800668DC 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 41CE0 800668E0 03E00008 */ jr $ra -/* 41CE4 800668E4 00000000 */ nop -/* 41CE8 800668E8 00000000 */ nop -/* 41CEC 800668EC 00000000 */ nop diff --git a/ver/jp/asm/os/__osRestoreInt.s b/ver/jp/asm/os/__osRestoreInt.s deleted file mode 100644 index 13f611577e..0000000000 --- a/ver/jp/asm/os/__osRestoreInt.s +++ /dev/null @@ -1,21 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osRestoreInt -/* 467B0 8006B3B0 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 467B4 8006B3B4 01044025 */ or $t0, $t0, $a0 -/* 467B8 8006B3B8 40886000 */ mtc0 $t0, $12 # handwritten instruction -/* 467BC 8006B3BC 00000000 */ nop -/* 467C0 8006B3C0 00000000 */ nop -/* 467C4 8006B3C4 03E00008 */ jr $ra -/* 467C8 8006B3C8 00000000 */ nop -/* 467CC 8006B3CC 00000000 */ nop diff --git a/ver/jp/asm/os/__osSetCompare.s b/ver/jp/asm/os/__osSetCompare.s deleted file mode 100644 index 8b8f391095..0000000000 --- a/ver/jp/asm/os/__osSetCompare.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osSetCompare -/* 47A60 8006C660 40845800 */ mtc0 $a0, $11 # handwritten instruction -/* 47A64 8006C664 03E00008 */ jr $ra -/* 47A68 8006C668 00000000 */ nop -/* 47A6C 8006C66C 00000000 */ nop diff --git a/ver/jp/asm/os/__osSetWatchLo.s b/ver/jp/asm/os/__osSetWatchLo.s deleted file mode 100644 index e5e7d9faf5..0000000000 --- a/ver/jp/asm/os/__osSetWatchLo.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osSetWatchLo -/* 47A90 8006C690 40849000 */ mtc0 $a0, $18 # handwritten instruction -/* 47A94 8006C694 00000000 */ nop -/* 47A98 8006C698 03E00008 */ jr $ra -/* 47A9C 8006C69C 00000000 */ nop diff --git a/ver/jp/asm/os/bcmp.s b/ver/jp/asm/os/bcmp.s deleted file mode 100644 index ddd6d0158c..0000000000 --- a/ver/jp/asm/os/bcmp.s +++ /dev/null @@ -1,90 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel bcmp -/* 46C50 8006B850 00851026 */ xor $v0, $a0, $a1 -/* 46C54 8006B854 28C10010 */ slti $at, $a2, 0x10 -/* 46C58 8006B858 14200034 */ bnez $at, .LJP_8006B92C -/* 46C5C 8006B85C 00000000 */ nop -/* 46C60 8006B860 30420003 */ andi $v0, $v0, 0x3 -/* 46C64 8006B864 14400018 */ bnez $v0, .LJP_8006B8C8 -/* 46C68 8006B868 0004C023 */ negu $t8, $a0 -/* 46C6C 8006B86C 33180003 */ andi $t8, $t8, 0x3 -/* 46C70 8006B870 13000007 */ beqz $t8, .LJP_8006B890 -/* 46C74 8006B874 00D83023 */ subu $a2, $a2, $t8 -/* 46C78 8006B878 00601021 */ addu $v0, $v1, $zero -/* 46C7C 8006B87C 88820000 */ lwl $v0, 0x0($a0) -/* 46C80 8006B880 88A30000 */ lwl $v1, 0x0($a1) -/* 46C84 8006B884 00982021 */ addu $a0, $a0, $t8 -/* 46C88 8006B888 14430033 */ bne $v0, $v1, .LJP_8006B958 -/* 46C8C 8006B88C 00B82821 */ addu $a1, $a1, $t8 -.LJP_8006B890: -/* 46C90 8006B890 2401FFFC */ addiu $at, $zero, -0x4 -/* 46C94 8006B894 00C13824 */ and $a3, $a2, $at -/* 46C98 8006B898 10E00024 */ beqz $a3, .LJP_8006B92C -/* 46C9C 8006B89C 00C73023 */ subu $a2, $a2, $a3 -/* 46CA0 8006B8A0 00E43821 */ addu $a3, $a3, $a0 -.LJP_8006B8A4: -/* 46CA4 8006B8A4 8C820000 */ lw $v0, 0x0($a0) -/* 46CA8 8006B8A8 8CA30000 */ lw $v1, 0x0($a1) -/* 46CAC 8006B8AC 24840004 */ addiu $a0, $a0, 0x4 -/* 46CB0 8006B8B0 14430029 */ bne $v0, $v1, .LJP_8006B958 -/* 46CB4 8006B8B4 24A50004 */ addiu $a1, $a1, 0x4 -/* 46CB8 8006B8B8 1487FFFA */ bne $a0, $a3, .LJP_8006B8A4 -/* 46CBC 8006B8BC 00000000 */ nop -/* 46CC0 8006B8C0 1000001A */ b .LJP_8006B92C -/* 46CC4 8006B8C4 00000000 */ nop -.LJP_8006B8C8: -/* 46CC8 8006B8C8 00053823 */ negu $a3, $a1 -/* 46CCC 8006B8CC 30E70003 */ andi $a3, $a3, 0x3 -/* 46CD0 8006B8D0 10E00009 */ beqz $a3, .LJP_8006B8F8 -/* 46CD4 8006B8D4 00C73023 */ subu $a2, $a2, $a3 -/* 46CD8 8006B8D8 00E43821 */ addu $a3, $a3, $a0 -.LJP_8006B8DC: -/* 46CDC 8006B8DC 90820000 */ lbu $v0, 0x0($a0) -/* 46CE0 8006B8E0 90A30000 */ lbu $v1, 0x0($a1) -/* 46CE4 8006B8E4 24840001 */ addiu $a0, $a0, 0x1 -/* 46CE8 8006B8E8 1443001B */ bne $v0, $v1, .LJP_8006B958 -/* 46CEC 8006B8EC 24A50001 */ addiu $a1, $a1, 0x1 -/* 46CF0 8006B8F0 1487FFFA */ bne $a0, $a3, .LJP_8006B8DC -/* 46CF4 8006B8F4 00000000 */ nop -.LJP_8006B8F8: -/* 46CF8 8006B8F8 2401FFFC */ addiu $at, $zero, -0x4 -/* 46CFC 8006B8FC 00C13824 */ and $a3, $a2, $at -/* 46D00 8006B900 10E0000A */ beqz $a3, .LJP_8006B92C -/* 46D04 8006B904 00C73023 */ subu $a2, $a2, $a3 -/* 46D08 8006B908 00E43821 */ addu $a3, $a3, $a0 -.LJP_8006B90C: -/* 46D0C 8006B90C 88820000 */ lwl $v0, 0x0($a0) -/* 46D10 8006B910 98820003 */ lwr $v0, 0x3($a0) -/* 46D14 8006B914 8CA30000 */ lw $v1, 0x0($a1) -/* 46D18 8006B918 24840004 */ addiu $a0, $a0, 0x4 -/* 46D1C 8006B91C 1443000E */ bne $v0, $v1, .LJP_8006B958 -/* 46D20 8006B920 24A50004 */ addiu $a1, $a1, 0x4 -/* 46D24 8006B924 1487FFF9 */ bne $a0, $a3, .LJP_8006B90C -/* 46D28 8006B928 00000000 */ nop -.LJP_8006B92C: -/* 46D2C 8006B92C 18C00008 */ blez $a2, .LJP_8006B950 -/* 46D30 8006B930 00C43821 */ addu $a3, $a2, $a0 -.LJP_8006B934: -/* 46D34 8006B934 90820000 */ lbu $v0, 0x0($a0) -/* 46D38 8006B938 90A30000 */ lbu $v1, 0x0($a1) -/* 46D3C 8006B93C 24840001 */ addiu $a0, $a0, 0x1 -/* 46D40 8006B940 14430005 */ bne $v0, $v1, .LJP_8006B958 -/* 46D44 8006B944 24A50001 */ addiu $a1, $a1, 0x1 -/* 46D48 8006B948 1487FFFA */ bne $a0, $a3, .LJP_8006B934 -/* 46D4C 8006B94C 00000000 */ nop -.LJP_8006B950: -/* 46D50 8006B950 03E00008 */ jr $ra -/* 46D54 8006B954 00001021 */ addu $v0, $zero, $zero -.LJP_8006B958: -/* 46D58 8006B958 03E00008 */ jr $ra -/* 46D5C 8006B95C 24020001 */ addiu $v0, $zero, 0x1 diff --git a/ver/jp/asm/os/bcopy.s b/ver/jp/asm/os/bcopy.s deleted file mode 100644 index 4d470e42d1..0000000000 --- a/ver/jp/asm/os/bcopy.s +++ /dev/null @@ -1,232 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel bcopy -/* 3FA20 80064620 10C0001B */ beqz $a2, .LJP_80064690 -/* 3FA24 80064624 00A03821 */ addu $a3, $a1, $zero -/* 3FA28 80064628 10850019 */ beq $a0, $a1, .LJP_80064690 -/* 3FA2C 8006462C 00000000 */ nop -/* 3FA30 80064630 00A4082A */ slt $at, $a1, $a0 -/* 3FA34 80064634 14200007 */ bnez $at, .LJP_80064654 -/* 3FA38 80064638 00000000 */ nop -/* 3FA3C 8006463C 00861020 */ add $v0, $a0, $a2 # handwritten instruction -/* 3FA40 80064640 00A2082A */ slt $at, $a1, $v0 -/* 3FA44 80064644 10200003 */ beqz $at, .LJP_80064654 -/* 3FA48 80064648 00000000 */ nop -/* 3FA4C 8006464C 1000005C */ b .LJP_800647C0 -/* 3FA50 80064650 00000000 */ nop -.LJP_80064654: -/* 3FA54 80064654 28C10010 */ slti $at, $a2, 0x10 -/* 3FA58 80064658 14200005 */ bnez $at, .LJP_80064670 -/* 3FA5C 8006465C 00000000 */ nop -/* 3FA60 80064660 30820003 */ andi $v0, $a0, 0x3 -/* 3FA64 80064664 30A30003 */ andi $v1, $a1, 0x3 -/* 3FA68 80064668 1043000B */ beq $v0, $v1, .LJP_80064698 -/* 3FA6C 8006466C 00000000 */ nop -.LJP_80064670: -/* 3FA70 80064670 10C00007 */ beqz $a2, .LJP_80064690 -/* 3FA74 80064674 00000000 */ nop -/* 3FA78 80064678 00861821 */ addu $v1, $a0, $a2 -.LJP_8006467C: -/* 3FA7C 8006467C 80820000 */ lb $v0, 0x0($a0) -/* 3FA80 80064680 24840001 */ addiu $a0, $a0, 0x1 -/* 3FA84 80064684 A0A20000 */ sb $v0, 0x0($a1) -/* 3FA88 80064688 1483FFFC */ bne $a0, $v1, .LJP_8006467C -/* 3FA8C 8006468C 24A50001 */ addiu $a1, $a1, 0x1 -.LJP_80064690: -/* 3FA90 80064690 03E00008 */ jr $ra -/* 3FA94 80064694 00E01021 */ addu $v0, $a3, $zero -.LJP_80064698: -/* 3FA98 80064698 1040001A */ beqz $v0, .LJP_80064704 -/* 3FA9C 8006469C 00000000 */ nop -/* 3FAA0 800646A0 24010001 */ addiu $at, $zero, 0x1 -/* 3FAA4 800646A4 10410010 */ beq $v0, $at, .LJP_800646E8 -/* 3FAA8 800646A8 00000000 */ nop -/* 3FAAC 800646AC 24010002 */ addiu $at, $zero, 0x2 -/* 3FAB0 800646B0 10410007 */ beq $v0, $at, .LJP_800646D0 -/* 3FAB4 800646B4 00000000 */ nop -/* 3FAB8 800646B8 80820000 */ lb $v0, 0x0($a0) -/* 3FABC 800646BC 24840001 */ addiu $a0, $a0, 0x1 -/* 3FAC0 800646C0 A0A20000 */ sb $v0, 0x0($a1) -/* 3FAC4 800646C4 24A50001 */ addiu $a1, $a1, 0x1 -/* 3FAC8 800646C8 1000000E */ b .LJP_80064704 -/* 3FACC 800646CC 24C6FFFF */ addiu $a2, $a2, -0x1 -.LJP_800646D0: -/* 3FAD0 800646D0 84820000 */ lh $v0, 0x0($a0) -/* 3FAD4 800646D4 24840002 */ addiu $a0, $a0, 0x2 -/* 3FAD8 800646D8 A4A20000 */ sh $v0, 0x0($a1) -/* 3FADC 800646DC 24A50002 */ addiu $a1, $a1, 0x2 -/* 3FAE0 800646E0 10000008 */ b .LJP_80064704 -/* 3FAE4 800646E4 24C6FFFE */ addiu $a2, $a2, -0x2 -.LJP_800646E8: -/* 3FAE8 800646E8 80820000 */ lb $v0, 0x0($a0) -/* 3FAEC 800646EC 84830001 */ lh $v1, 0x1($a0) -/* 3FAF0 800646F0 24840003 */ addiu $a0, $a0, 0x3 -/* 3FAF4 800646F4 A0A20000 */ sb $v0, 0x0($a1) -/* 3FAF8 800646F8 A4A30001 */ sh $v1, 0x1($a1) -/* 3FAFC 800646FC 24A50003 */ addiu $a1, $a1, 0x3 -/* 3FB00 80064700 24C6FFFD */ addiu $a2, $a2, -0x3 -.LJP_80064704: -/* 3FB04 80064704 28C10020 */ slti $at, $a2, 0x20 -/* 3FB08 80064708 14200015 */ bnez $at, .LJP_80064760 -/* 3FB0C 8006470C 00000000 */ nop -/* 3FB10 80064710 8C820000 */ lw $v0, 0x0($a0) -/* 3FB14 80064714 8C830004 */ lw $v1, 0x4($a0) -/* 3FB18 80064718 8C880008 */ lw $t0, 0x8($a0) -/* 3FB1C 8006471C 8C89000C */ lw $t1, 0xC($a0) -/* 3FB20 80064720 8C8A0010 */ lw $t2, 0x10($a0) -/* 3FB24 80064724 8C8B0014 */ lw $t3, 0x14($a0) -/* 3FB28 80064728 8C8C0018 */ lw $t4, 0x18($a0) -/* 3FB2C 8006472C 8C8D001C */ lw $t5, 0x1C($a0) -/* 3FB30 80064730 24840020 */ addiu $a0, $a0, 0x20 -/* 3FB34 80064734 ACA20000 */ sw $v0, 0x0($a1) -/* 3FB38 80064738 ACA30004 */ sw $v1, 0x4($a1) -/* 3FB3C 8006473C ACA80008 */ sw $t0, 0x8($a1) -/* 3FB40 80064740 ACA9000C */ sw $t1, 0xC($a1) -/* 3FB44 80064744 ACAA0010 */ sw $t2, 0x10($a1) -/* 3FB48 80064748 ACAB0014 */ sw $t3, 0x14($a1) -/* 3FB4C 8006474C ACAC0018 */ sw $t4, 0x18($a1) -/* 3FB50 80064750 ACAD001C */ sw $t5, 0x1C($a1) -/* 3FB54 80064754 24A50020 */ addiu $a1, $a1, 0x20 -/* 3FB58 80064758 1000FFEA */ b .LJP_80064704 -/* 3FB5C 8006475C 24C6FFE0 */ addiu $a2, $a2, -0x20 -.LJP_80064760: -/* 3FB60 80064760 28C10010 */ slti $at, $a2, 0x10 -/* 3FB64 80064764 1420000D */ bnez $at, .LJP_8006479C -/* 3FB68 80064768 00000000 */ nop -/* 3FB6C 8006476C 8C820000 */ lw $v0, 0x0($a0) -/* 3FB70 80064770 8C830004 */ lw $v1, 0x4($a0) -/* 3FB74 80064774 8C880008 */ lw $t0, 0x8($a0) -/* 3FB78 80064778 8C89000C */ lw $t1, 0xC($a0) -/* 3FB7C 8006477C 24840010 */ addiu $a0, $a0, 0x10 -/* 3FB80 80064780 ACA20000 */ sw $v0, 0x0($a1) -/* 3FB84 80064784 ACA30004 */ sw $v1, 0x4($a1) -/* 3FB88 80064788 ACA80008 */ sw $t0, 0x8($a1) -/* 3FB8C 8006478C ACA9000C */ sw $t1, 0xC($a1) -/* 3FB90 80064790 24A50010 */ addiu $a1, $a1, 0x10 -/* 3FB94 80064794 1000FFF2 */ b .LJP_80064760 -/* 3FB98 80064798 24C6FFF0 */ addiu $a2, $a2, -0x10 -.LJP_8006479C: -/* 3FB9C 8006479C 28C10004 */ slti $at, $a2, 0x4 -/* 3FBA0 800647A0 1420FFB3 */ bnez $at, .LJP_80064670 -/* 3FBA4 800647A4 00000000 */ nop -/* 3FBA8 800647A8 8C820000 */ lw $v0, 0x0($a0) -/* 3FBAC 800647AC 24840004 */ addiu $a0, $a0, 0x4 -/* 3FBB0 800647B0 ACA20000 */ sw $v0, 0x0($a1) -/* 3FBB4 800647B4 24A50004 */ addiu $a1, $a1, 0x4 -/* 3FBB8 800647B8 1000FFF8 */ b .LJP_8006479C -/* 3FBBC 800647BC 24C6FFFC */ addiu $a2, $a2, -0x4 -.LJP_800647C0: -/* 3FBC0 800647C0 00862020 */ add $a0, $a0, $a2 # handwritten instruction -/* 3FBC4 800647C4 00A62820 */ add $a1, $a1, $a2 # handwritten instruction -/* 3FBC8 800647C8 28C10010 */ slti $at, $a2, 0x10 -/* 3FBCC 800647CC 14200005 */ bnez $at, .LJP_800647E4 -/* 3FBD0 800647D0 00000000 */ nop -/* 3FBD4 800647D4 30820003 */ andi $v0, $a0, 0x3 -/* 3FBD8 800647D8 30A30003 */ andi $v1, $a1, 0x3 -/* 3FBDC 800647DC 1043000D */ beq $v0, $v1, .LJP_80064814 -/* 3FBE0 800647E0 00000000 */ nop -.LJP_800647E4: -/* 3FBE4 800647E4 10C0FFAA */ beqz $a2, .LJP_80064690 -/* 3FBE8 800647E8 00000000 */ nop -/* 3FBEC 800647EC 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3FBF0 800647F0 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3FBF4 800647F4 00861823 */ subu $v1, $a0, $a2 -.LJP_800647F8: -/* 3FBF8 800647F8 80820000 */ lb $v0, 0x0($a0) -/* 3FBFC 800647FC 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3FC00 80064800 A0A20000 */ sb $v0, 0x0($a1) -/* 3FC04 80064804 1483FFFC */ bne $a0, $v1, .LJP_800647F8 -/* 3FC08 80064808 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3FC0C 8006480C 03E00008 */ jr $ra -/* 3FC10 80064810 00E01021 */ addu $v0, $a3, $zero -.LJP_80064814: -/* 3FC14 80064814 1040001A */ beqz $v0, .LJP_80064880 -/* 3FC18 80064818 00000000 */ nop -/* 3FC1C 8006481C 24010003 */ addiu $at, $zero, 0x3 -/* 3FC20 80064820 10410010 */ beq $v0, $at, .LJP_80064864 -/* 3FC24 80064824 00000000 */ nop -/* 3FC28 80064828 24010002 */ addiu $at, $zero, 0x2 -/* 3FC2C 8006482C 10410007 */ beq $v0, $at, .LJP_8006484C -/* 3FC30 80064830 00000000 */ nop -/* 3FC34 80064834 8082FFFF */ lb $v0, -0x1($a0) -/* 3FC38 80064838 2484FFFF */ addiu $a0, $a0, -0x1 -/* 3FC3C 8006483C A0A2FFFF */ sb $v0, -0x1($a1) -/* 3FC40 80064840 24A5FFFF */ addiu $a1, $a1, -0x1 -/* 3FC44 80064844 1000000E */ b .LJP_80064880 -/* 3FC48 80064848 24C6FFFF */ addiu $a2, $a2, -0x1 -.LJP_8006484C: -/* 3FC4C 8006484C 8482FFFE */ lh $v0, -0x2($a0) -/* 3FC50 80064850 2484FFFE */ addiu $a0, $a0, -0x2 -/* 3FC54 80064854 A4A2FFFE */ sh $v0, -0x2($a1) -/* 3FC58 80064858 24A5FFFE */ addiu $a1, $a1, -0x2 -/* 3FC5C 8006485C 10000008 */ b .LJP_80064880 -/* 3FC60 80064860 24C6FFFE */ addiu $a2, $a2, -0x2 -.LJP_80064864: -/* 3FC64 80064864 8082FFFF */ lb $v0, -0x1($a0) -/* 3FC68 80064868 8483FFFD */ lh $v1, -0x3($a0) -/* 3FC6C 8006486C 2484FFFD */ addiu $a0, $a0, -0x3 -/* 3FC70 80064870 A0A2FFFF */ sb $v0, -0x1($a1) -/* 3FC74 80064874 A4A3FFFD */ sh $v1, -0x3($a1) -/* 3FC78 80064878 24A5FFFD */ addiu $a1, $a1, -0x3 -/* 3FC7C 8006487C 24C6FFFD */ addiu $a2, $a2, -0x3 -.LJP_80064880: -/* 3FC80 80064880 28C10020 */ slti $at, $a2, 0x20 -/* 3FC84 80064884 14200015 */ bnez $at, .LJP_800648DC -/* 3FC88 80064888 00000000 */ nop -/* 3FC8C 8006488C 8C82FFFC */ lw $v0, -0x4($a0) -/* 3FC90 80064890 8C83FFF8 */ lw $v1, -0x8($a0) -/* 3FC94 80064894 8C88FFF4 */ lw $t0, -0xC($a0) -/* 3FC98 80064898 8C89FFF0 */ lw $t1, -0x10($a0) -/* 3FC9C 8006489C 8C8AFFEC */ lw $t2, -0x14($a0) -/* 3FCA0 800648A0 8C8BFFE8 */ lw $t3, -0x18($a0) -/* 3FCA4 800648A4 8C8CFFE4 */ lw $t4, -0x1C($a0) -/* 3FCA8 800648A8 8C8DFFE0 */ lw $t5, -0x20($a0) -/* 3FCAC 800648AC 2484FFE0 */ addiu $a0, $a0, -0x20 -/* 3FCB0 800648B0 ACA2FFFC */ sw $v0, -0x4($a1) -/* 3FCB4 800648B4 ACA3FFF8 */ sw $v1, -0x8($a1) -/* 3FCB8 800648B8 ACA8FFF4 */ sw $t0, -0xC($a1) -/* 3FCBC 800648BC ACA9FFF0 */ sw $t1, -0x10($a1) -/* 3FCC0 800648C0 ACAAFFEC */ sw $t2, -0x14($a1) -/* 3FCC4 800648C4 ACABFFE8 */ sw $t3, -0x18($a1) -/* 3FCC8 800648C8 ACACFFE4 */ sw $t4, -0x1C($a1) -/* 3FCCC 800648CC ACADFFE0 */ sw $t5, -0x20($a1) -/* 3FCD0 800648D0 24A5FFE0 */ addiu $a1, $a1, -0x20 -/* 3FCD4 800648D4 1000FFEA */ b .LJP_80064880 -/* 3FCD8 800648D8 24C6FFE0 */ addiu $a2, $a2, -0x20 -.LJP_800648DC: -/* 3FCDC 800648DC 28C10010 */ slti $at, $a2, 0x10 -/* 3FCE0 800648E0 1420000D */ bnez $at, .LJP_80064918 -/* 3FCE4 800648E4 00000000 */ nop -/* 3FCE8 800648E8 8C82FFFC */ lw $v0, -0x4($a0) -/* 3FCEC 800648EC 8C83FFF8 */ lw $v1, -0x8($a0) -/* 3FCF0 800648F0 8C88FFF4 */ lw $t0, -0xC($a0) -/* 3FCF4 800648F4 8C89FFF0 */ lw $t1, -0x10($a0) -/* 3FCF8 800648F8 2484FFF0 */ addiu $a0, $a0, -0x10 -/* 3FCFC 800648FC ACA2FFFC */ sw $v0, -0x4($a1) -/* 3FD00 80064900 ACA3FFF8 */ sw $v1, -0x8($a1) -/* 3FD04 80064904 ACA8FFF4 */ sw $t0, -0xC($a1) -/* 3FD08 80064908 ACA9FFF0 */ sw $t1, -0x10($a1) -/* 3FD0C 8006490C 24A5FFF0 */ addiu $a1, $a1, -0x10 -/* 3FD10 80064910 1000FFF2 */ b .LJP_800648DC -/* 3FD14 80064914 24C6FFF0 */ addiu $a2, $a2, -0x10 -.LJP_80064918: -/* 3FD18 80064918 28C10004 */ slti $at, $a2, 0x4 -/* 3FD1C 8006491C 1420FFB1 */ bnez $at, .LJP_800647E4 -/* 3FD20 80064920 00000000 */ nop -/* 3FD24 80064924 8C82FFFC */ lw $v0, -0x4($a0) -/* 3FD28 80064928 2484FFFC */ addiu $a0, $a0, -0x4 -/* 3FD2C 8006492C ACA2FFFC */ sw $v0, -0x4($a1) -/* 3FD30 80064930 24A5FFFC */ addiu $a1, $a1, -0x4 -/* 3FD34 80064934 1000FFF8 */ b .LJP_80064918 -/* 3FD38 80064938 24C6FFFC */ addiu $a2, $a2, -0x4 -/* 3FD3C 8006493C 00000000 */ nop diff --git a/ver/jp/asm/os/bzero.s b/ver/jp/asm/os/bzero.s deleted file mode 100644 index 3dbe7a096b..0000000000 --- a/ver/jp/asm/os/bzero.s +++ /dev/null @@ -1,59 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel bzero -/* 3FD40 80064940 00041823 */ negu $v1, $a0 -/* 3FD44 80064944 28A1000C */ slti $at, $a1, 0xC -/* 3FD48 80064948 1420001D */ bnez $at, .LJP_800649C0 -/* 3FD4C 8006494C 00000000 */ nop -/* 3FD50 80064950 30630003 */ andi $v1, $v1, 0x3 -/* 3FD54 80064954 10600003 */ beqz $v1, .LJP_80064964 -/* 3FD58 80064958 00A32823 */ subu $a1, $a1, $v1 -/* 3FD5C 8006495C A8800000 */ swl $zero, 0x0($a0) -/* 3FD60 80064960 00832021 */ addu $a0, $a0, $v1 -.LJP_80064964: -/* 3FD64 80064964 2401FFE0 */ addiu $at, $zero, -0x20 -/* 3FD68 80064968 00A13824 */ and $a3, $a1, $at -/* 3FD6C 8006496C 10E0000C */ beqz $a3, .LJP_800649A0 -/* 3FD70 80064970 00A72823 */ subu $a1, $a1, $a3 -/* 3FD74 80064974 00E43821 */ addu $a3, $a3, $a0 -.LJP_80064978: -/* 3FD78 80064978 AC800000 */ sw $zero, 0x0($a0) -/* 3FD7C 8006497C AC800004 */ sw $zero, 0x4($a0) -/* 3FD80 80064980 AC800008 */ sw $zero, 0x8($a0) -/* 3FD84 80064984 AC80000C */ sw $zero, 0xC($a0) -/* 3FD88 80064988 24840020 */ addiu $a0, $a0, 0x20 -/* 3FD8C 8006498C AC80FFF0 */ sw $zero, -0x10($a0) -/* 3FD90 80064990 AC80FFF4 */ sw $zero, -0xC($a0) -/* 3FD94 80064994 AC80FFF8 */ sw $zero, -0x8($a0) -/* 3FD98 80064998 1487FFF7 */ bne $a0, $a3, .LJP_80064978 -/* 3FD9C 8006499C AC80FFFC */ sw $zero, -0x4($a0) -.LJP_800649A0: -/* 3FDA0 800649A0 2401FFFC */ addiu $at, $zero, -0x4 -/* 3FDA4 800649A4 00A13824 */ and $a3, $a1, $at -/* 3FDA8 800649A8 10E00005 */ beqz $a3, .LJP_800649C0 -/* 3FDAC 800649AC 00A72823 */ subu $a1, $a1, $a3 -/* 3FDB0 800649B0 00E43821 */ addu $a3, $a3, $a0 -.LJP_800649B4: -/* 3FDB4 800649B4 24840004 */ addiu $a0, $a0, 0x4 -/* 3FDB8 800649B8 1487FFFE */ bne $a0, $a3, .LJP_800649B4 -/* 3FDBC 800649BC AC80FFFC */ sw $zero, -0x4($a0) -.LJP_800649C0: -/* 3FDC0 800649C0 18A00005 */ blez $a1, .LJP_800649D8 -/* 3FDC4 800649C4 00000000 */ nop -/* 3FDC8 800649C8 00A42821 */ addu $a1, $a1, $a0 -.LJP_800649CC: -/* 3FDCC 800649CC 24840001 */ addiu $a0, $a0, 0x1 -/* 3FDD0 800649D0 1485FFFE */ bne $a0, $a1, .LJP_800649CC -/* 3FDD4 800649D4 A080FFFF */ sb $zero, -0x1($a0) -.LJP_800649D8: -/* 3FDD8 800649D8 03E00008 */ jr $ra -/* 3FDDC 800649DC 00000000 */ nop diff --git a/ver/jp/asm/os/decode_yay0.s b/ver/jp/asm/os/decode_yay0.s deleted file mode 100644 index a0efce2fd3..0000000000 --- a/ver/jp/asm/os/decode_yay0.s +++ /dev/null @@ -1,63 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel decode_yay0 -/* 4A1D0 8006EDD0 8C980004 */ lw $t8, 0x4($a0) -/* 4A1D4 8006EDD4 8C870008 */ lw $a3, 0x8($a0) -/* 4A1D8 8006EDD8 8C99000C */ lw $t9, 0xC($a0) -/* 4A1DC 8006EDDC 0000302D */ daddu $a2, $zero, $zero -/* 4A1E0 8006EDE0 0305C020 */ add $t8, $t8, $a1 # handwritten instruction -/* 4A1E4 8006EDE4 00E43820 */ add $a3, $a3, $a0 # handwritten instruction -/* 4A1E8 8006EDE8 0324C820 */ add $t9, $t9, $a0 # handwritten instruction -/* 4A1EC 8006EDEC 20840010 */ addi $a0, $a0, 0x10 # handwritten instruction -.LJP_8006EDF0: -/* 4A1F0 8006EDF0 14C00004 */ bnez $a2, .LJP_8006EE04 -/* 4A1F4 8006EDF4 00000000 */ nop -/* 4A1F8 8006EDF8 8C880000 */ lw $t0, 0x0($a0) -/* 4A1FC 8006EDFC 24060020 */ addiu $a2, $zero, 0x20 -/* 4A200 8006EE00 20840004 */ addi $a0, $a0, 0x4 # handwritten instruction -.LJP_8006EE04: -/* 4A204 8006EE04 0100482A */ slt $t1, $t0, $zero -/* 4A208 8006EE08 11200006 */ beqz $t1, .LJP_8006EE24 -/* 4A20C 8006EE0C 00000000 */ nop -/* 4A210 8006EE10 832A0000 */ lb $t2, 0x0($t9) -/* 4A214 8006EE14 23390001 */ addi $t9, $t9, 0x1 # handwritten instruction -/* 4A218 8006EE18 A0AA0000 */ sb $t2, 0x0($a1) -/* 4A21C 8006EE1C 1000000E */ b .LJP_8006EE58 -/* 4A220 8006EE20 20A50001 */ addi $a1, $a1, 0x1 # handwritten instruction -.LJP_8006EE24: -/* 4A224 8006EE24 94EA0000 */ lhu $t2, 0x0($a3) -/* 4A228 8006EE28 20E70002 */ addi $a3, $a3, 0x2 # handwritten instruction -/* 4A22C 8006EE2C 000A5B02 */ srl $t3, $t2, 12 -/* 4A230 8006EE30 314A0FFF */ andi $t2, $t2, 0xFFF -/* 4A234 8006EE34 1160000D */ beqz $t3, .LJP_8006EE6C -/* 4A238 8006EE38 00AA4822 */ sub $t1, $a1, $t2 -/* 4A23C 8006EE3C 216B0002 */ addi $t3, $t3, 0x2 # handwritten instruction -.LJP_8006EE40: -/* 4A240 8006EE40 812AFFFF */ lb $t2, -0x1($t1) -/* 4A244 8006EE44 216BFFFF */ addi $t3, $t3, -0x1 # handwritten instruction -/* 4A248 8006EE48 21290001 */ addi $t1, $t1, 0x1 # handwritten instruction -/* 4A24C 8006EE4C A0AA0000 */ sb $t2, 0x0($a1) -/* 4A250 8006EE50 1560FFFB */ bnez $t3, .LJP_8006EE40 -/* 4A254 8006EE54 20A50001 */ addi $a1, $a1, 0x1 # handwritten instruction -.LJP_8006EE58: -/* 4A258 8006EE58 00084040 */ sll $t0, $t0, 1 -/* 4A25C 8006EE5C 14B8FFE4 */ bne $a1, $t8, .LJP_8006EDF0 -/* 4A260 8006EE60 20C6FFFF */ addi $a2, $a2, -0x1 # handwritten instruction -/* 4A264 8006EE64 03E00008 */ jr $ra -/* 4A268 8006EE68 00000000 */ nop -.LJP_8006EE6C: -/* 4A26C 8006EE6C 932B0000 */ lbu $t3, 0x0($t9) -/* 4A270 8006EE70 23390001 */ addi $t9, $t9, 0x1 # handwritten instruction -/* 4A274 8006EE74 1000FFF2 */ b .LJP_8006EE40 -/* 4A278 8006EE78 216B0012 */ addi $t3, $t3, 0x12 # handwritten instruction -/* 4A27C 8006EE7C 00000000 */ nop diff --git a/ver/jp/asm/os/exceptasm.s b/ver/jp/asm/os/exceptasm.s deleted file mode 100644 index 9db4092f03..0000000000 --- a/ver/jp/asm/os/exceptasm.s +++ /dev/null @@ -1,746 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .rodata - -__osIntOffTable: -/* 75160 80099D60 */ .byte 0x00 -/* 75161 80099D61 */ .byte 0x14 -/* 75162 80099D62 */ .byte 0x18 -/* 75163 80099D63 */ .byte 0x18 -/* 75164 80099D64 */ .byte 0x1C -/* 75165 80099D65 */ .byte 0x1C -/* 75166 80099D66 */ .byte 0x1C -/* 75167 80099D67 */ .byte 0x1C -/* 75168 80099D68 */ .byte 0x20 -/* 75169 80099D69 */ .byte 0x20 -/* 7516A 80099D6A */ .byte 0x20 -/* 7516B 80099D6B */ .byte 0x20 -/* 7516C 80099D6C */ .byte 0x20 -/* 7516D 80099D6D */ .byte 0x20 -/* 7516E 80099D6E */ .byte 0x20 -/* 7516F 80099D6F */ .byte 0x20 -/* 75170 80099D70 */ .byte 0x00 -/* 75171 80099D71 */ .byte 0x04 -/* 75172 80099D72 */ .byte 0x08 -/* 75173 80099D73 */ .byte 0x08 -/* 75174 80099D74 */ .byte 0x0C -/* 75175 80099D75 */ .byte 0x0C -/* 75176 80099D76 */ .byte 0x0C -/* 75177 80099D77 */ .byte 0x0C -/* 75178 80099D78 */ .byte 0x10 -/* 75179 80099D79 */ .byte 0x10 -/* 7517A 80099D7A */ .byte 0x10 -/* 7517B 80099D7B */ .byte 0x10 -/* 7517C 80099D7C */ .byte 0x10 -/* 7517D 80099D7D */ .byte 0x10 -/* 7517E 80099D7E */ .byte 0x10 -/* 7517F 80099D7F */ .byte 0x10 - -.align 3 -__osIntTable: -/* 75180 80099D80 8006AEE0 */ .word .LJP_8006AEE0 -/* 75184 80099D84 8006AEA4 */ .word .LJP_8006AEA4 -/* 75188 80099D88 8006AE80 */ .word .LJP_8006AE80 -/* 7518C 80099D8C 8006ACA8 */ .word .LJP_8006ACA8 -/* 75190 80099D90 8006AC60 */ .word .LJP_8006AC60 -/* 75194 80099D94 8006AE1C */ .word .LJP_8006AE1C -/* 75198 80099D98 8006AC24 */ .word .LJP_8006AC24 -/* 7519C 80099D9C 8006AC30 */ .word .LJP_8006AC30 -/* 751A0 80099DA0 8006AC3C */ .word .LJP_8006AC3C -/* 751A4 80099DA4 00000000 */ .word 0x00000000 -/* 751A8 80099DA8 00000000 */ .word 0x00000000 -/* 751AC 80099DAC 00000000 */ .word 0x00000000 -.size __osIntTable, . - __osIntTable - -.section .data - -__osHwIntTable: - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 - .word 0x00000000 -.size __osHwIntTable, . - __osHwIntTable - -__osPiIntTable: - .word 0x00000000 - .word 0x00000000 -.size __osPiIntTable, . - __osPiIntTable - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osExceptionPreamble -/* 45DD0 8006A9D0 3C1A8007 */ lui $k0, %hi(osExceptionPreamble) # handwritten instruction -/* 45DD4 8006A9D4 275AA9E0 */ addiu $k0, $k0, %lo(osExceptionPreamble) # handwritten instruction -/* 45DD8 8006A9D8 03400008 */ jr $k0 -/* 45DDC 8006A9DC 00000000 */ nop - -# Handwritten function -glabel osExceptionPreamble -/* 45DE0 8006A9E0 3C1A800B */ lui $k0, %hi(__osThreadSave) # handwritten instruction -/* 45DE4 8006A9E4 275A0CE8 */ addiu $k0, $k0, %lo(__osThreadSave) # handwritten instruction -/* 45DE8 8006A9E8 FF410020 */ sd $at, 0x20($k0) # handwritten instruction -/* 45DEC 8006A9EC 401B6000 */ mfc0 $k1, $12 # handwritten instruction -/* 45DF0 8006A9F0 AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction -/* 45DF4 8006A9F4 2401FFFC */ addiu $at, $zero, -0x4 -/* 45DF8 8006A9F8 0361D824 */ and $k1, $k1, $at -/* 45DFC 8006A9FC 409B6000 */ mtc0 $k1, $12 # handwritten instruction -/* 45E00 8006AA00 FF480058 */ sd $t0, 0x58($k0) # handwritten instruction -/* 45E04 8006AA04 FF490060 */ sd $t1, 0x60($k0) # handwritten instruction -/* 45E08 8006AA08 FF4A0068 */ sd $t2, 0x68($k0) # handwritten instruction -/* 45E0C 8006AA0C AF400018 */ sw $zero, 0x18($k0) # handwritten instruction -/* 45E10 8006AA10 40086800 */ mfc0 $t0, $13 # handwritten instruction -/* 45E14 8006AA14 03404021 */ addu $t0, $k0, $zero -/* 45E18 8006AA18 3C1A8009 */ lui $k0, %hi(__osRunningThread) # handwritten instruction -/* 45E1C 8006AA1C 8F5A4640 */ lw $k0, %lo(__osRunningThread)($k0) # handwritten instruction -/* 45E20 8006AA20 DD090020 */ ld $t1, 0x20($t0) -/* 45E24 8006AA24 FF490020 */ sd $t1, 0x20($k0) # handwritten instruction -/* 45E28 8006AA28 DD090118 */ ld $t1, 0x118($t0) -/* 45E2C 8006AA2C FF490118 */ sd $t1, 0x118($k0) # handwritten instruction -/* 45E30 8006AA30 DD090058 */ ld $t1, 0x58($t0) -/* 45E34 8006AA34 FF490058 */ sd $t1, 0x58($k0) # handwritten instruction -/* 45E38 8006AA38 DD090060 */ ld $t1, 0x60($t0) -/* 45E3C 8006AA3C FF490060 */ sd $t1, 0x60($k0) # handwritten instruction -/* 45E40 8006AA40 DD090068 */ ld $t1, 0x68($t0) -/* 45E44 8006AA44 FF490068 */ sd $t1, 0x68($k0) # handwritten instruction -/* 45E48 8006AA48 FF420028 */ sd $v0, 0x28($k0) # handwritten instruction -/* 45E4C 8006AA4C FF430030 */ sd $v1, 0x30($k0) # handwritten instruction -/* 45E50 8006AA50 FF440038 */ sd $a0, 0x38($k0) # handwritten instruction -/* 45E54 8006AA54 FF450040 */ sd $a1, 0x40($k0) # handwritten instruction -/* 45E58 8006AA58 FF460048 */ sd $a2, 0x48($k0) # handwritten instruction -/* 45E5C 8006AA5C FF470050 */ sd $a3, 0x50($k0) # handwritten instruction -/* 45E60 8006AA60 FF4B0070 */ sd $t3, 0x70($k0) # handwritten instruction -/* 45E64 8006AA64 FF4C0078 */ sd $t4, 0x78($k0) # handwritten instruction -/* 45E68 8006AA68 FF4D0080 */ sd $t5, 0x80($k0) # handwritten instruction -/* 45E6C 8006AA6C FF4E0088 */ sd $t6, 0x88($k0) # handwritten instruction -/* 45E70 8006AA70 FF4F0090 */ sd $t7, 0x90($k0) # handwritten instruction -/* 45E74 8006AA74 FF500098 */ sd $s0, 0x98($k0) # handwritten instruction -/* 45E78 8006AA78 FF5100A0 */ sd $s1, 0xA0($k0) # handwritten instruction -/* 45E7C 8006AA7C FF5200A8 */ sd $s2, 0xA8($k0) # handwritten instruction -/* 45E80 8006AA80 FF5300B0 */ sd $s3, 0xB0($k0) # handwritten instruction -/* 45E84 8006AA84 FF5400B8 */ sd $s4, 0xB8($k0) # handwritten instruction -/* 45E88 8006AA88 FF5500C0 */ sd $s5, 0xC0($k0) # handwritten instruction -/* 45E8C 8006AA8C FF5600C8 */ sd $s6, 0xC8($k0) # handwritten instruction -/* 45E90 8006AA90 FF5700D0 */ sd $s7, 0xD0($k0) # handwritten instruction -/* 45E94 8006AA94 FF5800D8 */ sd $t8, 0xD8($k0) # handwritten instruction -/* 45E98 8006AA98 FF5900E0 */ sd $t9, 0xE0($k0) # handwritten instruction -/* 45E9C 8006AA9C FF5C00E8 */ sd $gp, 0xE8($k0) # handwritten instruction -/* 45EA0 8006AAA0 FF5D00F0 */ sd $sp, 0xF0($k0) # handwritten instruction -/* 45EA4 8006AAA4 FF5E00F8 */ sd $fp, 0xF8($k0) # handwritten instruction -/* 45EA8 8006AAA8 FF5F0100 */ sd $ra, 0x100($k0) # handwritten instruction -/* 45EAC 8006AAAC 00004012 */ mflo $t0 -/* 45EB0 8006AAB0 FF480108 */ sd $t0, 0x108($k0) # handwritten instruction -/* 45EB4 8006AAB4 00004010 */ mfhi $t0 -/* 45EB8 8006AAB8 FF480110 */ sd $t0, 0x110($k0) # handwritten instruction -/* 45EBC 8006AABC 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 45EC0 8006AAC0 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 45EC4 8006AAC4 11200013 */ beqz $t1, .LJP_8006AB14 -/* 45EC8 8006AAC8 00000000 */ nop -/* 45ECC 8006AACC 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 45ED0 8006AAD0 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 45ED4 8006AAD4 8D080000 */ lw $t0, 0x0($t0) -/* 45ED8 8006AAD8 2401FFFF */ addiu $at, $zero, -0x1 -/* 45EDC 8006AADC 01015026 */ xor $t2, $t0, $at -/* 45EE0 8006AAE0 314AFF00 */ andi $t2, $t2, 0xFF00 -/* 45EE4 8006AAE4 012A6025 */ or $t4, $t1, $t2 -/* 45EE8 8006AAE8 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 45EEC 8006AAEC 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 45EF0 8006AAF0 03615824 */ and $t3, $k1, $at -/* 45EF4 8006AAF4 016C5825 */ or $t3, $t3, $t4 -/* 45EF8 8006AAF8 AF4B0118 */ sw $t3, 0x118($k0) # handwritten instruction -/* 45EFC 8006AAFC 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 45F00 8006AB00 01284824 */ and $t1, $t1, $t0 -/* 45F04 8006AB04 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 45F08 8006AB08 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 45F0C 8006AB0C 0361D824 */ and $k1, $k1, $at -/* 45F10 8006AB10 0369D825 */ or $k1, $k1, $t1 -.LJP_8006AB14: -/* 45F14 8006AB14 3C09A430 */ lui $t1, %hi(D_A430000C) -/* 45F18 8006AB18 8D29000C */ lw $t1, %lo(D_A430000C)($t1) -/* 45F1C 8006AB1C 1120000B */ beqz $t1, .LJP_8006AB4C -/* 45F20 8006AB20 00000000 */ nop -/* 45F24 8006AB24 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 45F28 8006AB28 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 45F2C 8006AB2C 8D080000 */ lw $t0, 0x0($t0) -/* 45F30 8006AB30 00084402 */ srl $t0, $t0, 16 -/* 45F34 8006AB34 2401FFFF */ addiu $at, $zero, -0x1 -/* 45F38 8006AB38 01014026 */ xor $t0, $t0, $at -/* 45F3C 8006AB3C 3108003F */ andi $t0, $t0, 0x3F -/* 45F40 8006AB40 8F4C0128 */ lw $t4, 0x128($k0) # handwritten instruction -/* 45F44 8006AB44 010C4024 */ and $t0, $t0, $t4 -/* 45F48 8006AB48 01284825 */ or $t1, $t1, $t0 -.LJP_8006AB4C: -/* 45F4C 8006AB4C AF490128 */ sw $t1, 0x128($k0) # handwritten instruction -/* 45F50 8006AB50 40087000 */ mfc0 $t0, $14 # handwritten instruction -/* 45F54 8006AB54 AF48011C */ sw $t0, 0x11C($k0) # handwritten instruction -/* 45F58 8006AB58 8F480018 */ lw $t0, 0x18($k0) # handwritten instruction -/* 45F5C 8006AB5C 11000014 */ beqz $t0, .LJP_8006ABB0 -/* 45F60 8006AB60 00000000 */ nop -/* 45F64 8006AB64 4448F800 */ cfc1 $t0, $31 -/* 45F68 8006AB68 00000000 */ nop -/* 45F6C 8006AB6C AF48012C */ sw $t0, 0x12C($k0) # handwritten instruction -/* 45F70 8006AB70 F7400130 */ sdc1 $f0, 0x130($k0) -/* 45F74 8006AB74 F7420138 */ sdc1 $f2, 0x138($k0) -/* 45F78 8006AB78 F7440140 */ sdc1 $f4, 0x140($k0) -/* 45F7C 8006AB7C F7460148 */ sdc1 $f6, 0x148($k0) -/* 45F80 8006AB80 F7480150 */ sdc1 $f8, 0x150($k0) -/* 45F84 8006AB84 F74A0158 */ sdc1 $f10, 0x158($k0) -/* 45F88 8006AB88 F74C0160 */ sdc1 $f12, 0x160($k0) -/* 45F8C 8006AB8C F74E0168 */ sdc1 $f14, 0x168($k0) -/* 45F90 8006AB90 F7500170 */ sdc1 $f16, 0x170($k0) -/* 45F94 8006AB94 F7520178 */ sdc1 $f18, 0x178($k0) -/* 45F98 8006AB98 F7540180 */ sdc1 $f20, 0x180($k0) -/* 45F9C 8006AB9C F7560188 */ sdc1 $f22, 0x188($k0) -/* 45FA0 8006ABA0 F7580190 */ sdc1 $f24, 0x190($k0) -/* 45FA4 8006ABA4 F75A0198 */ sdc1 $f26, 0x198($k0) -/* 45FA8 8006ABA8 F75C01A0 */ sdc1 $f28, 0x1A0($k0) -/* 45FAC 8006ABAC F75E01A8 */ sdc1 $f30, 0x1A8($k0) -.LJP_8006ABB0: -/* 45FB0 8006ABB0 40086800 */ mfc0 $t0, $13 # handwritten instruction -/* 45FB4 8006ABB4 AF480120 */ sw $t0, 0x120($k0) # handwritten instruction -/* 45FB8 8006ABB8 24090002 */ addiu $t1, $zero, 0x2 -/* 45FBC 8006ABBC A7490010 */ sh $t1, 0x10($k0) # handwritten instruction -/* 45FC0 8006ABC0 3109007C */ andi $t1, $t0, 0x7C -/* 45FC4 8006ABC4 240A0024 */ addiu $t2, $zero, 0x24 -/* 45FC8 8006ABC8 112A00BF */ beq $t1, $t2, .LJP_8006AEC8 -/* 45FCC 8006ABCC 00000000 */ nop -/* 45FD0 8006ABD0 240A002C */ addiu $t2, $zero, 0x2C -/* 45FD4 8006ABD4 112A0110 */ beq $t1, $t2, .LJP_8006B018 -/* 45FD8 8006ABD8 00000000 */ nop -/* 45FDC 8006ABDC 240A0000 */ addiu $t2, $zero, 0x0 -/* 45FE0 8006ABE0 152A00D2 */ bne $t1, $t2, .LJP_8006AF2C -/* 45FE4 8006ABE4 00000000 */ nop -/* 45FE8 8006ABE8 03688024 */ and $s0, $k1, $t0 -.LJP_8006ABEC: -/* 45FEC 8006ABEC 3209FF00 */ andi $t1, $s0, 0xFF00 -/* 45FF0 8006ABF0 00095302 */ srl $t2, $t1, 12 -/* 45FF4 8006ABF4 15400003 */ bnez $t2, .LJP_8006AC04 -/* 45FF8 8006ABF8 00000000 */ nop -/* 45FFC 8006ABFC 00095202 */ srl $t2, $t1, 8 -/* 46000 8006AC00 214A0010 */ addi $t2, $t2, 0x10 # handwritten instruction -.LJP_8006AC04: -/* 46004 8006AC04 3C01800A */ lui $at, %hi(__osIntOffTable) -/* 46008 8006AC08 002A0821 */ addu $at, $at, $t2 -/* 4600C 8006AC0C 902A9D60 */ lbu $t2, %lo(__osIntOffTable)($at) -/* 46010 8006AC10 3C01800A */ lui $at, %hi(__osIntTable) -/* 46014 8006AC14 002A0821 */ addu $at, $at, $t2 -/* 46018 8006AC18 8C2A9D80 */ lw $t2, %lo(__osIntTable)($at) -/* 4601C 8006AC1C 01400008 */ jr $t2 -/* 46020 8006AC20 00000000 */ nop -glabel .LJP_8006AC24 -/* 46024 8006AC24 2401DFFF */ addiu $at, $zero, -0x2001 -/* 46028 8006AC28 1000FFF0 */ b .LJP_8006ABEC -/* 4602C 8006AC2C 02018024 */ and $s0, $s0, $at -glabel .LJP_8006AC30 -/* 46030 8006AC30 2401BFFF */ addiu $at, $zero, -0x4001 -/* 46034 8006AC34 1000FFED */ b .LJP_8006ABEC -/* 46038 8006AC38 02018024 */ and $s0, $s0, $at -glabel .LJP_8006AC3C -/* 4603C 8006AC3C 40095800 */ mfc0 $t1, $11 # handwritten instruction -/* 46040 8006AC40 40895800 */ mtc0 $t1, $11 # handwritten instruction -/* 46044 8006AC44 24040018 */ addiu $a0, $zero, 0x18 -/* 46048 8006AC48 0C01ABD7 */ jal send_mesg -/* 4604C 8006AC4C 00000000 */ nop -/* 46050 8006AC50 3C01FFFF */ lui $at, (0xFFFF7FFF >> 16) -/* 46054 8006AC54 34217FFF */ ori $at, $at, (0xFFFF7FFF & 0xFFFF) -/* 46058 8006AC58 1000FFE4 */ b .LJP_8006ABEC -/* 4605C 8006AC5C 02018024 */ and $s0, $s0, $at -glabel .LJP_8006AC60 -/* 46060 8006AC60 2401F7FF */ addiu $at, $zero, -0x801 -/* 46064 8006AC64 02018024 */ and $s0, $s0, $at -/* 46068 8006AC68 3C098009 */ lui $t1, %hi(__osHwIntTable) -/* 4606C 8006AC6C 252958A0 */ addiu $t1, $t1, %lo(__osHwIntTable) -/* 46070 8006AC70 21290008 */ addi $t1, $t1, 0x8 # handwritten instruction -/* 46074 8006AC74 8D2A0000 */ lw $t2, 0x0($t1) -/* 46078 8006AC78 11400007 */ beqz $t2, .LJP_8006AC98 -/* 4607C 8006AC7C 00000000 */ nop -/* 46080 8006AC80 0140F809 */ jalr $t2 -/* 46084 8006AC84 8D3D0004 */ lw $sp, 0x4($t1) -/* 46088 8006AC88 10400003 */ beqz $v0, .LJP_8006AC98 -/* 4608C 8006AC8C 00000000 */ nop -/* 46090 8006AC90 10000093 */ b .LJP_8006AEE0 -/* 46094 8006AC94 00000000 */ nop -.LJP_8006AC98: -/* 46098 8006AC98 0C01ABD7 */ jal send_mesg -/* 4609C 8006AC9C 24040010 */ addiu $a0, $zero, 0x10 -/* 460A0 8006ACA0 1000FFD2 */ b .LJP_8006ABEC -/* 460A4 8006ACA4 00000000 */ nop -glabel .LJP_8006ACA8 -/* 460A8 8006ACA8 3C11A430 */ lui $s1, %hi(D_A4300008) -/* 460AC 8006ACAC 8E310008 */ lw $s1, %lo(D_A4300008)($s1) -/* 460B0 8006ACB0 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 460B4 8006ACB4 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 460B8 8006ACB8 8D080000 */ lw $t0, 0x0($t0) -/* 460BC 8006ACBC 00084402 */ srl $t0, $t0, 16 -/* 460C0 8006ACC0 02288824 */ and $s1, $s1, $t0 -/* 460C4 8006ACC4 32290001 */ andi $t1, $s1, 0x1 -/* 460C8 8006ACC8 11200014 */ beqz $t1, .LJP_8006AD1C -/* 460CC 8006ACCC 00000000 */ nop -/* 460D0 8006ACD0 3231003E */ andi $s1, $s1, 0x3E -/* 460D4 8006ACD4 3C0CA404 */ lui $t4, %hi(D_A4040010) -/* 460D8 8006ACD8 8D8C0010 */ lw $t4, %lo(D_A4040010)($t4) -/* 460DC 8006ACDC 34098008 */ ori $t1, $zero, 0x8008 -/* 460E0 8006ACE0 3C01A404 */ lui $at, %hi(D_A4040010) -/* 460E4 8006ACE4 AC290010 */ sw $t1, %lo(D_A4040010)($at) -/* 460E8 8006ACE8 318C0300 */ andi $t4, $t4, 0x300 -/* 460EC 8006ACEC 11800007 */ beqz $t4, .LJP_8006AD0C -/* 460F0 8006ACF0 00000000 */ nop -/* 460F4 8006ACF4 0C01ABD7 */ jal send_mesg -/* 460F8 8006ACF8 24040020 */ addiu $a0, $zero, 0x20 -/* 460FC 8006ACFC 12200044 */ beqz $s1, .LJP_8006AE10 -/* 46100 8006AD00 00000000 */ nop -/* 46104 8006AD04 10000005 */ b .LJP_8006AD1C -/* 46108 8006AD08 00000000 */ nop -.LJP_8006AD0C: -/* 4610C 8006AD0C 0C01ABD7 */ jal send_mesg -/* 46110 8006AD10 24040058 */ addiu $a0, $zero, 0x58 -/* 46114 8006AD14 1220003E */ beqz $s1, .LJP_8006AE10 -/* 46118 8006AD18 00000000 */ nop -.LJP_8006AD1C: -/* 4611C 8006AD1C 32290008 */ andi $t1, $s1, 0x8 -/* 46120 8006AD20 11200008 */ beqz $t1, .LJP_8006AD44 -/* 46124 8006AD24 00000000 */ nop -/* 46128 8006AD28 32310037 */ andi $s1, $s1, 0x37 -/* 4612C 8006AD2C 3C01A440 */ lui $at, %hi(D_A4400010) -/* 46130 8006AD30 AC200010 */ sw $zero, %lo(D_A4400010)($at) -/* 46134 8006AD34 0C01ABD7 */ jal send_mesg -/* 46138 8006AD38 24040038 */ addiu $a0, $zero, 0x38 -/* 4613C 8006AD3C 12200034 */ beqz $s1, .LJP_8006AE10 -/* 46140 8006AD40 00000000 */ nop -.LJP_8006AD44: -/* 46144 8006AD44 32290004 */ andi $t1, $s1, 0x4 -/* 46148 8006AD48 11200009 */ beqz $t1, .LJP_8006AD70 -/* 4614C 8006AD4C 00000000 */ nop -/* 46150 8006AD50 3231003B */ andi $s1, $s1, 0x3B -/* 46154 8006AD54 24090001 */ addiu $t1, $zero, 0x1 -/* 46158 8006AD58 3C01A450 */ lui $at, %hi(D_A450000C) -/* 4615C 8006AD5C AC29000C */ sw $t1, %lo(D_A450000C)($at) -/* 46160 8006AD60 0C01ABD7 */ jal send_mesg -/* 46164 8006AD64 24040030 */ addiu $a0, $zero, 0x30 -/* 46168 8006AD68 12200029 */ beqz $s1, .LJP_8006AE10 -/* 4616C 8006AD6C 00000000 */ nop -.LJP_8006AD70: -/* 46170 8006AD70 32290002 */ andi $t1, $s1, 0x2 -/* 46174 8006AD74 11200008 */ beqz $t1, .LJP_8006AD98 -/* 46178 8006AD78 00000000 */ nop -/* 4617C 8006AD7C 3231003D */ andi $s1, $s1, 0x3D -/* 46180 8006AD80 3C01A480 */ lui $at, %hi(D_A4800018) -/* 46184 8006AD84 AC200018 */ sw $zero, %lo(D_A4800018)($at) -/* 46188 8006AD88 0C01ABD7 */ jal send_mesg -/* 4618C 8006AD8C 24040028 */ addiu $a0, $zero, 0x28 -/* 46190 8006AD90 1220001F */ beqz $s1, .LJP_8006AE10 -/* 46194 8006AD94 00000000 */ nop -.LJP_8006AD98: -/* 46198 8006AD98 32290010 */ andi $t1, $s1, 0x10 -/* 4619C 8006AD9C 11200013 */ beqz $t1, .LJP_8006ADEC -/* 461A0 8006ADA0 00000000 */ nop -/* 461A4 8006ADA4 3231002F */ andi $s1, $s1, 0x2F -/* 461A8 8006ADA8 24090002 */ addiu $t1, $zero, 0x2 -/* 461AC 8006ADAC 3C01A460 */ lui $at, %hi(D_A4600010) -/* 461B0 8006ADB0 AC290010 */ sw $t1, %lo(D_A4600010)($at) -/* 461B4 8006ADB4 3C098009 */ lui $t1, %hi(__osPiIntTable) -/* 461B8 8006ADB8 252958C8 */ addiu $t1, $t1, %lo(__osPiIntTable) -/* 461BC 8006ADBC 8D2A0000 */ lw $t2, 0x0($t1) -/* 461C0 8006ADC0 11400006 */ beqz $t2, .LJP_8006ADDC -/* 461C4 8006ADC4 00000000 */ nop -/* 461C8 8006ADC8 8D3D0004 */ lw $sp, 0x4($t1) -/* 461CC 8006ADCC 0140F809 */ jalr $t2 -/* 461D0 8006ADD0 00402021 */ addu $a0, $v0, $zero -/* 461D4 8006ADD4 14400003 */ bnez $v0, .LJP_8006ADE4 -/* 461D8 8006ADD8 00000000 */ nop -.LJP_8006ADDC: -/* 461DC 8006ADDC 0C01ABD7 */ jal send_mesg -/* 461E0 8006ADE0 24040040 */ addiu $a0, $zero, 0x40 -.LJP_8006ADE4: -/* 461E4 8006ADE4 1220000A */ beqz $s1, .LJP_8006AE10 -/* 461E8 8006ADE8 00000000 */ nop -.LJP_8006ADEC: -/* 461EC 8006ADEC 32290020 */ andi $t1, $s1, 0x20 -/* 461F0 8006ADF0 11200007 */ beqz $t1, .LJP_8006AE10 -/* 461F4 8006ADF4 00000000 */ nop -/* 461F8 8006ADF8 3231001F */ andi $s1, $s1, 0x1F -/* 461FC 8006ADFC 24090800 */ addiu $t1, $zero, 0x800 -/* 46200 8006AE00 3C01A430 */ lui $at, %hi(D_A4300000) -/* 46204 8006AE04 AC290000 */ sw $t1, %lo(D_A4300000)($at) -/* 46208 8006AE08 0C01ABD7 */ jal send_mesg -/* 4620C 8006AE0C 24040048 */ addiu $a0, $zero, 0x48 -.LJP_8006AE10: -/* 46210 8006AE10 2401FBFF */ addiu $at, $zero, -0x401 -/* 46214 8006AE14 1000FF75 */ b .LJP_8006ABEC -/* 46218 8006AE18 02018024 */ and $s0, $s0, $at -glabel .LJP_8006AE1C -/* 4621C 8006AE1C 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 46220 8006AE20 2401EFFF */ addiu $at, $zero, -0x1001 -/* 46224 8006AE24 0361D824 */ and $k1, $k1, $at -/* 46228 8006AE28 AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction -/* 4622C 8006AE2C 3C098009 */ lui $t1, %hi(__osShutdown) -/* 46230 8006AE30 2529588C */ addiu $t1, $t1, %lo(__osShutdown) -/* 46234 8006AE34 8D2A0000 */ lw $t2, 0x0($t1) -/* 46238 8006AE38 11400004 */ beqz $t2, .LJP_8006AE4C -/* 4623C 8006AE3C 00000000 */ nop -/* 46240 8006AE40 2401EFFF */ addiu $at, $zero, -0x1001 -/* 46244 8006AE44 10000026 */ b .LJP_8006AEE0 -/* 46248 8006AE48 02018024 */ and $s0, $s0, $at -.LJP_8006AE4C: -/* 4624C 8006AE4C 240A0001 */ addiu $t2, $zero, 0x1 -/* 46250 8006AE50 AD2A0000 */ sw $t2, 0x0($t1) -/* 46254 8006AE54 0C01ABD7 */ jal send_mesg -/* 46258 8006AE58 24040070 */ addiu $a0, $zero, 0x70 -/* 4625C 8006AE5C 2401EFFF */ addiu $at, $zero, -0x1001 -/* 46260 8006AE60 02018024 */ and $s0, $s0, $at -/* 46264 8006AE64 3C0A8009 */ lui $t2, %hi(__osRunQueue) -/* 46268 8006AE68 8D4A4638 */ lw $t2, %lo(__osRunQueue)($t2) -/* 4626C 8006AE6C 8D5B0118 */ lw $k1, 0x118($t2) # handwritten instruction -/* 46270 8006AE70 2401EFFF */ addiu $at, $zero, -0x1001 -/* 46274 8006AE74 0361D824 */ and $k1, $k1, $at -/* 46278 8006AE78 10000019 */ b .LJP_8006AEE0 -/* 4627C 8006AE7C AD5B0118 */ sw $k1, 0x118($t2) # handwritten instruction -glabel .LJP_8006AE80 -/* 46280 8006AE80 2401FDFF */ addiu $at, $zero, -0x201 -/* 46284 8006AE84 01014024 */ and $t0, $t0, $at -/* 46288 8006AE88 40886800 */ mtc0 $t0, $13 # handwritten instruction -/* 4628C 8006AE8C 24040008 */ addiu $a0, $zero, 0x8 -/* 46290 8006AE90 0C01ABD7 */ jal send_mesg -/* 46294 8006AE94 00000000 */ nop -/* 46298 8006AE98 2401FDFF */ addiu $at, $zero, -0x201 -/* 4629C 8006AE9C 1000FF53 */ b .LJP_8006ABEC -/* 462A0 8006AEA0 02018024 */ and $s0, $s0, $at -glabel .LJP_8006AEA4 -/* 462A4 8006AEA4 2401FEFF */ addiu $at, $zero, -0x101 -/* 462A8 8006AEA8 01014024 */ and $t0, $t0, $at -/* 462AC 8006AEAC 40886800 */ mtc0 $t0, $13 # handwritten instruction -/* 462B0 8006AEB0 24040000 */ addiu $a0, $zero, 0x0 -/* 462B4 8006AEB4 0C01ABD7 */ jal send_mesg -/* 462B8 8006AEB8 00000000 */ nop -/* 462BC 8006AEBC 2401FEFF */ addiu $at, $zero, -0x101 -/* 462C0 8006AEC0 1000FF4A */ b .LJP_8006ABEC -/* 462C4 8006AEC4 02018024 */ and $s0, $s0, $at -.LJP_8006AEC8: -/* 462C8 8006AEC8 24090001 */ addiu $t1, $zero, 0x1 -/* 462CC 8006AECC A7490012 */ sh $t1, 0x12($k0) # handwritten instruction -/* 462D0 8006AED0 0C01ABD7 */ jal send_mesg -/* 462D4 8006AED4 24040050 */ addiu $a0, $zero, 0x50 -/* 462D8 8006AED8 10000001 */ b .LJP_8006AEE0 -/* 462DC 8006AEDC 00000000 */ nop -glabel .LJP_8006AEE0 -/* 462E0 8006AEE0 8F490004 */ lw $t1, 0x4($k0) # handwritten instruction -/* 462E4 8006AEE4 3C0A8009 */ lui $t2, %hi(__osRunQueue) -/* 462E8 8006AEE8 8D4A4638 */ lw $t2, %lo(__osRunQueue)($t2) -/* 462EC 8006AEEC 8D4B0004 */ lw $t3, 0x4($t2) -/* 462F0 8006AEF0 012B082A */ slt $at, $t1, $t3 -/* 462F4 8006AEF4 10200007 */ beqz $at, .LJP_8006AF14 -/* 462F8 8006AEF8 00000000 */ nop -/* 462FC 8006AEFC 03402821 */ addu $a1, $k0, $zero -/* 46300 8006AF00 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 46304 8006AF04 0C01AC55 */ jal __osEnqueueThread -/* 46308 8006AF08 24844638 */ addiu $a0, $a0, %lo(__osRunQueue) -/* 4630C 8006AF0C 0801AC6D */ j __osDispatchThread -/* 46310 8006AF10 00000000 */ nop -.LJP_8006AF14: -/* 46314 8006AF14 3C098009 */ lui $t1, %hi(__osRunQueue) -/* 46318 8006AF18 25294638 */ addiu $t1, $t1, %lo(__osRunQueue) -/* 4631C 8006AF1C 8D2A0000 */ lw $t2, 0x0($t1) -/* 46320 8006AF20 AF4A0000 */ sw $t2, 0x0($k0) # handwritten instruction -/* 46324 8006AF24 0801AC6D */ j __osDispatchThread -/* 46328 8006AF28 AD3A0000 */ sw $k0, 0x0($t1) # handwritten instruction -.LJP_8006AF2C: -/* 4632C 8006AF2C 3C018009 */ lui $at, %hi(__osFaultedThread) -/* 46330 8006AF30 AC3A4644 */ sw $k0, %lo(__osFaultedThread)($at) # handwritten instruction -/* 46334 8006AF34 24090001 */ addiu $t1, $zero, 0x1 -/* 46338 8006AF38 A7490010 */ sh $t1, 0x10($k0) # handwritten instruction -/* 4633C 8006AF3C 24090002 */ addiu $t1, $zero, 0x2 -/* 46340 8006AF40 A7490012 */ sh $t1, 0x12($k0) # handwritten instruction -/* 46344 8006AF44 400A4000 */ mfc0 $t2, $8 # handwritten instruction -/* 46348 8006AF48 AF4A0124 */ sw $t2, 0x124($k0) # handwritten instruction -/* 4634C 8006AF4C 0C01ABD7 */ jal send_mesg -/* 46350 8006AF50 24040060 */ addiu $a0, $zero, 0x60 -/* 46354 8006AF54 0801AC6D */ j __osDispatchThread -/* 46358 8006AF58 00000000 */ nop - -# Handwritten function -glabel send_mesg -/* 4635C 8006AF5C 03E09021 */ addu $s2, $ra, $zero -/* 46360 8006AF60 3C0A800E */ lui $t2, %hi(__osEventStateTab) -/* 46364 8006AF64 254A9F60 */ addiu $t2, $t2, %lo(__osEventStateTab) -/* 46368 8006AF68 01445021 */ addu $t2, $t2, $a0 -/* 4636C 8006AF6C 8D490000 */ lw $t1, 0x0($t2) -/* 46370 8006AF70 11200027 */ beqz $t1, .LJP_8006B010 -/* 46374 8006AF74 00000000 */ nop -/* 46378 8006AF78 8D2B0008 */ lw $t3, 0x8($t1) -/* 4637C 8006AF7C 8D2C0010 */ lw $t4, 0x10($t1) -/* 46380 8006AF80 016C082A */ slt $at, $t3, $t4 -/* 46384 8006AF84 10200022 */ beqz $at, .LJP_8006B010 -/* 46388 8006AF88 00000000 */ nop -/* 4638C 8006AF8C 8D2D000C */ lw $t5, 0xC($t1) -/* 46390 8006AF90 01AB6821 */ addu $t5, $t5, $t3 -/* 46394 8006AF94 01AC001A */ div $zero, $t5, $t4 -/* 46398 8006AF98 15800002 */ bnez $t4, .LJP_8006AFA4 -/* 4639C 8006AF9C 00000000 */ nop -/* 463A0 8006AFA0 0007000D */ break 7 -.LJP_8006AFA4: -/* 463A4 8006AFA4 2401FFFF */ addiu $at, $zero, -0x1 -/* 463A8 8006AFA8 15810004 */ bne $t4, $at, .LJP_8006AFBC -/* 463AC 8006AFAC 3C018000 */ lui $at, (0x80000000 >> 16) -/* 463B0 8006AFB0 15A10002 */ bne $t5, $at, .LJP_8006AFBC -/* 463B4 8006AFB4 00000000 */ nop -/* 463B8 8006AFB8 0006000D */ break 6 -.LJP_8006AFBC: -/* 463BC 8006AFBC 00006810 */ mfhi $t5 -/* 463C0 8006AFC0 8D2C0014 */ lw $t4, 0x14($t1) -/* 463C4 8006AFC4 24010004 */ addiu $at, $zero, 0x4 -/* 463C8 8006AFC8 01A10018 */ mult $t5, $at -/* 463CC 8006AFCC 00006812 */ mflo $t5 -/* 463D0 8006AFD0 018D6021 */ addu $t4, $t4, $t5 -/* 463D4 8006AFD4 8D4D0004 */ lw $t5, 0x4($t2) -/* 463D8 8006AFD8 AD8D0000 */ sw $t5, 0x0($t4) -/* 463DC 8006AFDC 256A0001 */ addiu $t2, $t3, 0x1 -/* 463E0 8006AFE0 AD2A0008 */ sw $t2, 0x8($t1) -/* 463E4 8006AFE4 8D2A0000 */ lw $t2, 0x0($t1) -/* 463E8 8006AFE8 8D4B0000 */ lw $t3, 0x0($t2) -/* 463EC 8006AFEC 11600008 */ beqz $t3, .LJP_8006B010 -/* 463F0 8006AFF0 00000000 */ nop -/* 463F4 8006AFF4 0C01AC67 */ jal __osPopThread -/* 463F8 8006AFF8 01202021 */ addu $a0, $t1, $zero -/* 463FC 8006AFFC 00405021 */ addu $t2, $v0, $zero -/* 46400 8006B000 01402821 */ addu $a1, $t2, $zero -/* 46404 8006B004 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 46408 8006B008 0C01AC55 */ jal __osEnqueueThread -/* 4640C 8006B00C 24844638 */ addiu $a0, $a0, %lo(__osRunQueue) -.LJP_8006B010: -/* 46410 8006B010 02400008 */ jr $s2 -/* 46414 8006B014 00000000 */ nop -.LJP_8006B018: -/* 46418 8006B018 3C013000 */ lui $at, (0x30000000 >> 16) -/* 4641C 8006B01C 01014824 */ and $t1, $t0, $at -/* 46420 8006B020 00094F02 */ srl $t1, $t1, 28 -/* 46424 8006B024 240A0001 */ addiu $t2, $zero, 0x1 -/* 46428 8006B028 152AFFC0 */ bne $t1, $t2, .LJP_8006AF2C -/* 4642C 8006B02C 00000000 */ nop -/* 46430 8006B030 24090001 */ addiu $t1, $zero, 0x1 -/* 46434 8006B034 AF490018 */ sw $t1, 0x18($k0) # handwritten instruction -/* 46438 8006B038 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 4643C 8006B03C 3C012000 */ lui $at, (0x20000000 >> 16) -/* 46440 8006B040 0361D825 */ or $k1, $k1, $at -/* 46444 8006B044 1000FFB3 */ b .LJP_8006AF14 -/* 46448 8006B048 AF5B0118 */ sw $k1, 0x118($k0) # handwritten instruction - -# Handwritten function -glabel __osEnqueueAndYield -/* 4644C 8006B04C 3C058009 */ lui $a1, %hi(__osRunningThread) -/* 46450 8006B050 8CA54640 */ lw $a1, %lo(__osRunningThread)($a1) -/* 46454 8006B054 40086000 */ mfc0 $t0, $12 # handwritten instruction -/* 46458 8006B058 35080002 */ ori $t0, $t0, 0x2 -/* 4645C 8006B05C ACA80118 */ sw $t0, 0x118($a1) -/* 46460 8006B060 FCB00098 */ sd $s0, 0x98($a1) -/* 46464 8006B064 FCB100A0 */ sd $s1, 0xA0($a1) -/* 46468 8006B068 FCB200A8 */ sd $s2, 0xA8($a1) -/* 4646C 8006B06C FCB300B0 */ sd $s3, 0xB0($a1) -/* 46470 8006B070 FCB400B8 */ sd $s4, 0xB8($a1) -/* 46474 8006B074 FCB500C0 */ sd $s5, 0xC0($a1) -/* 46478 8006B078 FCB600C8 */ sd $s6, 0xC8($a1) -/* 4647C 8006B07C FCB700D0 */ sd $s7, 0xD0($a1) -/* 46480 8006B080 FCBC00E8 */ sd $gp, 0xE8($a1) -/* 46484 8006B084 FCBD00F0 */ sd $sp, 0xF0($a1) -/* 46488 8006B088 FCBE00F8 */ sd $fp, 0xF8($a1) -/* 4648C 8006B08C FCBF0100 */ sd $ra, 0x100($a1) -/* 46490 8006B090 ACBF011C */ sw $ra, 0x11C($a1) -/* 46494 8006B094 8CBB0018 */ lw $k1, 0x18($a1) # handwritten instruction -/* 46498 8006B098 1360000A */ beqz $k1, .LJP_8006B0C4 # handwritten instruction -/* 4649C 8006B09C 00000000 */ nop -/* 464A0 8006B0A0 445BF800 */ cfc1 $k1, $31 -/* 464A4 8006B0A4 00000000 */ nop -/* 464A8 8006B0A8 ACBB012C */ sw $k1, 0x12C($a1) # handwritten instruction -/* 464AC 8006B0AC F4B40180 */ sdc1 $f20, 0x180($a1) -/* 464B0 8006B0B0 F4B60188 */ sdc1 $f22, 0x188($a1) -/* 464B4 8006B0B4 F4B80190 */ sdc1 $f24, 0x190($a1) -/* 464B8 8006B0B8 F4BA0198 */ sdc1 $f26, 0x198($a1) -/* 464BC 8006B0BC F4BC01A0 */ sdc1 $f28, 0x1A0($a1) -/* 464C0 8006B0C0 F4BE01A8 */ sdc1 $f30, 0x1A8($a1) -.LJP_8006B0C4: -/* 464C4 8006B0C4 8CBB0118 */ lw $k1, 0x118($a1) # handwritten instruction -/* 464C8 8006B0C8 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 464CC 8006B0CC 1120000D */ beqz $t1, .LJP_8006B104 -/* 464D0 8006B0D0 00000000 */ nop -/* 464D4 8006B0D4 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 464D8 8006B0D8 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 464DC 8006B0DC 8D080000 */ lw $t0, 0x0($t0) -/* 464E0 8006B0E0 2401FFFF */ addiu $at, $zero, -0x1 -/* 464E4 8006B0E4 01014026 */ xor $t0, $t0, $at -/* 464E8 8006B0E8 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 464EC 8006B0EC 01284825 */ or $t1, $t1, $t0 -/* 464F0 8006B0F0 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 464F4 8006B0F4 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 464F8 8006B0F8 0361D824 */ and $k1, $k1, $at -/* 464FC 8006B0FC 0369D825 */ or $k1, $k1, $t1 -/* 46500 8006B100 ACBB0118 */ sw $k1, 0x118($a1) # handwritten instruction -.LJP_8006B104: -/* 46504 8006B104 3C1BA430 */ lui $k1, %hi(D_A430000C) # handwritten instruction -/* 46508 8006B108 8F7B000C */ lw $k1, %lo(D_A430000C)($k1) # handwritten instruction -/* 4650C 8006B10C 1360000B */ beqz $k1, .LJP_8006B13C # handwritten instruction -/* 46510 8006B110 00000000 */ nop -/* 46514 8006B114 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) # handwritten instruction -/* 46518 8006B118 275A5890 */ addiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction -/* 4651C 8006B11C 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction -/* 46520 8006B120 001AD402 */ srl $k0, $k0, 16 -/* 46524 8006B124 2401FFFF */ addiu $at, $zero, -0x1 -/* 46528 8006B128 0341D026 */ xor $k0, $k0, $at -/* 4652C 8006B12C 335A003F */ andi $k0, $k0, 0x3F # handwritten instruction -/* 46530 8006B130 8CA80128 */ lw $t0, 0x128($a1) -/* 46534 8006B134 0348D024 */ and $k0, $k0, $t0 -/* 46538 8006B138 037AD825 */ or $k1, $k1, $k0 -.LJP_8006B13C: -/* 4653C 8006B13C 10800003 */ beqz $a0, .LJP_8006B14C -/* 46540 8006B140 ACBB0128 */ sw $k1, 0x128($a1) # handwritten instruction -/* 46544 8006B144 0C01AC55 */ jal __osEnqueueThread -/* 46548 8006B148 00000000 */ nop -.LJP_8006B14C: -/* 4654C 8006B14C 0801AC6D */ j __osDispatchThread -/* 46550 8006B150 00000000 */ nop - -glabel __osEnqueueThread -/* 46554 8006B154 0080C821 */ addu $t9, $a0, $zero -/* 46558 8006B158 8C980000 */ lw $t8, 0x0($a0) -/* 4655C 8006B15C 8CAF0004 */ lw $t7, 0x4($a1) -/* 46560 8006B160 8F0E0004 */ lw $t6, 0x4($t8) -/* 46564 8006B164 01CF082A */ slt $at, $t6, $t7 -/* 46568 8006B168 14200007 */ bnez $at, .LJP_8006B188 -/* 4656C 8006B16C 00000000 */ nop -.LJP_8006B170: -/* 46570 8006B170 0300C821 */ addu $t9, $t8, $zero -/* 46574 8006B174 8F180000 */ lw $t8, 0x0($t8) -/* 46578 8006B178 8F0E0004 */ lw $t6, 0x4($t8) -/* 4657C 8006B17C 01CF082A */ slt $at, $t6, $t7 -/* 46580 8006B180 1020FFFB */ beqz $at, .LJP_8006B170 -/* 46584 8006B184 00000000 */ nop -.LJP_8006B188: -/* 46588 8006B188 8F380000 */ lw $t8, 0x0($t9) -/* 4658C 8006B18C ACB80000 */ sw $t8, 0x0($a1) -/* 46590 8006B190 AF250000 */ sw $a1, 0x0($t9) -/* 46594 8006B194 03E00008 */ jr $ra -/* 46598 8006B198 ACA40008 */ sw $a0, 0x8($a1) - -glabel __osPopThread -/* 4659C 8006B19C 8C820000 */ lw $v0, 0x0($a0) -/* 465A0 8006B1A0 8C590000 */ lw $t9, 0x0($v0) -/* 465A4 8006B1A4 03E00008 */ jr $ra -/* 465A8 8006B1A8 AC990000 */ sw $t9, 0x0($a0) -/* 465AC 8006B1AC 03E00008 */ jr $ra -/* 465B0 8006B1B0 00000000 */ nop - -# Handwritten function -glabel __osDispatchThread -/* 465B4 8006B1B4 3C048009 */ lui $a0, %hi(__osRunQueue) -/* 465B8 8006B1B8 0C01AC67 */ jal __osPopThread -/* 465BC 8006B1BC 24844638 */ addiu $a0, $a0, %lo(__osRunQueue) -/* 465C0 8006B1C0 3C018009 */ lui $at, %hi(__osRunningThread) -/* 465C4 8006B1C4 AC224640 */ sw $v0, %lo(__osRunningThread)($at) -/* 465C8 8006B1C8 24080004 */ addiu $t0, $zero, 0x4 -/* 465CC 8006B1CC A4480010 */ sh $t0, 0x10($v0) -/* 465D0 8006B1D0 0040D021 */ addu $k0, $v0, $zero -/* 465D4 8006B1D4 8F5B0118 */ lw $k1, 0x118($k0) # handwritten instruction -/* 465D8 8006B1D8 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 465DC 8006B1DC 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 465E0 8006B1E0 8D080000 */ lw $t0, 0x0($t0) -/* 465E4 8006B1E4 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 465E8 8006B1E8 3369FF00 */ andi $t1, $k1, 0xFF00 # handwritten instruction -/* 465EC 8006B1EC 01284824 */ and $t1, $t1, $t0 -/* 465F0 8006B1F0 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 465F4 8006B1F4 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 465F8 8006B1F8 0361D824 */ and $k1, $k1, $at -/* 465FC 8006B1FC 0369D825 */ or $k1, $k1, $t1 -/* 46600 8006B200 409B6000 */ mtc0 $k1, $12 # handwritten instruction -/* 46604 8006B204 DF410020 */ ld $at, 0x20($k0) # handwritten instruction -/* 46608 8006B208 DF420028 */ ld $v0, 0x28($k0) # handwritten instruction -/* 4660C 8006B20C DF430030 */ ld $v1, 0x30($k0) # handwritten instruction -/* 46610 8006B210 DF440038 */ ld $a0, 0x38($k0) # handwritten instruction -/* 46614 8006B214 DF450040 */ ld $a1, 0x40($k0) # handwritten instruction -/* 46618 8006B218 DF460048 */ ld $a2, 0x48($k0) # handwritten instruction -/* 4661C 8006B21C DF470050 */ ld $a3, 0x50($k0) # handwritten instruction -/* 46620 8006B220 DF480058 */ ld $t0, 0x58($k0) # handwritten instruction -/* 46624 8006B224 DF490060 */ ld $t1, 0x60($k0) # handwritten instruction -/* 46628 8006B228 DF4A0068 */ ld $t2, 0x68($k0) # handwritten instruction -/* 4662C 8006B22C DF4B0070 */ ld $t3, 0x70($k0) # handwritten instruction -/* 46630 8006B230 DF4C0078 */ ld $t4, 0x78($k0) # handwritten instruction -/* 46634 8006B234 DF4D0080 */ ld $t5, 0x80($k0) # handwritten instruction -/* 46638 8006B238 DF4E0088 */ ld $t6, 0x88($k0) # handwritten instruction -/* 4663C 8006B23C DF4F0090 */ ld $t7, 0x90($k0) # handwritten instruction -/* 46640 8006B240 DF500098 */ ld $s0, 0x98($k0) # handwritten instruction -/* 46644 8006B244 DF5100A0 */ ld $s1, 0xA0($k0) # handwritten instruction -/* 46648 8006B248 DF5200A8 */ ld $s2, 0xA8($k0) # handwritten instruction -/* 4664C 8006B24C DF5300B0 */ ld $s3, 0xB0($k0) # handwritten instruction -/* 46650 8006B250 DF5400B8 */ ld $s4, 0xB8($k0) # handwritten instruction -/* 46654 8006B254 DF5500C0 */ ld $s5, 0xC0($k0) # handwritten instruction -/* 46658 8006B258 DF5600C8 */ ld $s6, 0xC8($k0) # handwritten instruction -/* 4665C 8006B25C DF5700D0 */ ld $s7, 0xD0($k0) # handwritten instruction -/* 46660 8006B260 DF5800D8 */ ld $t8, 0xD8($k0) # handwritten instruction -/* 46664 8006B264 DF5900E0 */ ld $t9, 0xE0($k0) # handwritten instruction -/* 46668 8006B268 DF5C00E8 */ ld $gp, 0xE8($k0) # handwritten instruction -/* 4666C 8006B26C DF5D00F0 */ ld $sp, 0xF0($k0) # handwritten instruction -/* 46670 8006B270 DF5E00F8 */ ld $fp, 0xF8($k0) # handwritten instruction -/* 46674 8006B274 DF5F0100 */ ld $ra, 0x100($k0) # handwritten instruction -/* 46678 8006B278 DF5B0108 */ ld $k1, 0x108($k0) # handwritten instruction -/* 4667C 8006B27C 03600013 */ mtlo $k1 -/* 46680 8006B280 DF5B0110 */ ld $k1, 0x110($k0) # handwritten instruction -/* 46684 8006B284 03600011 */ mthi $k1 -/* 46688 8006B288 8F5B011C */ lw $k1, 0x11C($k0) # handwritten instruction -/* 4668C 8006B28C 409B7000 */ mtc0 $k1, $14 # handwritten instruction -/* 46690 8006B290 8F5B0018 */ lw $k1, 0x18($k0) # handwritten instruction -/* 46694 8006B294 13600013 */ beqz $k1, .LJP_8006B2E4 # handwritten instruction -/* 46698 8006B298 00000000 */ nop -/* 4669C 8006B29C 8F5B012C */ lw $k1, 0x12C($k0) # handwritten instruction -/* 466A0 8006B2A0 44DBF800 */ ctc1 $k1, $31 -/* 466A4 8006B2A4 D7400130 */ ldc1 $f0, 0x130($k0) -/* 466A8 8006B2A8 D7420138 */ ldc1 $f2, 0x138($k0) -/* 466AC 8006B2AC D7440140 */ ldc1 $f4, 0x140($k0) -/* 466B0 8006B2B0 D7460148 */ ldc1 $f6, 0x148($k0) -/* 466B4 8006B2B4 D7480150 */ ldc1 $f8, 0x150($k0) -/* 466B8 8006B2B8 D74A0158 */ ldc1 $f10, 0x158($k0) -/* 466BC 8006B2BC D74C0160 */ ldc1 $f12, 0x160($k0) -/* 466C0 8006B2C0 D74E0168 */ ldc1 $f14, 0x168($k0) -/* 466C4 8006B2C4 D7500170 */ ldc1 $f16, 0x170($k0) -/* 466C8 8006B2C8 D7520178 */ ldc1 $f18, 0x178($k0) -/* 466CC 8006B2CC D7540180 */ ldc1 $f20, 0x180($k0) -/* 466D0 8006B2D0 D7560188 */ ldc1 $f22, 0x188($k0) -/* 466D4 8006B2D4 D7580190 */ ldc1 $f24, 0x190($k0) -/* 466D8 8006B2D8 D75A0198 */ ldc1 $f26, 0x198($k0) -/* 466DC 8006B2DC D75C01A0 */ ldc1 $f28, 0x1A0($k0) -/* 466E0 8006B2E0 D75E01A8 */ ldc1 $f30, 0x1A8($k0) -.LJP_8006B2E4: -/* 466E4 8006B2E4 8F5B0128 */ lw $k1, 0x128($k0) # handwritten instruction -/* 466E8 8006B2E8 3C1A8009 */ lui $k0, %hi(__OSGlobalIntMask) # handwritten instruction -/* 466EC 8006B2EC 275A5890 */ addiu $k0, $k0, %lo(__OSGlobalIntMask) # handwritten instruction -/* 466F0 8006B2F0 8F5A0000 */ lw $k0, 0x0($k0) # handwritten instruction -/* 466F4 8006B2F4 001AD402 */ srl $k0, $k0, 16 -/* 466F8 8006B2F8 037AD824 */ and $k1, $k1, $k0 -/* 466FC 8006B2FC 001BD840 */ sll $k1, $k1, 1 -/* 46700 8006B300 3C1A800A */ lui $k0, %hi(D_80099AA0) # handwritten instruction -/* 46704 8006B304 275A9A80 */ addiu $k0, $k0, %lo(D_80099AA0) # handwritten instruction -/* 46708 8006B308 037AD821 */ addu $k1, $k1, $k0 -/* 4670C 8006B30C 977B0000 */ lhu $k1, 0x0($k1) # handwritten instruction -/* 46710 8006B310 3C1AA430 */ lui $k0, (0xA430000C >> 16) # handwritten instruction -/* 46714 8006B314 375A000C */ ori $k0, $k0, (0xA430000C & 0xFFFF) # handwritten instruction -/* 46718 8006B318 AF5B0000 */ sw $k1, 0x0($k0) # handwritten instruction -/* 4671C 8006B31C 00000000 */ nop -/* 46720 8006B320 00000000 */ nop -/* 46724 8006B324 00000000 */ nop -/* 46728 8006B328 00000000 */ nop -/* 4672C 8006B32C 42000018 */ eret # handwritten instruction - -glabel __osCleanupThread -/* 46730 8006B330 00002021 */ addu $a0, $zero, $zero -/* 46734 8006B334 0C01B24C */ jal osDestroyThread -/* 46738 8006B338 00000000 */ nop -/* 4673C 8006B33C 00000000 */ nop diff --git a/ver/jp/asm/os/guMtxCatF.s b/ver/jp/asm/os/guMtxCatF.s deleted file mode 100644 index 6b1f231709..0000000000 --- a/ver/jp/asm/os/guMtxCatF.s +++ /dev/null @@ -1,78 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxCatF -/* 429E0 800675E0 27BDFFC0 */ addiu $sp, $sp, -0x40 -/* 429E4 800675E4 24820040 */ addiu $v0, $a0, 0x40 -/* 429E8 800675E8 24A30010 */ addiu $v1, $a1, 0x10 -/* 429EC 800675EC 03A05021 */ addu $t2, $sp, $zero -.LJP_800675F0: -/* 429F0 800675F0 00A03821 */ addu $a3, $a1, $zero -.LJP_800675F4: -/* 429F4 800675F4 C4840000 */ lwc1 $f4, 0x0($a0) -/* 429F8 800675F8 C4E60000 */ lwc1 $f6, 0x0($a3) -/* 429FC 800675FC 46062202 */ mul.s $f8, $f4, $f6 -/* 42A00 80067600 C48A0004 */ lwc1 $f10, 0x4($a0) -/* 42A04 80067604 C4F00010 */ lwc1 $f16, 0x10($a3) -/* 42A08 80067608 46105482 */ mul.s $f18, $f10, $f16 -/* 42A0C 8006760C 46124200 */ add.s $f8, $f8, $f18 -/* 42A10 80067610 C4840008 */ lwc1 $f4, 0x8($a0) -/* 42A14 80067614 C4E60020 */ lwc1 $f6, 0x20($a3) -/* 42A18 80067618 46062482 */ mul.s $f18, $f4, $f6 -/* 42A1C 8006761C 46124200 */ add.s $f8, $f8, $f18 -/* 42A20 80067620 C48A000C */ lwc1 $f10, 0xC($a0) -/* 42A24 80067624 C4F00030 */ lwc1 $f16, 0x30($a3) -/* 42A28 80067628 46105482 */ mul.s $f18, $f10, $f16 -/* 42A2C 8006762C 46124200 */ add.s $f8, $f8, $f18 -/* 42A30 80067630 E5480000 */ swc1 $f8, 0x0($t2) -/* 42A34 80067634 24E70004 */ addiu $a3, $a3, 0x4 -/* 42A38 80067638 14E3FFEE */ bne $a3, $v1, .LJP_800675F4 -/* 42A3C 8006763C 254A0004 */ addiu $t2, $t2, 0x4 -/* 42A40 80067640 24840010 */ addiu $a0, $a0, 0x10 -/* 42A44 80067644 1482FFEA */ bne $a0, $v0, .LJP_800675F0 -/* 42A48 80067648 00000000 */ nop -/* 42A4C 8006764C E4C8003C */ swc1 $f8, 0x3C($a2) -/* 42A50 80067650 8FA80000 */ lw $t0, 0x0($sp) -/* 42A54 80067654 8FA90004 */ lw $t1, 0x4($sp) -/* 42A58 80067658 8FAA0008 */ lw $t2, 0x8($sp) -/* 42A5C 8006765C 8FAB000C */ lw $t3, 0xC($sp) -/* 42A60 80067660 8FAC0010 */ lw $t4, 0x10($sp) -/* 42A64 80067664 8FAD0014 */ lw $t5, 0x14($sp) -/* 42A68 80067668 8FAE0018 */ lw $t6, 0x18($sp) -/* 42A6C 8006766C 8FAF001C */ lw $t7, 0x1C($sp) -/* 42A70 80067670 8FB80020 */ lw $t8, 0x20($sp) -/* 42A74 80067674 8FB90024 */ lw $t9, 0x24($sp) -/* 42A78 80067678 8FA20028 */ lw $v0, 0x28($sp) -/* 42A7C 8006767C 8FA3002C */ lw $v1, 0x2C($sp) -/* 42A80 80067680 8FA40030 */ lw $a0, 0x30($sp) -/* 42A84 80067684 8FA50034 */ lw $a1, 0x34($sp) -/* 42A88 80067688 8FA70038 */ lw $a3, 0x38($sp) -/* 42A8C 8006768C ACC80000 */ sw $t0, 0x0($a2) -/* 42A90 80067690 ACC90004 */ sw $t1, 0x4($a2) -/* 42A94 80067694 ACCA0008 */ sw $t2, 0x8($a2) -/* 42A98 80067698 ACCB000C */ sw $t3, 0xC($a2) -/* 42A9C 8006769C ACCC0010 */ sw $t4, 0x10($a2) -/* 42AA0 800676A0 ACCD0014 */ sw $t5, 0x14($a2) -/* 42AA4 800676A4 ACCE0018 */ sw $t6, 0x18($a2) -/* 42AA8 800676A8 ACCF001C */ sw $t7, 0x1C($a2) -/* 42AAC 800676AC ACD80020 */ sw $t8, 0x20($a2) -/* 42AB0 800676B0 ACD90024 */ sw $t9, 0x24($a2) -/* 42AB4 800676B4 ACC20028 */ sw $v0, 0x28($a2) -/* 42AB8 800676B8 ACC3002C */ sw $v1, 0x2C($a2) -/* 42ABC 800676BC ACC40030 */ sw $a0, 0x30($a2) -/* 42AC0 800676C0 ACC50034 */ sw $a1, 0x34($a2) -/* 42AC4 800676C4 ACC70038 */ sw $a3, 0x38($a2) -/* 42AC8 800676C8 03E00008 */ jr $ra -/* 42ACC 800676CC 27BD0040 */ addiu $sp, $sp, 0x40 -/* 42AD0 800676D0 00000000 */ nop -/* 42AD4 800676D4 00000000 */ nop -/* 42AD8 800676D8 00000000 */ nop -/* 42ADC 800676DC 00000000 */ nop diff --git a/ver/jp/asm/os/guMtxF2L.s b/ver/jp/asm/os/guMtxF2L.s deleted file mode 100644 index 94adf51c5e..0000000000 --- a/ver/jp/asm/os/guMtxF2L.s +++ /dev/null @@ -1,45 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxF2L -/* 428E0 800674E0 3C014780 */ lui $at, (0x47800000 >> 16) -/* 428E4 800674E4 44810000 */ mtc1 $at, $f0 -/* 428E8 800674E8 3C19FFFF */ lui $t9, (0xFFFF0000 >> 16) -/* 428EC 800674EC 24B80020 */ addiu $t8, $a1, 0x20 -.LJP_800674F0: -/* 428F0 800674F0 C4840000 */ lwc1 $f4, 0x0($a0) -/* 428F4 800674F4 46002182 */ mul.s $f6, $f4, $f0 -/* 428F8 800674F8 4600320D */ trunc.w.s $f8, $f6 -/* 428FC 800674FC C48A0004 */ lwc1 $f10, 0x4($a0) -/* 42900 80067500 46005402 */ mul.s $f16, $f10, $f0 -/* 42904 80067504 4600848D */ trunc.w.s $f18, $f16 -/* 42908 80067508 44084000 */ mfc1 $t0, $f8 -/* 4290C 8006750C 44099000 */ mfc1 $t1, $f18 -/* 42910 80067510 01195024 */ and $t2, $t0, $t9 -/* 42914 80067514 00095C02 */ srl $t3, $t1, 16 -/* 42918 80067518 014B6025 */ or $t4, $t2, $t3 -/* 4291C 8006751C ACAC0000 */ sw $t4, 0x0($a1) -/* 42920 80067520 00086C00 */ sll $t5, $t0, 16 -/* 42924 80067524 312EFFFF */ andi $t6, $t1, 0xFFFF -/* 42928 80067528 01AE7825 */ or $t7, $t5, $t6 -/* 4292C 8006752C ACAF0020 */ sw $t7, 0x20($a1) -/* 42930 80067530 24A50004 */ addiu $a1, $a1, 0x4 -/* 42934 80067534 14B8FFEE */ bne $a1, $t8, .LJP_800674F0 -/* 42938 80067538 24840008 */ addiu $a0, $a0, 0x8 -/* 4293C 8006753C 03E00008 */ jr $ra -/* 42940 80067540 00000000 */ nop -/* 42944 80067544 00000000 */ nop -/* 42948 80067548 00000000 */ nop -/* 4294C 8006754C 00000000 */ nop -/* 42950 80067550 00000000 */ nop -/* 42954 80067554 00000000 */ nop -/* 42958 80067558 00000000 */ nop -/* 4295C 8006755C 00000000 */ nop diff --git a/ver/jp/asm/os/guMtxIdent.s b/ver/jp/asm/os/guMtxIdent.s deleted file mode 100644 index 67d7dd7690..0000000000 --- a/ver/jp/asm/os/guMtxIdent.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel guMtxIdent -/* 42820 80067420 20080001 */ addi $t0, $zero, 0x1 # handwritten instruction -/* 42824 80067424 00084C00 */ sll $t1, $t0, 16 -/* 42828 80067428 AC890000 */ sw $t1, 0x0($a0) -/* 4282C 8006742C AC800004 */ sw $zero, 0x4($a0) -/* 42830 80067430 AC880008 */ sw $t0, 0x8($a0) -/* 42834 80067434 AC80000C */ sw $zero, 0xC($a0) -/* 42838 80067438 AC800010 */ sw $zero, 0x10($a0) -/* 4283C 8006743C AC890014 */ sw $t1, 0x14($a0) -/* 42840 80067440 AC800018 */ sw $zero, 0x18($a0) -/* 42844 80067444 AC88001C */ sw $t0, 0x1C($a0) -/* 42848 80067448 AC800020 */ sw $zero, 0x20($a0) -/* 4284C 8006744C AC800024 */ sw $zero, 0x24($a0) -/* 42850 80067450 AC800028 */ sw $zero, 0x28($a0) -/* 42854 80067454 AC80002C */ sw $zero, 0x2C($a0) -/* 42858 80067458 AC800030 */ sw $zero, 0x30($a0) -/* 4285C 8006745C AC800034 */ sw $zero, 0x34($a0) -/* 42860 80067460 AC800038 */ sw $zero, 0x38($a0) -/* 42864 80067464 03E00008 */ jr $ra -/* 42868 80067468 AC80003C */ sw $zero, 0x3C($a0) -/* 4286C 8006746C 00000000 */ nop -/* 42870 80067470 00000000 */ nop -/* 42874 80067474 00000000 */ nop -/* 42878 80067478 00000000 */ nop -/* 4287C 8006747C 00000000 */ nop diff --git a/ver/jp/asm/os/guMtxIdentF.s b/ver/jp/asm/os/guMtxIdentF.s deleted file mode 100644 index 019dd8dbfb..0000000000 --- a/ver/jp/asm/os/guMtxIdentF.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxIdentF -/* 42880 80067480 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 42884 80067484 AC880000 */ sw $t0, 0x0($a0) -/* 42888 80067488 AC800004 */ sw $zero, 0x4($a0) -/* 4288C 8006748C AC800008 */ sw $zero, 0x8($a0) -/* 42890 80067490 AC80000C */ sw $zero, 0xC($a0) -/* 42894 80067494 AC800010 */ sw $zero, 0x10($a0) -/* 42898 80067498 AC880014 */ sw $t0, 0x14($a0) -/* 4289C 8006749C AC800018 */ sw $zero, 0x18($a0) -/* 428A0 800674A0 AC80001C */ sw $zero, 0x1C($a0) -/* 428A4 800674A4 AC800020 */ sw $zero, 0x20($a0) -/* 428A8 800674A8 AC800024 */ sw $zero, 0x24($a0) -/* 428AC 800674AC AC880028 */ sw $t0, 0x28($a0) -/* 428B0 800674B0 AC80002C */ sw $zero, 0x2C($a0) -/* 428B4 800674B4 AC800030 */ sw $zero, 0x30($a0) -/* 428B8 800674B8 AC800034 */ sw $zero, 0x34($a0) -/* 428BC 800674BC AC800038 */ sw $zero, 0x38($a0) -/* 428C0 800674C0 03E00008 */ jr $ra -/* 428C4 800674C4 AC88003C */ sw $t0, 0x3C($a0) -/* 428C8 800674C8 00000000 */ nop -/* 428CC 800674CC 00000000 */ nop -/* 428D0 800674D0 00000000 */ nop -/* 428D4 800674D4 00000000 */ nop -/* 428D8 800674D8 00000000 */ nop -/* 428DC 800674DC 00000000 */ nop diff --git a/ver/jp/asm/os/guMtxL2F.s b/ver/jp/asm/os/guMtxL2F.s deleted file mode 100644 index 770cbd6504..0000000000 --- a/ver/jp/asm/os/guMtxL2F.s +++ /dev/null @@ -1,45 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guMtxL2F -/* 42960 80067560 3C013780 */ lui $at, (0x37800000 >> 16) -/* 42964 80067564 44810000 */ mtc1 $at, $f0 -/* 42968 80067568 3C19FFFF */ lui $t9, (0xFFFF0000 >> 16) -/* 4296C 8006756C 24B80020 */ addiu $t8, $a1, 0x20 -.LJP_80067570: -/* 42970 80067570 8CA80000 */ lw $t0, 0x0($a1) -/* 42974 80067574 8CA90020 */ lw $t1, 0x20($a1) -/* 42978 80067578 01195024 */ and $t2, $t0, $t9 -/* 4297C 8006757C 00095C02 */ srl $t3, $t1, 16 -/* 42980 80067580 014B6025 */ or $t4, $t2, $t3 -/* 42984 80067584 00086C00 */ sll $t5, $t0, 16 -/* 42988 80067588 312EFFFF */ andi $t6, $t1, 0xFFFF -/* 4298C 8006758C 01AE7825 */ or $t7, $t5, $t6 -/* 42990 80067590 448C2000 */ mtc1 $t4, $f4 -/* 42994 80067594 00000000 */ nop -/* 42998 80067598 468021A0 */ cvt.s.w $f6, $f4 -/* 4299C 8006759C 46003202 */ mul.s $f8, $f6, $f0 -/* 429A0 800675A0 448F5000 */ mtc1 $t7, $f10 -/* 429A4 800675A4 00000000 */ nop -/* 429A8 800675A8 46805420 */ cvt.s.w $f16, $f10 -/* 429AC 800675AC 46008482 */ mul.s $f18, $f16, $f0 -/* 429B0 800675B0 E4880000 */ swc1 $f8, 0x0($a0) -/* 429B4 800675B4 E4920004 */ swc1 $f18, 0x4($a0) -/* 429B8 800675B8 24A50004 */ addiu $a1, $a1, 0x4 -/* 429BC 800675BC 14B8FFEC */ bne $a1, $t8, .LJP_80067570 -/* 429C0 800675C0 24840008 */ addiu $a0, $a0, 0x8 -/* 429C4 800675C4 03E00008 */ jr $ra -/* 429C8 800675C8 00000000 */ nop -/* 429CC 800675CC 00000000 */ nop -/* 429D0 800675D0 00000000 */ nop -/* 429D4 800675D4 00000000 */ nop -/* 429D8 800675D8 00000000 */ nop -/* 429DC 800675DC 00000000 */ nop diff --git a/ver/jp/asm/os/guNormalize.s b/ver/jp/asm/os/guNormalize.s deleted file mode 100644 index b8e61f980d..0000000000 --- a/ver/jp/asm/os/guNormalize.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guNormalize -/* 47FA0 8006CBA0 C4840000 */ lwc1 $f4, 0x0($a0) -/* 47FA4 8006CBA4 C4A60000 */ lwc1 $f6, 0x0($a1) -/* 47FA8 8006CBA8 C4C80000 */ lwc1 $f8, 0x0($a2) -/* 47FAC 8006CBAC 46042282 */ mul.s $f10, $f4, $f4 -/* 47FB0 8006CBB0 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 47FB4 8006CBB4 46063402 */ mul.s $f16, $f6, $f6 -/* 47FB8 8006CBB8 46105480 */ add.s $f18, $f10, $f16 -/* 47FBC 8006CBBC 46084402 */ mul.s $f16, $f8, $f8 -/* 47FC0 8006CBC0 46128280 */ add.s $f10, $f16, $f18 -/* 47FC4 8006CBC4 44889000 */ mtc1 $t0, $f18 -/* 47FC8 8006CBC8 46005404 */ sqrt.s $f16, $f10 -/* 47FCC 8006CBCC 46109283 */ div.s $f10, $f18, $f16 -/* 47FD0 8006CBD0 460A2402 */ mul.s $f16, $f4, $f10 -/* 47FD4 8006CBD4 00000000 */ nop -/* 47FD8 8006CBD8 460A3482 */ mul.s $f18, $f6, $f10 -/* 47FDC 8006CBDC 00000000 */ nop -/* 47FE0 8006CBE0 460A4102 */ mul.s $f4, $f8, $f10 -/* 47FE4 8006CBE4 E4900000 */ swc1 $f16, 0x0($a0) -/* 47FE8 8006CBE8 E4B20000 */ swc1 $f18, 0x0($a1) -/* 47FEC 8006CBEC 03E00008 */ jr $ra -/* 47FF0 8006CBF0 E4C40000 */ swc1 $f4, 0x0($a2) -/* 47FF4 8006CBF4 00000000 */ nop -/* 47FF8 8006CBF8 00000000 */ nop -/* 47FFC 8006CBFC 00000000 */ nop diff --git a/ver/jp/asm/os/guScale.s b/ver/jp/asm/os/guScale.s deleted file mode 100644 index f369fc0a6c..0000000000 --- a/ver/jp/asm/os/guScale.s +++ /dev/null @@ -1,60 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guScale -/* 42AE0 800676E0 3C014780 */ lui $at, (0x47800000 >> 16) -/* 42AE4 800676E4 44812000 */ mtc1 $at, $f4 -/* 42AE8 800676E8 44853000 */ mtc1 $a1, $f6 -/* 42AEC 800676EC 00000000 */ nop -/* 42AF0 800676F0 46043202 */ mul.s $f8, $f6, $f4 -/* 42AF4 800676F4 4600428D */ trunc.w.s $f10, $f8 -/* 42AF8 800676F8 44095000 */ mfc1 $t1, $f10 -/* 42AFC 800676FC 00000000 */ nop -/* 42B00 80067700 00095402 */ srl $t2, $t1, 16 -/* 42B04 80067704 000A4400 */ sll $t0, $t2, 16 -/* 42B08 80067708 AC880000 */ sw $t0, 0x0($a0) -/* 42B0C 8006770C 00095400 */ sll $t2, $t1, 16 -/* 42B10 80067710 AC8A0020 */ sw $t2, 0x20($a0) -/* 42B14 80067714 44863000 */ mtc1 $a2, $f6 -/* 42B18 80067718 00000000 */ nop -/* 42B1C 8006771C 46043202 */ mul.s $f8, $f6, $f4 -/* 42B20 80067720 4600428D */ trunc.w.s $f10, $f8 -/* 42B24 80067724 44095000 */ mfc1 $t1, $f10 -/* 42B28 80067728 00000000 */ nop -/* 42B2C 8006772C 00094402 */ srl $t0, $t1, 16 -/* 42B30 80067730 AC880008 */ sw $t0, 0x8($a0) -/* 42B34 80067734 312AFFFF */ andi $t2, $t1, 0xFFFF -/* 42B38 80067738 AC8A0028 */ sw $t2, 0x28($a0) -/* 42B3C 8006773C 44873000 */ mtc1 $a3, $f6 -/* 42B40 80067740 00000000 */ nop -/* 42B44 80067744 46043202 */ mul.s $f8, $f6, $f4 -/* 42B48 80067748 4600428D */ trunc.w.s $f10, $f8 -/* 42B4C 8006774C 44095000 */ mfc1 $t1, $f10 -/* 42B50 80067750 00000000 */ nop -/* 42B54 80067754 00095402 */ srl $t2, $t1, 16 -/* 42B58 80067758 000A4400 */ sll $t0, $t2, 16 -/* 42B5C 8006775C AC880014 */ sw $t0, 0x14($a0) -/* 42B60 80067760 00095400 */ sll $t2, $t1, 16 -/* 42B64 80067764 AC8A0034 */ sw $t2, 0x34($a0) -/* 42B68 80067768 24080001 */ addiu $t0, $zero, 0x1 -/* 42B6C 8006776C AC88001C */ sw $t0, 0x1C($a0) -/* 42B70 80067770 AC800004 */ sw $zero, 0x4($a0) -/* 42B74 80067774 AC80000C */ sw $zero, 0xC($a0) -/* 42B78 80067778 AC800010 */ sw $zero, 0x10($a0) -/* 42B7C 8006777C AC800018 */ sw $zero, 0x18($a0) -/* 42B80 80067780 AC800024 */ sw $zero, 0x24($a0) -/* 42B84 80067784 AC80002C */ sw $zero, 0x2C($a0) -/* 42B88 80067788 AC800030 */ sw $zero, 0x30($a0) -/* 42B8C 8006778C AC800038 */ sw $zero, 0x38($a0) -/* 42B90 80067790 03E00008 */ jr $ra -/* 42B94 80067794 AC80003C */ sw $zero, 0x3C($a0) -/* 42B98 80067798 00000000 */ nop -/* 42B9C 8006779C 00000000 */ nop diff --git a/ver/jp/asm/os/guScaleF.s b/ver/jp/asm/os/guScaleF.s deleted file mode 100644 index dec5974b56..0000000000 --- a/ver/jp/asm/os/guScaleF.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guScaleF -/* 42BA0 800677A0 AC850000 */ sw $a1, 0x0($a0) -/* 42BA4 800677A4 AC800004 */ sw $zero, 0x4($a0) -/* 42BA8 800677A8 AC800008 */ sw $zero, 0x8($a0) -/* 42BAC 800677AC AC80000C */ sw $zero, 0xC($a0) -/* 42BB0 800677B0 AC800010 */ sw $zero, 0x10($a0) -/* 42BB4 800677B4 AC860014 */ sw $a2, 0x14($a0) -/* 42BB8 800677B8 AC800018 */ sw $zero, 0x18($a0) -/* 42BBC 800677BC AC80001C */ sw $zero, 0x1C($a0) -/* 42BC0 800677C0 AC800020 */ sw $zero, 0x20($a0) -/* 42BC4 800677C4 AC800024 */ sw $zero, 0x24($a0) -/* 42BC8 800677C8 AC870028 */ sw $a3, 0x28($a0) -/* 42BCC 800677CC AC80002C */ sw $zero, 0x2C($a0) -/* 42BD0 800677D0 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 42BD4 800677D4 AC800030 */ sw $zero, 0x30($a0) -/* 42BD8 800677D8 AC800034 */ sw $zero, 0x34($a0) -/* 42BDC 800677DC AC800038 */ sw $zero, 0x38($a0) -/* 42BE0 800677E0 03E00008 */ jr $ra -/* 42BE4 800677E4 AC88003C */ sw $t0, 0x3C($a0) -/* 42BE8 800677E8 00000000 */ nop -/* 42BEC 800677EC 00000000 */ nop -/* 42BF0 800677F0 00000000 */ nop -/* 42BF4 800677F4 00000000 */ nop -/* 42BF8 800677F8 00000000 */ nop -/* 42BFC 800677FC 00000000 */ nop diff --git a/ver/jp/asm/os/guTranslate.s b/ver/jp/asm/os/guTranslate.s deleted file mode 100644 index 7cd5009d44..0000000000 --- a/ver/jp/asm/os/guTranslate.s +++ /dev/null @@ -1,68 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guTranslate -/* 42C00 80067800 3C014780 */ lui $at, (0x47800000 >> 16) -/* 42C04 80067804 44812000 */ mtc1 $at, $f4 -/* 42C08 80067808 44853000 */ mtc1 $a1, $f6 -/* 42C0C 8006780C 00000000 */ nop -/* 42C10 80067810 46043202 */ mul.s $f8, $f6, $f4 -/* 42C14 80067814 4600428D */ trunc.w.s $f10, $f8 -/* 42C18 80067818 44095000 */ mfc1 $t1, $f10 -/* 42C1C 8006781C 44863000 */ mtc1 $a2, $f6 -/* 42C20 80067820 00000000 */ nop -/* 42C24 80067824 46043202 */ mul.s $f8, $f6, $f4 -/* 42C28 80067828 4600428D */ trunc.w.s $f10, $f8 -/* 42C2C 8006782C 440B5000 */ mfc1 $t3, $f10 -/* 42C30 80067830 00095402 */ srl $t2, $t1, 16 -/* 42C34 80067834 000A4400 */ sll $t0, $t2, 16 -/* 42C38 80067838 000B5402 */ srl $t2, $t3, 16 -/* 42C3C 8006783C 010A4025 */ or $t0, $t0, $t2 -/* 42C40 80067840 AC880018 */ sw $t0, 0x18($a0) -/* 42C44 80067844 00094400 */ sll $t0, $t1, 16 -/* 42C48 80067848 000B5400 */ sll $t2, $t3, 16 -/* 42C4C 8006784C 000A5402 */ srl $t2, $t2, 16 -/* 42C50 80067850 010A4025 */ or $t0, $t0, $t2 -/* 42C54 80067854 AC880038 */ sw $t0, 0x38($a0) -/* 42C58 80067858 44873000 */ mtc1 $a3, $f6 -/* 42C5C 8006785C 00000000 */ nop -/* 42C60 80067860 46043202 */ mul.s $f8, $f6, $f4 -/* 42C64 80067864 4600428D */ trunc.w.s $f10, $f8 -/* 42C68 80067868 44095000 */ mfc1 $t1, $f10 -/* 42C6C 8006786C 00000000 */ nop -/* 42C70 80067870 00095402 */ srl $t2, $t1, 16 -/* 42C74 80067874 000A4400 */ sll $t0, $t2, 16 -/* 42C78 80067878 25080001 */ addiu $t0, $t0, 0x1 -/* 42C7C 8006787C AC88001C */ sw $t0, 0x1C($a0) -/* 42C80 80067880 00095400 */ sll $t2, $t1, 16 -/* 42C84 80067884 AC8A003C */ sw $t2, 0x3C($a0) -/* 42C88 80067888 AC800000 */ sw $zero, 0x0($a0) -/* 42C8C 8006788C AC800004 */ sw $zero, 0x4($a0) -/* 42C90 80067890 AC800008 */ sw $zero, 0x8($a0) -/* 42C94 80067894 AC80000C */ sw $zero, 0xC($a0) -/* 42C98 80067898 AC800010 */ sw $zero, 0x10($a0) -/* 42C9C 8006789C AC800014 */ sw $zero, 0x14($a0) -/* 42CA0 800678A0 AC800020 */ sw $zero, 0x20($a0) -/* 42CA4 800678A4 AC800024 */ sw $zero, 0x24($a0) -/* 42CA8 800678A8 AC800028 */ sw $zero, 0x28($a0) -/* 42CAC 800678AC AC80002C */ sw $zero, 0x2C($a0) -/* 42CB0 800678B0 AC800030 */ sw $zero, 0x30($a0) -/* 42CB4 800678B4 AC800034 */ sw $zero, 0x34($a0) -/* 42CB8 800678B8 3C080001 */ lui $t0, (0x10000 >> 16) -/* 42CBC 800678BC 35080000 */ ori $t0, $t0, (0x10000 & 0xFFFF) -/* 42CC0 800678C0 AC880000 */ sw $t0, 0x0($a0) -/* 42CC4 800678C4 AC880014 */ sw $t0, 0x14($a0) -/* 42CC8 800678C8 3C080000 */ lui $t0, (0x1 >> 16) -/* 42CCC 800678CC 35080001 */ ori $t0, $t0, (0x1 & 0xFFFF) -/* 42CD0 800678D0 03E00008 */ jr $ra -/* 42CD4 800678D4 AC880008 */ sw $t0, 0x8($a0) -/* 42CD8 800678D8 00000000 */ nop -/* 42CDC 800678DC 00000000 */ nop diff --git a/ver/jp/asm/os/guTranslateF.s b/ver/jp/asm/os/guTranslateF.s deleted file mode 100644 index d762243c52..0000000000 --- a/ver/jp/asm/os/guTranslateF.s +++ /dev/null @@ -1,36 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel guTranslateF -/* 42CE0 800678E0 3C083F80 */ lui $t0, (0x3F800000 >> 16) -/* 42CE4 800678E4 AC880000 */ sw $t0, 0x0($a0) -/* 42CE8 800678E8 AC800004 */ sw $zero, 0x4($a0) -/* 42CEC 800678EC AC800008 */ sw $zero, 0x8($a0) -/* 42CF0 800678F0 AC80000C */ sw $zero, 0xC($a0) -/* 42CF4 800678F4 AC800010 */ sw $zero, 0x10($a0) -/* 42CF8 800678F8 AC880014 */ sw $t0, 0x14($a0) -/* 42CFC 800678FC AC800018 */ sw $zero, 0x18($a0) -/* 42D00 80067900 AC80001C */ sw $zero, 0x1C($a0) -/* 42D04 80067904 AC800020 */ sw $zero, 0x20($a0) -/* 42D08 80067908 AC800024 */ sw $zero, 0x24($a0) -/* 42D0C 8006790C AC880028 */ sw $t0, 0x28($a0) -/* 42D10 80067910 AC80002C */ sw $zero, 0x2C($a0) -/* 42D14 80067914 AC850030 */ sw $a1, 0x30($a0) -/* 42D18 80067918 AC860034 */ sw $a2, 0x34($a0) -/* 42D1C 8006791C AC870038 */ sw $a3, 0x38($a0) -/* 42D20 80067920 03E00008 */ jr $ra -/* 42D24 80067924 AC88003C */ sw $t0, 0x3C($a0) -/* 42D28 80067928 00000000 */ nop -/* 42D2C 8006792C 00000000 */ nop -/* 42D30 80067930 00000000 */ nop -/* 42D34 80067934 00000000 */ nop -/* 42D38 80067938 00000000 */ nop -/* 42D3C 8006793C 00000000 */ nop diff --git a/ver/jp/asm/os/osGetCount.s b/ver/jp/asm/os/osGetCount.s deleted file mode 100644 index de84efd3d0..0000000000 --- a/ver/jp/asm/os/osGetCount.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osGetCount -/* 40DD0 800659D0 40024800 */ mfc0 $v0, $9 # handwritten instruction -/* 40DD4 800659D4 03E00008 */ jr $ra -/* 40DD8 800659D8 00000000 */ nop -/* 40DDC 800659DC 00000000 */ nop diff --git a/ver/jp/asm/os/osInvalDCache.s b/ver/jp/asm/os/osInvalDCache.s deleted file mode 100644 index 73ea2d9d6f..0000000000 --- a/ver/jp/asm/os/osInvalDCache.s +++ /dev/null @@ -1,62 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osInvalDCache -/* 3CAF0 800616F0 18A00020 */ blez $a1, .LJP_80061774 -/* 3CAF4 800616F4 00000000 */ nop -/* 3CAF8 800616F8 240B2000 */ addiu $t3, $zero, 0x2000 -/* 3CAFC 800616FC 00AB082B */ sltu $at, $a1, $t3 -/* 3CB00 80061700 1020001E */ beqz $at, .LJP_8006177C -/* 3CB04 80061704 00000000 */ nop -/* 3CB08 80061708 00804021 */ addu $t0, $a0, $zero -/* 3CB0C 8006170C 00854821 */ addu $t1, $a0, $a1 -/* 3CB10 80061710 0109082B */ sltu $at, $t0, $t1 -/* 3CB14 80061714 10200017 */ beqz $at, .LJP_80061774 -/* 3CB18 80061718 00000000 */ nop -/* 3CB1C 8006171C 2529FFF0 */ addiu $t1, $t1, -0x10 -/* 3CB20 80061720 310A000F */ andi $t2, $t0, 0xF -/* 3CB24 80061724 11400007 */ beqz $t2, .LJP_80061744 -/* 3CB28 80061728 00000000 */ nop -/* 3CB2C 8006172C 010A4023 */ subu $t0, $t0, $t2 -/* 3CB30 80061730 BD150000 */ cache 0x15, 0x0($t0) # handwritten instruction -/* 3CB34 80061734 0109082B */ sltu $at, $t0, $t1 -/* 3CB38 80061738 1020000E */ beqz $at, .LJP_80061774 -/* 3CB3C 8006173C 00000000 */ nop -/* 3CB40 80061740 25080010 */ addiu $t0, $t0, 0x10 -.LJP_80061744: -/* 3CB44 80061744 312A000F */ andi $t2, $t1, 0xF -/* 3CB48 80061748 11400006 */ beqz $t2, .LJP_80061764 -/* 3CB4C 8006174C 00000000 */ nop -/* 3CB50 80061750 012A4823 */ subu $t1, $t1, $t2 -/* 3CB54 80061754 BD350010 */ cache 0x15, 0x10($t1) # handwritten instruction -/* 3CB58 80061758 0128082B */ sltu $at, $t1, $t0 -/* 3CB5C 8006175C 14200005 */ bnez $at, .LJP_80061774 -/* 3CB60 80061760 00000000 */ nop -.LJP_80061764: -/* 3CB64 80061764 BD110000 */ cache 0x11, 0x0($t0) # handwritten instruction -/* 3CB68 80061768 0109082B */ sltu $at, $t0, $t1 -/* 3CB6C 8006176C 1420FFFD */ bnez $at, .LJP_80061764 -/* 3CB70 80061770 25080010 */ addiu $t0, $t0, 0x10 -.LJP_80061774: -/* 3CB74 80061774 03E00008 */ jr $ra -/* 3CB78 80061778 00000000 */ nop -.LJP_8006177C: -/* 3CB7C 8006177C 3C088000 */ lui $t0, 0x8000 -/* 3CB80 80061780 010B4821 */ addu $t1, $t0, $t3 -/* 3CB84 80061784 2529FFF0 */ addiu $t1, $t1, -0x10 -.LJP_80061788: -/* 3CB88 80061788 BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3CB8C 8006178C 0109082B */ sltu $at, $t0, $t1 -/* 3CB90 80061790 1420FFFD */ bnez $at, .LJP_80061788 -/* 3CB94 80061794 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3CB98 80061798 03E00008 */ jr $ra -/* 3CB9C 8006179C 00000000 */ nop diff --git a/ver/jp/asm/os/osInvalICache.s b/ver/jp/asm/os/osInvalICache.s deleted file mode 100644 index 2cdce3c6fd..0000000000 --- a/ver/jp/asm/os/osInvalICache.s +++ /dev/null @@ -1,49 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osInvalICache -/* 3CBA0 800617A0 18A00011 */ blez $a1, .LJP_800617E8 -/* 3CBA4 800617A4 00000000 */ nop -/* 3CBA8 800617A8 240B4000 */ addiu $t3, $zero, 0x4000 -/* 3CBAC 800617AC 00AB082B */ sltu $at, $a1, $t3 -/* 3CBB0 800617B0 1020000F */ beqz $at, .LJP_800617F0 -/* 3CBB4 800617B4 00000000 */ nop -/* 3CBB8 800617B8 00804021 */ addu $t0, $a0, $zero -/* 3CBBC 800617BC 00854821 */ addu $t1, $a0, $a1 -/* 3CBC0 800617C0 0109082B */ sltu $at, $t0, $t1 -/* 3CBC4 800617C4 10200008 */ beqz $at, .LJP_800617E8 -/* 3CBC8 800617C8 00000000 */ nop -/* 3CBCC 800617CC 2529FFE0 */ addiu $t1, $t1, -0x20 -/* 3CBD0 800617D0 310A001F */ andi $t2, $t0, 0x1F -/* 3CBD4 800617D4 010A4023 */ subu $t0, $t0, $t2 -.LJP_800617D8: -/* 3CBD8 800617D8 BD100000 */ cache 0x10, 0x0($t0) # handwritten instruction -/* 3CBDC 800617DC 0109082B */ sltu $at, $t0, $t1 -/* 3CBE0 800617E0 1420FFFD */ bnez $at, .LJP_800617D8 -/* 3CBE4 800617E4 25080020 */ addiu $t0, $t0, 0x20 -.LJP_800617E8: -/* 3CBE8 800617E8 03E00008 */ jr $ra -/* 3CBEC 800617EC 00000000 */ nop -.LJP_800617F0: -/* 3CBF0 800617F0 3C088000 */ lui $t0, 0x8000 -/* 3CBF4 800617F4 010B4821 */ addu $t1, $t0, $t3 -/* 3CBF8 800617F8 2529FFE0 */ addiu $t1, $t1, -0x20 -.LJP_800617FC: -/* 3CBFC 800617FC BD000000 */ cache 0x00, 0x0($t0) # handwritten instruction -/* 3CC00 80061800 0109082B */ sltu $at, $t0, $t1 -/* 3CC04 80061804 1420FFFD */ bnez $at, .LJP_800617FC -/* 3CC08 80061808 25080020 */ addiu $t0, $t0, (0x80000020 & 0xFFFF) -/* 3CC0C 8006180C 03E00008 */ jr $ra -/* 3CC10 80061810 00000000 */ nop -/* 3CC14 80061814 00000000 */ nop -/* 3CC18 80061818 00000000 */ nop -/* 3CC1C 8006181C 00000000 */ nop diff --git a/ver/jp/asm/os/osMapTLB.s b/ver/jp/asm/os/osMapTLB.s deleted file mode 100644 index c273b08b30..0000000000 --- a/ver/jp/asm/os/osMapTLB.s +++ /dev/null @@ -1,67 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osMapTLB -/* 41B70 80066770 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 41B74 80066774 40840000 */ mtc0 $a0, $0 # handwritten instruction -/* 41B78 80066778 40852800 */ mtc0 $a1, $5 # handwritten instruction -/* 41B7C 8006677C 8FA90014 */ lw $t1, 0x14($sp) -/* 41B80 80066780 2401FFFF */ addiu $at, $zero, -0x1 -/* 41B84 80066784 11210004 */ beq $t1, $at, .LJP_80066798 -/* 41B88 80066788 240C0001 */ addiu $t4, $zero, 0x1 -/* 41B8C 8006678C 240A001E */ addiu $t2, $zero, 0x1E -/* 41B90 80066790 10000002 */ b .LJP_8006679C -/* 41B94 80066794 00C93025 */ or $a2, $a2, $t1 -.LJP_80066798: -/* 41B98 80066798 240A001F */ addiu $t2, $zero, 0x1F -.LJP_8006679C: -/* 41B9C 8006679C 40865000 */ mtc0 $a2, $10 # handwritten instruction -/* 41BA0 800667A0 2401FFFF */ addiu $at, $zero, -0x1 -/* 41BA4 800667A4 10E10006 */ beq $a3, $at, .LJP_800667C0 -/* 41BA8 800667A8 00000000 */ nop -/* 41BAC 800667AC 00075982 */ srl $t3, $a3, 6 -/* 41BB0 800667B0 016A5825 */ or $t3, $t3, $t2 -/* 41BB4 800667B4 408B1000 */ mtc0 $t3, $2 # handwritten instruction -/* 41BB8 800667B8 10000002 */ b .LJP_800667C4 -/* 41BBC 800667BC 00000000 */ nop -.LJP_800667C0: -/* 41BC0 800667C0 408C1000 */ mtc0 $t4, $2 # handwritten instruction -.LJP_800667C4: -/* 41BC4 800667C4 8FAB0010 */ lw $t3, 0x10($sp) -/* 41BC8 800667C8 2401FFFF */ addiu $at, $zero, -0x1 -/* 41BCC 800667CC 11610006 */ beq $t3, $at, .LJP_800667E8 -/* 41BD0 800667D0 00000000 */ nop -/* 41BD4 800667D4 000B5982 */ srl $t3, $t3, 6 -/* 41BD8 800667D8 016A5825 */ or $t3, $t3, $t2 -/* 41BDC 800667DC 408B1800 */ mtc0 $t3, $3 # handwritten instruction -/* 41BE0 800667E0 10000007 */ b .LJP_80066800 -/* 41BE4 800667E4 00000000 */ nop -.LJP_800667E8: -/* 41BE8 800667E8 408C1800 */ mtc0 $t4, $3 # handwritten instruction -/* 41BEC 800667EC 2401FFFF */ addiu $at, $zero, -0x1 -/* 41BF0 800667F0 14E10003 */ bne $a3, $at, .LJP_80066800 -/* 41BF4 800667F4 00000000 */ nop -/* 41BF8 800667F8 3C0B8000 */ lui $t3, (0x80000000 >> 16) -/* 41BFC 800667FC 408B5000 */ mtc0 $t3, $10 # handwritten instruction -.LJP_80066800: -/* 41C00 80066800 00000000 */ nop -/* 41C04 80066804 42000002 */ tlbwi # handwritten instruction -/* 41C08 80066808 00000000 */ nop -/* 41C0C 8006680C 00000000 */ nop -/* 41C10 80066810 00000000 */ nop -/* 41C14 80066814 00000000 */ nop -/* 41C18 80066818 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 41C1C 8006681C 03E00008 */ jr $ra -/* 41C20 80066820 00000000 */ nop -/* 41C24 80066824 00000000 */ nop -/* 41C28 80066828 00000000 */ nop -/* 41C2C 8006682C 00000000 */ nop diff --git a/ver/jp/asm/os/osMapTLBRdb.s b/ver/jp/asm/os/osMapTLBRdb.s deleted file mode 100644 index 6a9618bb5b..0000000000 --- a/ver/jp/asm/os/osMapTLBRdb.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osMapTLBRdb -/* 47E10 8006CA10 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 47E14 8006CA14 2409001F */ addiu $t1, $zero, 0x1F -/* 47E18 8006CA18 40890000 */ mtc0 $t1, $0 # handwritten instruction -/* 47E1C 8006CA1C 40802800 */ mtc0 $zero, $5 # handwritten instruction -/* 47E20 8006CA20 240A0017 */ addiu $t2, $zero, 0x17 -/* 47E24 8006CA24 3C09C000 */ lui $t1, (0xC0000000 >> 16) -/* 47E28 8006CA28 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 47E2C 8006CA2C 3C098000 */ lui $t1, (0x80000000 >> 16) -/* 47E30 8006CA30 00095982 */ srl $t3, $t1, 6 -/* 47E34 8006CA34 016A5825 */ or $t3, $t3, $t2 -/* 47E38 8006CA38 408B1000 */ mtc0 $t3, $2 # handwritten instruction -/* 47E3C 8006CA3C 24090001 */ addiu $t1, $zero, 0x1 -/* 47E40 8006CA40 40891800 */ mtc0 $t1, $3 # handwritten instruction -/* 47E44 8006CA44 00000000 */ nop -/* 47E48 8006CA48 42000002 */ tlbwi # handwritten instruction -/* 47E4C 8006CA4C 00000000 */ nop -/* 47E50 8006CA50 00000000 */ nop -/* 47E54 8006CA54 00000000 */ nop -/* 47E58 8006CA58 00000000 */ nop -/* 47E5C 8006CA5C 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 47E60 8006CA60 03E00008 */ jr $ra -/* 47E64 8006CA64 00000000 */ nop -/* 47E68 8006CA68 00000000 */ nop -/* 47E6C 8006CA6C 00000000 */ nop diff --git a/ver/jp/asm/os/osSetIntMask.s b/ver/jp/asm/os/osSetIntMask.s deleted file mode 100644 index 55900940eb..0000000000 --- a/ver/jp/asm/os/osSetIntMask.s +++ /dev/null @@ -1,122 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .rodata - -glabel D_80099AA0 -/* 74E80 80099A80 */ .short 0x0555 -/* 74E82 80099A82 */ .short 0x0556 -/* 74E84 80099A84 */ .short 0x0559 -/* 74E86 80099A86 */ .short 0x055A -/* 74E88 80099A88 */ .short 0x0565 -/* 74E8A 80099A8A */ .short 0x0566 -/* 74E8C 80099A8C */ .short 0x0569 -/* 74E8E 80099A8E */ .short 0x056A -/* 74E90 80099A90 */ .short 0x0595 -/* 74E92 80099A92 */ .short 0x0596 -/* 74E94 80099A94 */ .short 0x0599 -/* 74E96 80099A96 */ .short 0x059A -/* 74E98 80099A98 */ .short 0x05A5 -/* 74E9A 80099A9A */ .short 0x05A6 -/* 74E9C 80099A9C */ .short 0x05A9 -/* 74E9E 80099A9E */ .short 0x05AA -/* 74EA0 80099AA0 */ .short 0x0655 -/* 74EA2 80099AA2 */ .short 0x0656 -/* 74EA4 80099AA4 */ .short 0x0659 -/* 74EA6 80099AA6 */ .short 0x065A -/* 74EA8 80099AA8 */ .short 0x0665 -/* 74EAA 80099AAA */ .short 0x0666 -/* 74EAC 80099AAC */ .short 0x0669 -/* 74EAE 80099AAE */ .short 0x066A -/* 74EB0 80099AB0 */ .short 0x0695 -/* 74EB2 80099AB2 */ .short 0x0696 -/* 74EB4 80099AB4 */ .short 0x0699 -/* 74EB6 80099AB6 */ .short 0x069A -/* 74EB8 80099AB8 */ .short 0x06A5 -/* 74EBA 80099ABA */ .short 0x06A6 -/* 74EBC 80099ABC */ .short 0x06A9 -/* 74EBE 80099ABE */ .short 0x06AA -/* 74EC0 80099AC0 */ .short 0x0955 -/* 74EC2 80099AC2 */ .short 0x0956 -/* 74EC4 80099AC4 */ .short 0x0959 -/* 74EC6 80099AC6 */ .short 0x095A -/* 74EC8 80099AC8 */ .short 0x0965 -/* 74ECA 80099ACA */ .short 0x0966 -/* 74ECC 80099ACC */ .short 0x0969 -/* 74ECE 80099ACE */ .short 0x096A -/* 74ED0 80099AD0 */ .short 0x0995 -/* 74ED2 80099AD2 */ .short 0x0996 -/* 74ED4 80099AD4 */ .short 0x0999 -/* 74ED6 80099AD6 */ .short 0x099A -/* 74ED8 80099AD8 */ .short 0x09A5 -/* 74EDA 80099ADA */ .short 0x09A6 -/* 74EDC 80099ADC */ .short 0x09A9 -/* 74EDE 80099ADE */ .short 0x09AA -/* 74EE0 80099AE0 */ .short 0x0A55 -/* 74EE2 80099AE2 */ .short 0x0A56 -/* 74EE4 80099AE4 */ .short 0x0A59 -/* 74EE6 80099AE6 */ .short 0x0A5A -/* 74EE8 80099AE8 */ .short 0x0A65 -/* 74EEA 80099AEA */ .short 0x0A66 -/* 74EEC 80099AEC */ .short 0x0A69 -/* 74EEE 80099AEE */ .short 0x0A6A -/* 74EF0 80099AF0 */ .short 0x0A95 -/* 74EF2 80099AF2 */ .short 0x0A96 -/* 74EF4 80099AF4 */ .short 0x0A99 -/* 74EF6 80099AF6 */ .short 0x0A9A -/* 74EF8 80099AF8 */ .short 0x0AA5 -/* 74EFA 80099AFA */ .short 0x0AA6 -/* 74EFC 80099AFC */ .short 0x0AA9 -/* 74EFE 80099AFE */ .short 0x0AAA - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osSetIntMask -/* 3BD10 80060910 400C6000 */ mfc0 $t4, $12 # handwritten instruction -/* 3BD14 80060914 3182FF01 */ andi $v0, $t4, 0xFF01 -/* 3BD18 80060918 3C088009 */ lui $t0, %hi(__OSGlobalIntMask) -/* 3BD1C 8006091C 25085890 */ addiu $t0, $t0, %lo(__OSGlobalIntMask) -/* 3BD20 80060920 8D0B0000 */ lw $t3, 0x0($t0) -/* 3BD24 80060924 2401FFFF */ addiu $at, $zero, -0x1 -/* 3BD28 80060928 01614026 */ xor $t0, $t3, $at -/* 3BD2C 8006092C 3108FF00 */ andi $t0, $t0, 0xFF00 -/* 3BD30 80060930 00481025 */ or $v0, $v0, $t0 -/* 3BD34 80060934 3C0AA430 */ lui $t2, %hi(D_A430000C) -/* 3BD38 80060938 8D4A000C */ lw $t2, %lo(D_A430000C)($t2) -/* 3BD3C 8006093C 11400005 */ beqz $t2, .LJP_80060954 -/* 3BD40 80060940 000B4C02 */ srl $t1, $t3, 16 -/* 3BD44 80060944 2401FFFF */ addiu $at, $zero, -0x1 -/* 3BD48 80060948 01214826 */ xor $t1, $t1, $at -/* 3BD4C 8006094C 3129003F */ andi $t1, $t1, 0x3F -/* 3BD50 80060950 01495025 */ or $t2, $t2, $t1 -.LJP_80060954: -/* 3BD54 80060954 000A5400 */ sll $t2, $t2, 16 -/* 3BD58 80060958 004A1025 */ or $v0, $v0, $t2 -/* 3BD5C 8006095C 3C01003F */ lui $at, (0x3F0000 >> 16) -/* 3BD60 80060960 00814024 */ and $t0, $a0, $at -/* 3BD64 80060964 010B4024 */ and $t0, $t0, $t3 -/* 3BD68 80060968 000843C2 */ srl $t0, $t0, 15 -/* 3BD6C 8006096C 3C0A800A */ lui $t2, %hi(D_80099AA0) -/* 3BD70 80060970 01485021 */ addu $t2, $t2, $t0 -/* 3BD74 80060974 954A9A80 */ lhu $t2, %lo(D_80099AA0)($t2) -/* 3BD78 80060978 3C01A430 */ lui $at, %hi(D_A430000C) -/* 3BD7C 8006097C AC2A000C */ sw $t2, %lo(D_A430000C)($at) -/* 3BD80 80060980 3088FF01 */ andi $t0, $a0, 0xFF01 -/* 3BD84 80060984 3169FF00 */ andi $t1, $t3, 0xFF00 -/* 3BD88 80060988 01094024 */ and $t0, $t0, $t1 -/* 3BD8C 8006098C 3C01FFFF */ lui $at, (0xFFFF00FF >> 16) -/* 3BD90 80060990 342100FF */ ori $at, $at, (0xFFFF00FF & 0xFFFF) -/* 3BD94 80060994 01816024 */ and $t4, $t4, $at -/* 3BD98 80060998 01886025 */ or $t4, $t4, $t0 -/* 3BD9C 8006099C 408C6000 */ mtc0 $t4, $12 # handwritten instruction -/* 3BDA0 800609A0 00000000 */ nop -/* 3BDA4 800609A4 00000000 */ nop -/* 3BDA8 800609A8 03E00008 */ jr $ra -/* 3BDAC 800609AC 00000000 */ nop diff --git a/ver/jp/asm/os/osUnmapTLB.s b/ver/jp/asm/os/osUnmapTLB.s deleted file mode 100644 index e06b0f599e..0000000000 --- a/ver/jp/asm/os/osUnmapTLB.s +++ /dev/null @@ -1,29 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osUnmapTLB -/* 41CF0 800668F0 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 41CF4 800668F4 40840000 */ mtc0 $a0, $0 # handwritten instruction -/* 41CF8 800668F8 3C098000 */ lui $t1, (0x80000000 >> 16) -/* 41CFC 800668FC 40895000 */ mtc0 $t1, $10 # handwritten instruction -/* 41D00 80066900 40801000 */ mtc0 $zero, $2 # handwritten instruction -/* 41D04 80066904 40801800 */ mtc0 $zero, $3 # handwritten instruction -/* 41D08 80066908 00000000 */ nop -/* 41D0C 8006690C 42000002 */ tlbwi # handwritten instruction -/* 41D10 80066910 00000000 */ nop -/* 41D14 80066914 00000000 */ nop -/* 41D18 80066918 00000000 */ nop -/* 41D1C 8006691C 00000000 */ nop -/* 41D20 80066920 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 41D24 80066924 03E00008 */ jr $ra -/* 41D28 80066928 00000000 */ nop -/* 41D2C 8006692C 00000000 */ nop diff --git a/ver/jp/asm/os/osUnmapTLBAll.s b/ver/jp/asm/os/osUnmapTLBAll.s deleted file mode 100644 index 3432d85477..0000000000 --- a/ver/jp/asm/os/osUnmapTLBAll.s +++ /dev/null @@ -1,34 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osUnmapTLBAll -/* 41D30 80066930 40085000 */ mfc0 $t0, $10 # handwritten instruction -/* 41D34 80066934 2409001E */ addiu $t1, $zero, 0x1E -/* 41D38 80066938 3C0A8000 */ lui $t2, (0x80000000 >> 16) -/* 41D3C 8006693C 408A5000 */ mtc0 $t2, $10 # handwritten instruction -/* 41D40 80066940 40801000 */ mtc0 $zero, $2 # handwritten instruction -/* 41D44 80066944 40801800 */ mtc0 $zero, $3 # handwritten instruction -.LJP_80066948: -/* 41D48 80066948 40890000 */ mtc0 $t1, $0 # handwritten instruction -/* 41D4C 8006694C 00000000 */ nop -/* 41D50 80066950 42000002 */ tlbwi # handwritten instruction -/* 41D54 80066954 00000000 */ nop -/* 41D58 80066958 00000000 */ nop -/* 41D5C 8006695C 2129FFFF */ addi $t1, $t1, -0x1 # handwritten instruction -/* 41D60 80066960 0521FFF9 */ bgez $t1, .LJP_80066948 -/* 41D64 80066964 00000000 */ nop -/* 41D68 80066968 40885000 */ mtc0 $t0, $10 # handwritten instruction -/* 41D6C 8006696C 03E00008 */ jr $ra -/* 41D70 80066970 00000000 */ nop -/* 41D74 80066974 00000000 */ nop -/* 41D78 80066978 00000000 */ nop -/* 41D7C 8006697C 00000000 */ nop diff --git a/ver/jp/asm/os/osWritebackDCache.s b/ver/jp/asm/os/osWritebackDCache.s deleted file mode 100644 index 25414aa13d..0000000000 --- a/ver/jp/asm/os/osWritebackDCache.s +++ /dev/null @@ -1,49 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osWritebackDCache -/* 3CC20 80061820 18A00011 */ blez $a1, .LJP_80061868 -/* 3CC24 80061824 00000000 */ nop -/* 3CC28 80061828 240B2000 */ addiu $t3, $zero, 0x2000 -/* 3CC2C 8006182C 00AB082B */ sltu $at, $a1, $t3 -/* 3CC30 80061830 1020000F */ beqz $at, .LJP_80061870 -/* 3CC34 80061834 00000000 */ nop -/* 3CC38 80061838 00804021 */ addu $t0, $a0, $zero -/* 3CC3C 8006183C 00854821 */ addu $t1, $a0, $a1 -/* 3CC40 80061840 0109082B */ sltu $at, $t0, $t1 -/* 3CC44 80061844 10200008 */ beqz $at, .LJP_80061868 -/* 3CC48 80061848 00000000 */ nop -/* 3CC4C 8006184C 2529FFF0 */ addiu $t1, $t1, -0x10 -/* 3CC50 80061850 310A000F */ andi $t2, $t0, 0xF -/* 3CC54 80061854 010A4023 */ subu $t0, $t0, $t2 -.LJP_80061858: -/* 3CC58 80061858 BD190000 */ cache 0x19, 0x0($t0) # handwritten instruction -/* 3CC5C 8006185C 0109082B */ sltu $at, $t0, $t1 -/* 3CC60 80061860 1420FFFD */ bnez $at, .LJP_80061858 -/* 3CC64 80061864 25080010 */ addiu $t0, $t0, 0x10 -.LJP_80061868: -/* 3CC68 80061868 03E00008 */ jr $ra -/* 3CC6C 8006186C 00000000 */ nop -.LJP_80061870: -/* 3CC70 80061870 3C088000 */ lui $t0, 0x8000 -/* 3CC74 80061874 010B4821 */ addu $t1, $t0, $t3 -/* 3CC78 80061878 2529FFF0 */ addiu $t1, $t1, -0x10 -.LJP_8006187C: -/* 3CC7C 8006187C BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3CC80 80061880 0109082B */ sltu $at, $t0, $t1 -/* 3CC84 80061884 1420FFFD */ bnez $at, .LJP_8006187C -/* 3CC88 80061888 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3CC8C 8006188C 03E00008 */ jr $ra -/* 3CC90 80061890 00000000 */ nop -/* 3CC94 80061894 00000000 */ nop -/* 3CC98 80061898 00000000 */ nop -/* 3CC9C 8006189C 00000000 */ nop diff --git a/ver/jp/asm/os/osWritebackDCacheAll.s b/ver/jp/asm/os/osWritebackDCacheAll.s deleted file mode 100644 index d04a2af6c1..0000000000 --- a/ver/jp/asm/os/osWritebackDCacheAll.s +++ /dev/null @@ -1,26 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel osWritebackDCacheAll -/* 3CCA0 800618A0 3C088000 */ lui $t0, 0x8000 -/* 3CCA4 800618A4 240A2000 */ addiu $t2, $zero, 0x2000 -/* 3CCA8 800618A8 010A4821 */ addu $t1, $t0, $t2 -/* 3CCAC 800618AC 2529FFF0 */ addiu $t1, $t1, -0x10 -.LJP_800618B0: -/* 3CCB0 800618B0 BD010000 */ cache 0x01, 0x0($t0) # handwritten instruction -/* 3CCB4 800618B4 0109082B */ sltu $at, $t0, $t1 -/* 3CCB8 800618B8 1420FFFD */ bnez $at, .LJP_800618B0 -/* 3CCBC 800618BC 25080010 */ addiu $t0, $t0, (0x80000010 & 0xFFFF) -/* 3CCC0 800618C0 03E00008 */ jr $ra -/* 3CCC4 800618C4 00000000 */ nop -/* 3CCC8 800618C8 00000000 */ nop -/* 3CCCC 800618CC 00000000 */ nop diff --git a/ver/jp/asm/os/padding.s b/ver/jp/asm/os/padding.s deleted file mode 100644 index a343705499..0000000000 --- a/ver/jp/asm/os/padding.s +++ /dev/null @@ -1,16 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel func_JP_8006CB90 -/* 47F90 8006CB90 00000000 */ nop -/* 47F94 8006CB94 00000000 */ nop -/* 47F98 8006CB98 00000000 */ nop -/* 47F9C 8006CB9C 00000000 */ nop diff --git a/ver/jp/asm/os/parameters.s b/ver/jp/asm/os/parameters.s deleted file mode 100644 index 73d6bcc454..0000000000 --- a/ver/jp/asm/os/parameters.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .text, "ax" - -.globl leoBootID -leoBootID = 0x800001a0 - -.globl osTvType -osTvType = 0x80000300 - -.globl osRomType -osRomType = 0x80000304 - -.globl osRomBase -osRomBase = 0x80000308 - -.globl osResetType -osResetType = 0x8000030C - -.globl osCicId -osCicId = 0x80000310 - -.globl osVersion -osVersion = 0x80000314 - -.globl osMemSize -osMemSize = 0x80000318 - -.globl osAppNMIBuffer -osAppNMIBuffer = 0x8000031C - -.fill 0x60 diff --git a/ver/jp/asm/os/setfpccsr.s b/ver/jp/asm/os/setfpccsr.s deleted file mode 100644 index bf92b01561..0000000000 --- a/ver/jp/asm/os/setfpccsr.s +++ /dev/null @@ -1,16 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -glabel __osSetFpcCsr -/* 47A70 8006C670 4442F800 */ cfc1 $v0, $31 -/* 47A74 8006C674 44C4F800 */ ctc1 $a0, $31 -/* 47A78 8006C678 03E00008 */ jr $ra -/* 47A7C 8006C67C 00000000 */ nop diff --git a/ver/jp/asm/os/setsr.s b/ver/jp/asm/os/setsr.s deleted file mode 100644 index 694d3e0816..0000000000 --- a/ver/jp/asm/os/setsr.s +++ /dev/null @@ -1,17 +0,0 @@ -.include "macro.inc" - -/* assembler directives */ -.set noat /* allow manual use of $at */ -.set noreorder /* don't insert nops after branches */ -.set gp=64 /* allow use of 64-bit general purpose registers */ - -.section .text, "ax" - -/* Generated by spimdisasm 1.11.1 */ - -# Handwritten function -glabel __osSetSR -/* 47A80 8006C680 40846000 */ mtc0 $a0, $12 # handwritten instruction -/* 47A84 8006C684 00000000 */ nop -/* 47A88 8006C688 03E00008 */ jr $ra -/* 47A8C 8006C68C 00000000 */ nop diff --git a/ver/jp/splat.yaml b/ver/jp/splat.yaml index d153e7ec3d..56153f6110 100644 --- a/ver/jp/splat.yaml +++ b/ver/jp/splat.yaml @@ -26,6 +26,7 @@ options: undefined_syms_auto_path: ver/jp/undefined_syms_auto.txt symbol_name_format: JP_$VRAM symbol_name_format_no_rom: JP_$VRAM_$SEG + hasm_in_src_path: True asset_stack: - jp segments: @@ -37,14 +38,15 @@ segments: start: 0x0040 vram: 0xA4000040 subsegments: - - [0x0040, bin] + - [0x0040, hasm, boot/ipl3_boot] + - [0x0B70, bin, rspboot_font] - name: main type: code start: 0x1000 vram: 0x80025C00 subsegments: - - [auto, hasm, main.bss] - - [auto, hasm, entry_point] + - [auto, hasm, boot/entry_point] + - [auto, c, bss/main_pre_bss] - [auto, c, is_debug, -g -fforce-addr] - [auto, c, main_pre] - [auto, c, main] @@ -299,7 +301,9 @@ segments: - [auto, hasm, os/decode_yay0] - [auto, c, os/osFlash] - [0x4AC70, pm_effect_loads, effect_loads] + - [auto, c, bss/main_post_bss] - [auto, c, battle/battle] + - [auto, c, battle/battle_bss] - [0x4E580, bin, n_aspMain_text] - start: 0x4F1E0 type: .data @@ -338,7 +342,7 @@ segments: start: 0x75990 vram: 0x800dc4e0 subsegments: - - [auto, hasm, bss2] + - [auto, c, bss/engine1_pre_bss] - [auto, c, npc_collision] - [auto, c, 77480] - [auto, c, 7B440] @@ -348,12 +352,12 @@ segments: - [auto, c, inventory] - [auto, c, world/actions] # DUMMY ROM - [auto, c, world/partners] - - [auto, hasm, bss2_2] - [auto, c, global_hud_scripts] - [auto, c, 891b0_len_fb0] - [auto, c, 8a160_len_700] - [auto, c, 8a860_len_3f30] - [auto, c, draw_box] + - [auto, c, bss/engine1_post_bss] - start: 0x91B40 type: .data name: global_hud_scripts @@ -781,7 +785,7 @@ segments: start: 0xa9770 vram: 0x801148e0 subsegments: - - [auto, hasm, bss3] + - [auto, c, bss/engine2_pre_bss] - [auto, c, entity] - [auto, c, game_states] - [auto, c, model] @@ -804,6 +808,7 @@ segments: - [auto, c, sprite_shading] - [auto, c, audio/sfx] - [auto, c, audio/e0b30_len_b80] + - [auto, c, bss/engine2_post_bss] - start: 0xE6620 type: .data name: screen_overlays diff --git a/ver/jp/undefined_syms.txt b/ver/jp/undefined_syms.txt index 13aab97e48..7025b55d8f 100644 --- a/ver/jp/undefined_syms.txt +++ b/ver/jp/undefined_syms.txt @@ -1,11 +1,25 @@ +// boot +D_A0000000 = 0xA0000000; +D_A4000000 = 0xA4000000; +D_A4000768 = 0xA4000768; +D_A4001000 = 0xA4001000; D_A4040010 = 0xA4040010; D_A4300000 = 0xA4300000; +D_A4300004 = 0xA4300004; D_A4300008 = 0xA4300008; D_A430000C = 0xA430000C; D_A4400010 = 0xA4400010; D_A450000C = 0xA450000C; +D_A4600004 = 0xA4600004; +D_A460000C = 0xA460000C; D_A4600010 = 0xA4600010; +D_A4700000 = 0xA4700000; +D_A4700010 = 0xA4700010; D_A4800018 = 0xA4800018; +D_A6000000 = 0xA6000000; +D_B0000000 = 0xB0000000; +D_B0000008 = 0xB0000008; +D_B0000010 = 0xB0000010; filemenu_ROM_START = 0x0016B550; filemenu_ROM_END = 0x01749F0; @@ -973,7 +987,6 @@ EVS_WorldTwink_UseAbility = 0x802BD228; EVS_WorldTwink_PutAway = 0x802BD244; heap_spriteHead = 0x8034F800; -gCurrentModelTreeNodeInfo = 0x8009A5D4; sprite_shading_profiles_ROM_START = 0x0031DF90; Entity_UltraBlockContent_Render = 0x0A000800; entity_model_SimpleSpring_gfx_ROM_END = 0x00E72BD0; diff --git a/ver/pal/asm/bss2.s b/ver/pal/asm/bss2.s deleted file mode 100644 index fd1019a927..0000000000 --- a/ver/pal/asm/bss2.s +++ /dev/null @@ -1,114 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel PulseStoneNotificationCallback -.space 4 - -dlabel D_8010C924 -.space 4 - -dlabel D_8010C928 -.space 4 - -dlabel D_8010C92C -.space 4 - -dlabel wPartnerNpc -.space 4 - -dlabel TweesterTouchingPlayer -.space 4 - -dlabel PlayerNormalYaw -.space 4 - -dlabel ISpyNotificationCallback -.space 4 - -dlabel TalkNotificationCallback -.space 4 - -dlabel gSpinHistoryBufferPos -.space 4 - -dlabel D_8010C948 -.space 4 - -dlabel NpcHitQueryBehindRightY -.space 4 - -dlabel D_8010C950 -.space 4 - -dlabel TweesterTouchingPartner -.space 4 - -dlabel InteractNotificationCallback -.space 4 - -dlabel PrevPlayerDirection -.space 4 - -dlabel JumpedOnSwitchX -.space 4 - -dlabel D_8010C964 -.space 4 - -dlabel NpcHitQueryBehindCollider -.space 4 - -dlabel PeachDisguiseNpcIndex -.space 4 - -dlabel NpcHitQueryAheadY -.space 4 - -dlabel NpcHitQueryBehindLeftY -.space 4 - -dlabel NpcHitQueryColliderID -.space 4 - -dlabel JumpedOnSwitchZ -.space 4 - -dlabel PlayerRunStateTime -.space 4 - -dlabel D_8010C984 -.space 4 - -dlabel D_8010C988 -.space 4 - -dlabel NpcHitQueryAheadCollider -.space 4 - -dlabel PlayerNormalPitch -.space 4 - -dlabel D_8010C994 -.space 0x0000000c - -dlabel PlayerYInterpUpdateDelay -.space 4 - -dlabel D_8010C9A4 -.space 0x0000000c - -dlabel D_8010C9B0 -.space 4 - -dlabel D_8010C9B4 -.space 0x0000000c - -#endif diff --git a/ver/pal/asm/bss2_2.s b/ver/pal/asm/bss2_2.s deleted file mode 100644 index dd58463ae8..0000000000 --- a/ver/pal/asm/bss2_2.s +++ /dev/null @@ -1,225 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel wPartnerTetherDistance -.space 4 - -dlabel D_8010CFC4 -.space 4 - -dlabel wPartnerFollowState -.space 2 - -dlabel D_8010CFCA -.space 2 - -dlabel D_8010CFCC -.space 2 - -dlabel D_8010CFCE -.space 2 - -dlabel wPartnerNpcIndex -.space 4 - -dlabel wPartnerCurrentScript -.space 4 - -dlabel wCurrentPartnerId -.space 4 - -dlabel wPartnerCurrentScriptID -.space 4 - -dlabel D_8010CFE0 -.space 4 - -dlabel NextPartnerID -.space 4 - -dlabel NextPartnerCommand -.space 4 - -dlabel wPartner -.space 4 - -dlabel D_8010CFF0 -.space 4 - -dlabel D_8010CFF4 -.space 4 - -dlabel D_8010CFF8 -.space 8 - -dlabel D_8010D000 -.space 0x63C - -dlabel D_8010D63C -.space 0x4 - -dlabel gPopupState -.space 4 - -dlabel D_8010D644 -.space 4 - -dlabel PopupMenu_SelectedIndex -.space 4 - -dlabel PopupMenu_PrevSelectedIndex -.space 4 - -dlabel PopupMenu_Alpha -.space 4 - -dlabel PopupMenu_FirstDisplayIndex -.space 1 - -dlabel PopupMenu_LastDisplayIndex -.space 1 - -dlabel PopupMenu_DisplayedEntryCount -.space 2 - -dlabel D_8010D658 -.space 2 - -dlabel D_8010D65A -.space 2 - -dlabel PopupMenu_EmptybarHEID -.space 4 - -dlabel PopupMenu_TitleIconHEID -.space 4 - -dlabel PopupMenu_TimesHEID -.space 4 - -dlabel PopupMenu_PartnerLevelHEID -.space 4 - -dlabel PopupMenu_CursorHEID -.space 4 - -dlabel PopupMenu_UpArrowHEID -.space 4 - -dlabel PopupMenu_DownArrowHEID -.space 4 - -dlabel PopupMenu_EntryIconHEID -.space 4 - -dlabel D_8010D67C -.space 2 - -dlabel D_8010D67E -.space 2 - -dlabel D_8010D680 -.space 2 - -dlabel D_8010D682 -.space 2 - -dlabel D_8010D684 -.space 2 - -dlabel D_8010D686 -.space 2 - -dlabel PopupMenu_StarPieceCounterPosX -.space 2 - -dlabel PopupMenu_StarPieceCounterPosY -.space 2 - -dlabel D_8010D68C -.space 2 - -dlabel PopupNotBattle -.space 1 - -dlabel PopupMenu_MaxDisplayableEntryCount -.space 1 - -dlabel D_8010D690 -.space 1 - -dlabel D_8010D691 -.space 1 - -dlabel D_8010D692 -.space 1 - -dlabel D_8010D693 -.space 1 - -dlabel gPopupWorker -.space 4 - -dlabel PopupNotDipping -.space 1 - -dlabel PopupDipMode -.space 1 - -dlabel PopupMenu_WasStatusBarIgnoringChanges -.space 2 - -dlabel gPopupMenu -.space 4 - -dlabel D_8010D6A0 -.space 4 - -dlabel D_8010D6A4 -.space 4 - -dlabel D_8010D6A8 -.space 0x8 - -dlabel gBoxQuadBuffer -.space 0x1500 - -dlabel gPartnerStatus -.space 0x360 - -dlabel gSpinHistoryPosY -.space 0x18 - -dlabel gSpinHistoryPosX -.space 0x18 - -dlabel gSpinHistoryPosZ -.space 0x18 - -dlabel gStatusBar -.space 0x70 - -dlabel gPlayerStatus -.space 0x288 - -dlabel gPlayerSpinState -.space 0x34 - -dlabel D_8010F284 -.space 0xC - -dlabel gPlayerData -.space 0x428 - -dlabel gSpinHistoryPosAngle -.space 0x10 - -#endif diff --git a/ver/pal/asm/bss3.s b/ver/pal/asm/bss3.s deleted file mode 100644 index 00220d7371..0000000000 --- a/ver/pal/asm/bss3.s +++ /dev/null @@ -1,688 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel gAuxSpriteShadingProfile -.space 4 - -dlabel gHudElementsNumber -.space 4 - -dlabel gCurrentCustomModelGfxBuildersPtr -.space 4 - -dlabel D_801512BC -.space 4 - -dlabel entity_numEntities -.space 4 - -dlabel gEntityHeapBase -.space 4 - -dlabel gHudElementCacheTableRaster -.space 4 - -dlabel gCurrentModels -.space 4 - -dlabel gHudElementCacheTablePalette -.space 4 - -dlabel gAnimCount -.space 4 - -dlabel gMsgBGScrollAmtX -.space 4 - -dlabel D_801512DC -.space 4 - -dlabel gCurrentTransformGroups -.space 4 - -dlabel gMsgGlobalWaveCounter -.space 4 - -dlabel gCurrentCustomModelGfxPtr -.space 4 - -dlabel gLastCreatedEntityIndex -.space 4 - -dlabel gBackgroundTintModePtr -.space 4 - -dlabel gMsgVarImages -.space 4 - -dlabel ItemEntitiesCreated -.space 4 - -dlabel gCurrentModelTreeRoot -.space 4 - -dlabel gEntityHeapBottom -.space 4 - -dlabel D_80151304 -.space 4 - -dlabel gCurrentRoomDoorSounds -.space 4 - -dlabel gMsgBGScrollAmtY -.space 2 - -dlabel D_8015130E -.space 2 - -dlabel gEntityHideMode -.space 4 - -dlabel gHudElementCacheBuffer -.space 4 - -dlabel gEntityModelCount -.space 4 - -dlabel D_8015131C -.space 4 - -dlabel D_80151320 -.space 4 - -dlabel entity_numShadows -.space 4 - -dlabel gSpriteShadingProfile -.space 4 - -dlabel isAreaSpecificEntityDataLoaded -.space 4 - -dlabel entity_updateCounter -.space 4 - -dlabel gTriggerCount -.space 4 - -dlabel D_80151338 -.space 4 - -dlabel gHudElementCacheSize -.space 4 - -dlabel gCurrentDoorSounds -.space 4 - -dlabel D_80151344 -.space 4 - -dlabel D_80151348 -.space 0x00000038 - 0x10 # TODO: find offset - -dlabel gWorldEntityList -.space 0x00000078 - -dlabel gBattleEntityList -.space 0x00000078 - -dlabel gCurrentEntityListPtr -.space 4 - -dlabel D_80151474 -.space 4 - -dlabel gWorldShadowList -.space 0x000000f0 - -dlabel gBattleShadowList -.space 0x000000f0 - -dlabel gCurrentShadowListPtr -.space 4 - -dlabel wEntityDataLoadedSize -.space 4 - -dlabel bEntityDataLoadedSize -.space 4 - -dlabel D_80151664 -.space 4 - -dlabel wEntityBlueprint -.space 0x00000078 - -.space 8 - -dlabel bEntityBlueprint -.space 0x00000014 - -dlabel D_801516FC -.space 4 - -dlabel gMainGameMode -.space 0x00000040 - -dlabel gCurrentTextureHeader -.space 0x00000030 - -dlabel wModelList -.space 0x00000400 - -dlabel bModelList -.space 0x00000400 - -dlabel wTransformGroups -.space 0x00000010 - -dlabel bTransformGroups -.space 0x00000010 - -dlabel wCustomModelGfx -.space 0x00000080 - -dlabel bCustomModelGfx -.space 0x00000080 - -dlabel wCustomModelGfxBuilders -.space 0x00000080 - -dlabel bCustomModelGfxBuilders -.space 0x00000080 - -dlabel wModelLocalVtxBuffers -.space 0x00000040 - -dlabel bModelLocalVtxBuffers -.space 0x00000040 - -dlabel gCurrentModelLocalVtxBuffers -.space 4 - -dlabel wModelTreeRoot -.space 4 - -dlabel bModelTreeRoot -.space 4 - -dlabel D_8015221C -.space 4 - -dlabel wModelTreeNodeInfo -.space 0x00000800 - -dlabel bModelTreeNodeInfo -.space 0x00000800 - -dlabel wBackgroundTintMode -.space 1 - -dlabel bBackgroundTintMode -.space 1 - -dlabel D_80153222 -.space 1 - -dlabel D_80153223 -.space 1 - -dlabel TreeIterPos -.space 4 - -dlabel wFogSettings -.space 0x00000020 - -dlabel bFogSettings -.space 0x0000001c - -dlabel gFogSettings -.space 4 - -dlabel texPannerMainU -.space 0x00000040 - -dlabel texPannerMainV -.space 0x00000040 - -dlabel texPannerAuxU -.space 0x00000040 - -dlabel texPannerAuxV -.space 0x00000040 - -dlabel TextureHeapPos -.space 4 - -dlabel mtg_IterIdx -.space 2 - -dlabel mtg_SearchModelID -.space 2 - -dlabel mtg_FoundModelNode -.space 4 - -dlabel mtg_MinChild -.space 2 - -dlabel mtg_MaxChild -.space 2 - -dlabel D_80153378 -.space 8 - -dlabel DepthCopyBuffer -.space 0x00000020 - -dlabel RenderTaskLists -.space 0x0000000c - -dlabel RenderTaskListIdx -.space 4 - -dlabel RenderTaskCount -.space 0x00000010 - -dlabel D_801533C0 -.space 0x00000300 - -dlabel D_801536C0 -.space 0x00000300 - -dlabel D_801539C0 -.space 0x00000040 - -dlabel D_80153A00 -.space 0x00000040 - -dlabel gCurrentAnimMeshListPtr -.space 4 - -dlabel gAnimModelFogEnabled -.space 4 - -dlabel gAnimModelFogR -.space 4 - -dlabel gAnimModelFogG -.space 4 - -dlabel gAnimModelFogB -.space 4 - -dlabel gAnimModelFogA -.space 4 - -dlabel gAnimModelFogStart -.space 4 - -dlabel gAnimModelFogEnd -.space 4 - -dlabel gAnimVtxSegment -.space 4 - -dlabel D_80153A64 -.space 4 - -dlabel gAnimRotMtx -.space 0x00000040 - -dlabel gAnimScaleMtx -.space 0x00000040 - -dlabel gAnimTranslateMtx -.space 0x00000040 - -dlabel gAnimRotScaleMtx -.space 0x00000040 - -dlabel gAnimTreeRoot -.space 8 - -dlabel gWorldEntityModelList -.space 0x00000400 - -dlabel gBattleEntityModelList -.space 0x00000400 - -dlabel gCurrentEntityModelList -.space 4 - -dlabel D_80154374 -.space 4 - -dlabel entity_fog_enabled -.space 4 - -dlabel entity_fog_red -.space 4 - -dlabel entity_fog_green -.space 4 - -dlabel entity_fog_blue -.space 4 - -dlabel entity_fog_alpha -.space 4 - -dlabel entity_fog_dist_min -.space 4 - -dlabel entity_fog_dist_max -.space 4 - -dlabel D_80154394 -.space 0x0000000c - -dlabel gWorldWorkerList -.space 0x00000040 - -dlabel gBattleWorkerList -.space 0x00000040 - -dlabel gCurrentWorkerListPtr -.space 4 - -dlabel D_80154424 -.space 0x0000000c - -dlabel gMessageBuffers -.space 0x00000800 - -dlabel gMessagePrinters -.space 0x00001008 - -dlabel gMessageMsgVars -.space 0x00000060 - -dlabel D_80155C98 -.space 8 - -dlabel gMessageWindowProjMatrix -.space 0x00000080 - -dlabel D_80155D20 -.space 4 - -dlabel D_8015DD24 -.space 0x00000050 - -dlabel msg_drawState -.space 4 - -dlabel D_8015DD78 -.space 8 - -dlabel UnusedItemPhysicsScriptID -.space 4 - -dlabel ItemEntityAlternatingSpawn -.space 4 - -dlabel ItemEntityRenderGroup -.space 4 - -dlabel CoinSparkleCenterX -.space 2 - -dlabel CoinSparkleCenterY -.space 2 - -dlabel CoinSparkleCenterZ -.space 2 - -dlabel pad_ItemEntity -.space 0x000000E - -dlabel WorldItemEntities -.space 0x00000400 - -dlabel BattleItemEntities -.space 0x00000400 - -dlabel gCurrentItemEntities -.space 4 - -dlabel isPickingUpItem -.space 2 - -dlabel ItemSpawnWithinPlayerPickupDelay -.space 2 - -dlabel D_801565A8 -.space 4 - -dlabel D_801565AC -.space 4 - -dlabel ItemPickupMenu -.space 0x00000330 -.space 0x14 - -dlabel ItemPickupIconID -.space 4 - -dlabel ItemPickupStateDelay -.space 4 - -dlabel ThrowAwayMenuIdx -.space 4 - -dlabel ThrowAwayItemID -.space 4 - -dlabel ItemPickupGotOutline -.space 4 - -dlabel GotItemTutorialPrinter -.space 4 - -dlabel GotItemTutorialClosed -.space 4 - -dlabel D_801568FC -# .space 4 - -dlabel screen_overlay_frontType -.space 4 - -dlabel screen_overlay_frontZoom -.space 4 - -dlabel screen_overlay_backType -.space 4 - -dlabel screen_overlay_backZoom -.space 4 - -dlabel D_80156910 -.space 0x00000010 - -dlabel ImgFXCurrentTexture -.space 0x00000028 - -dlabel ImgFXVtxBuffers -.space 8 - -dlabel imgfx_vtxBuf -.space 4 - -dlabel ImgFXInstances -.space 4 - -dlabel D_80156958 -.space 8 - -dlabel D_80156960 -.space 8 - -dlabel D_80156968 -.space 8 - -dlabel D_80156970 -.space 0x00000010 - -dlabel ImgFXAnimHeaders -.space 0x000005a0 - -dlabel ImgFXDataCache -.space 0x00000040 - -dlabel gHudElementsWorld -.space 0x00000500 - -dlabel gHudElementsBattle -.space 0x00000500 - -dlabel gHudElements -.space 4 - -dlabel gHudElementCacheBufferWorld -.space 4 - -dlabel gHudElementCacheSizeWorld -.space 4 - -dlabel D_8015796C -.space 4 - -dlabel gHudElementCacheTableRasterWorld -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteWorld -.space 0x00000600 - -dlabel gHudElementCacheBufferBattle -.space 4 - -dlabel gHudElementCacheSizeBattle -.space 4 - -dlabel D_80158578 -.space 8 - -dlabel gHudElementCacheTableRasterBattle -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteBattle -.space 0x00000600 - -dlabel D_80159180 -.space 0x00000010 - -dlabel wTriggerList -.space 0x00000100 - -dlabel bTriggerList -.space 0x00000100 - -dlabel gCurrentTriggerListPtr -.space 4 - -dlabel D_80159394 -.space 0x0000000c - -dlabel gBackgroundPalette -.space 0x00000200 - -dlabel gBackroundLastScrollValue -.space 0x00000020 - 0x10 - -dlabel wSpriteShadingProfile -.space 0x000000b0 - -dlabel bSpriteShadingProfile -.space 0x000000b0 - -dlabel wSpriteShadingProfileAux -.space 0x000000b0 - -dlabel bSpriteShadingProfileAux -.space 0x000000b0 - -dlabel SpriteShadingPalette -.space 0x00000020 - -dlabel wEnvSounds -.space 0x00000118 - -dlabel bEnvSounds -.space 0x00000118 - -dlabel gCurrentEnvSounds -.space 4 - -dlabel SfxReverbMode -.space 4 - -dlabel D_80159AD8 -.space 8 - -dlabel MusicDefaultVolume -.space 2 - -dlabel MusicTargetVolume -.space 2 - -dlabel MusicMaxVolume -.space 2 - -dlabel MusicCurrentVolume -.space 2 - -dlabel D_80159AE8 -.space 8 - -dlabel gMusicSettings -.space 0x00000060 - -dlabel D_80159B50 -.space 0x00000200 - 0x14 - -.space 4 -.space 0x10 -dlabel gWindows -.space 0x00000800 - -dlabel gCollisionStatus -.space 0x00000028 - -dlabel gCurrentHiddenPanels -.space 0x10 - -.space 8 - -dlabel TextureHandles -.space 0x00002200 - -dlabel ScreenOverlays -.space 0x00000030 - -dlabel AmbientSoundData -.space 0x00000010 - -dlabel CreateEntityVarArgBuffer -.space 0x00000010 - -dlabel D_8015C7E0 -.space 0x20 - -dlabel D_8015C800 -.space 0x7800 - -dlabel D_80164000 -.space 0x32C60 - -#endif diff --git a/ver/pal/splat.yaml b/ver/pal/splat.yaml index 7c67695767..b7f312edaa 100644 --- a/ver/pal/splat.yaml +++ b/ver/pal/splat.yaml @@ -26,6 +26,7 @@ options: undefined_syms_auto_path: ver/us/undefined_syms_auto.txt symbol_name_format: PAL_$VRAM symbol_name_format_no_rom: PAL_$VRAM_$SEG + hasm_in_src_path: True asset_stack: - pal segments: @@ -39,7 +40,7 @@ segments: start: 0x71D80 vram: 0x800D8C70 subsegments: - - [auto, hasm, bss2] + - [auto, c, bss/engine1_pre_bss] - [auto, c, npc_collision] - [auto, c, 77480] - [auto, c, 7B440] @@ -49,12 +50,12 @@ segments: - [auto, c, inventory] - [auto, c, world/actions] # DUMMY ROM - [auto, c, world/partners] - - [auto, hasm, bss2_2] - [auto, c, global_hud_scripts] - [auto, c, 891b0_len_fb0] - [auto, c, 8a160_len_700] - [auto, c, 8a860_len_3f30] - [auto, c, draw_box] + - [auto, c, bss/engine1_post_bss] - start: 0x8DA40 type: .data name: global_hud_scripts @@ -544,7 +545,7 @@ segments: start: 0xA4520 vram: 0x8010E1D0 subsegments: - - [auto, hasm, bss3] + - [auto, c, bss/engine2_pre_bss] - [auto, c, entity] - [auto, c, game_states] - [auto, c, model] @@ -567,6 +568,7 @@ segments: - [auto, c, sprite_shading] - [auto, c, audio/sfx] - [auto, c, audio/e0b30_len_b80] + - [auto, c, bss/engine2_post_bss] - start: 0xE1610 type: .data name: screen_overlays diff --git a/ver/us/asm/bss.s b/ver/us/asm/bss.s deleted file mode 100644 index 6f2a7250b1..0000000000 --- a/ver/us/asm/bss.s +++ /dev/null @@ -1,974 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel nuScPreNMIFlag -.space 4 - -dlabel D_8009A5B4 -.space 4 - -dlabel D_8009A5B8 -.space 4 - -dlabel D_8009A5BC -.space 4 - -dlabel gSoundGlobals -.space 4 - -dlabel D_8009A5C4 -.space 4 - -dlabel __osBaseCounter -.space 4 - -dlabel gBGMPlayerC -.space 4 - -dlabel gEncounterSubState -.space 4 - -dlabel CurrentSefCmdHandler -.space 4 - -dlabel timeFreezeMode -.space 4 - -dlabel nuGfxZBuffer -.space 4 - -dlabel nuContDataLockKey -.space 4 - -dlabel __osViIntrCount -.space 4 - -dlabel BeginSoundUpdateCallback -.space 4 - -dlabel D_8009A5EC -.space 4 - -dlabel nuGfxCfbCounter -.space 4 - -dlabel gCurrentModelTreeNodeInfo -.space 4 - -dlabel nuGfxDisplay -.space 4 - -dlabel gBGMPlayerB -.space 4 - -dlabel gEncounterState -.space 4 - -dlabel gNpcCount -.space 2 - -dlabel __osMaxControllers -.space 2 - -dlabel __osCurrentTime -.space 4 - -dlabel D_8009A60C -.space 4 - -dlabel nuGfxUcode -.space 4 - -dlabel nuContNum -.space 4 - -dlabel nuGfxTaskSpool -.space 4 - -dlabel __osContLastCmd -.space 4 - -dlabel __osEepromTimerMsg -.space 4 - -dlabel D_8009A624 -.space 4 - -dlabel gAuAmbienceManager -.space 4 - -dlabel __osTimerCounter -.space 4 - -dlabel nuIdleFunc -.space 4 - -dlabel gCurrentCamID -.space 4 - -dlabel nuPiCartHandle -.space 4 - -dlabel D_8009A63C -.space 4 - -dlabel gSoundManager -.space 4 - -dlabel D_8009A644 -.space 8 - -dlabel nuGfxCfb_ptr -.space 4 - -dlabel gOverrideFlags -.space 4 - -dlabel HasPreBattleSongPushed -.space 4 - -dlabel nuGfxCfb -.space 4 - -dlabel D_8009A65C -.space 4 - -dlabel __osFinalrom -.space 4 - -dlabel gBGMPlayerA -.space 4 - -dlabel gFirstStrikeMessagePos -.space 4 - -dlabel gMainGfxPos -.space 4 - -dlabel D_8009A670 -.space 4 - -dlabel gDisplayContext -.space 4 - -dlabel D_8009A678 -.space 4 - -dlabel D_8009A67C -.space 4 - -dlabel ResetFrameBufferArray -.space 4 - -dlabel D_8009A684 -.space 0x0000000c - -dlabel SoftResetDelay -.space 4 - -dlabel D_8009A694 -.space 0x0000000c - -dlabel D_8009A6A0 -.space 2 - -dlabel D_8009A6A2 -.space 2 - -dlabel D_8009A6A4 -.space 2 - -dlabel D_8009A6A6 -.space 2 - -dlabel D_8009A6A8 -.space 8 - -dlabel FetchSaveBuffer -.space 0x00001380 - -dlabel LogicalSaveInfo -.space 0x00000020 - -dlabel PhysicalSaveInfo -.space 0x00000030 - -dlabel NextAvailablePhysicalSave -.space 4 - -dlabel D_8009BA84 -.space 0x0000000c - -dlabel gCurtainScale -.space 4 - -dlabel gCurtainScaleGoal -.space 4 - -dlabel gCurtainFade -.space 4 - -dlabel gCurtainFadeGoal -.space 4 - -dlabel gCurtainDrawCallback -.space 4 - -dlabel D_8009BAA4 -.space 4 - -dlabel D_8009BAA8 -.space 0x00000080 - -dlabel D_8009BA28 -.space 8 - -dlabel gCrashScreen -.space 0x000009e0 - -dlabel nuGfxTask_ptr -.space 4 - -dlabel taskDoneMsg -.space 2 - -dlabel swapBufMsg -.space 2 - -dlabel GfxTaskMgrThread -.space 0x000001b0 - -.align 4 -dlabel GfxTaskMgrStack -.space 0x00002000 - -dlabel D_8009E6D0 -.space 0x00000020 - -dlabel nuSiMesgBuf -.space 0x00000020 - -dlabel siMgrThread -.space 0x1b0 - -dlabel siMgrStack -.space 0x2000 - -dlabel gCurrentCamConfiguration -.space 0x0000001c - -dlabel D_800A08DC -.space 4 - -dlabel D_800A08E0 -.space 4 - -dlabel D_800A08E4 -.space 4 - -dlabel D_800A08E8 -.space 4 - -dlabel D_800A08EC -.space 4 - -dlabel CurGameMode -.space 4 - -dlabel D_800A08F4 -.space 0x0000000c - -dlabel D_800A0900 -.space 4 - -dlabel D_800A0904 -.space 4 - -dlabel D_800A0908 -.space 4 - -dlabel D_800A090C -.space 4 - -dlabel gLogosImages -.space 4 - -dlabel gLogosImage3 -.space 4 - -dlabel gLogosImage1 -.space 4 - -dlabel gLogosImage2 -.space 4 - -dlabel StepPauseDelay -.space 1 - -dlabel StepPauseState -.space 1 - -dlabel StepPauseAlpha -.space 2 - -dlabel SavedReverbMode -.space 4 - -dlabel D_800A0928 -.space 8 - -dlabel D_800A0930 -.space 1 - -dlabel D_800A0931 -.space 1 - -dlabel D_800A0932 -.space 2 - -dlabel D_800A0934 -.space 0x0000000c - -dlabel gMapTransitionAlpha -.space 2 - -dlabel gMapTransitionFadeRate -.space 2 - -dlabel gMapTransitionState -.space 2 - -dlabel gMapTransitionStateTime -.space 2 - -dlabel gLoadedFromFileSelect -.space 4 - -dlabel D_800A094C -.space 4 - -dlabel IntroEnableDrawFrameDelay -.space 4 - -dlabel IntroOverlayAlpha -.space 2 - -dlabel IntroFrontFadeAlpha -.space 2 - -dlabel IntroOverlayDelta -.space 2 - -dlabel IntroFadeColorR -.space 2 - -dlabel IntroFadeColorG -.space 2 - -dlabel IntroFadeColorB -.space 2 - -dlabel IntroOverlayType -.space 0x00000004 - -dlabel D_800A0964 -.space 4 - -dlabel D_800A0968 -.space 8 - -dlabel TitleScreen_AppearDelay -.space 4 - -dlabel TitleScreen_ImgList -.space 4 - -dlabel TitleScreen_ImgList_Logo -.space 4 - -dlabel TitleScreen_ImgList_Copyright -.space 4 - -dlabel TitleScreen_ImgList_PressStart -.space 4 - -dlabel D_800A0984 -.space 4 - -dlabel TitleScreen_TimeLeft -.space 4 - -dlabel D_800A098C -.space 4 - -dlabel gWorldNpcList -.space 0x00000100 - -dlabel gBattleNpcList -.space 0x00000100 - -dlabel gCurrentNpcListPtr -.space 4 - -dlabel gNpcPlayerCollisionsEnabled -.space 4 - -dlabel D_800A0B98 -.space 8 - -dlabel D_800A0BA0 -.space 4 - -dlabel D_800A0BA4 -.space 4 - -dlabel WorldMerleeOrbEffect -.space 4 - -dlabel WorldMerleeWaveEffect -.space 4 - -dlabel D_800A0BB0 -.space 4 - -dlabel D_800A0BB4 -.space 4 - -dlabel D_800A0BB8 -.space 4 - -dlabel D_800A0BBC -.space 4 - -dlabel D_800A0BC0 -.space 0x00000380 - -dlabel D_800A0F40 -.space 4 - -dlabel D_800A0F44 -.space 4 - -dlabel D_800A0F48 -.space 8 - -dlabel AuInitialGlobalVolume -.space 4 - -dlabel D_800A0F54 -.space 4 - -dlabel nuAuMgrThread -.space 0x000005b8 - -dlabel AuStack -.space 0x00002000 - -dlabel AlCmdListBuffers -.space 0x0000000c - -dlabel D_800A351C -.space 4 - -dlabel nuAuTasks -.space 0x00000108 - -dlabel D_800A3628 -.space 0x0000000c - -dlabel AlFrameSize -.space 4 - -dlabel AlMinFrameSize -.space 4 - -dlabel D_800A363C -.space 4 - -dlabel nuAuDmaMesgQ -.space 0x18 - -dlabel nuAuDmaMesgBuf -.space 0x000000c8 - -dlabel nuAuDmaIOMesgBuf -.space 0x000004b0 - -dlabel nuAuDmaState -.space 0x0000000c - -.space 4 - -dlabel nuAuDmaBufList -.space 0x000003e8 - -dlabel D_800A3FC8 -.space 8 - -dlabel CurrentSeqCmdHandler -.space 4 - -dlabel D_800A3FD4 -.space 0x0000000c - -dlabel AuDelayBufferMain -.space 4 - -dlabel AuDelayBufferAux -.space 4 - -dlabel AuDelayCounter -.space 4 - -dlabel AuDelayedVoiceGroup -.space 2 - -dlabel AuDelayedChannel -.space 2 - -dlabel AuDelayCount -.space 4 - -dlabel D_800A3FF4 -.space 0x0000000c - -dlabel gEffectGraphicsData -.space 0x000001E0 - -dlabel gMapConfig -.space 4 - -dlabel D_800A41E4 -.space 4 - -dlabel gMapSettings -.space 0x40 - -.space 8 - -dlabel gCollisionRayStartX -.space 4 - -dlabel gCollisionRayStartY -.space 4 - -dlabel gCollisionRayStartZ -.space 4 - -dlabel gCollisionRayDirX -.space 4 - -dlabel gCollisionRayDirY -.space 4 - -dlabel gCollisionRayDirZ -.space 4 - -dlabel gCollisionPointX -.space 4 - -dlabel gCollisionPointY -.space 4 - -dlabel gCollisionPointZ -.space 4 - -dlabel gCollisionRayLength -.space 4 - -dlabel gCollisionNormalX -.space 4 - -dlabel gCollisionNormalY -.space 4 - -dlabel gCollisionNormalZ -.space 4 - -dlabel gCollisionDataBackup -.space 4 - -dlabel gCollisionDataZoneBackup -.space 4 - -dlabel D_800A426C -.space 4 - -dlabel IdleThread -.space 0x000001b0 - -dlabel MainThread -.space 0x000001b0 - -dlabel IdleStack -.space 0x00002000 - -dlabel nuScStack -.space 0x00002000 - -dlabel nuScAudioStack -.space 0x00002000 - -dlabel nuScGraphicsStack -.space 0x00002000 - -dlabel D_800AC5D0 -.space 4 - -dlabel D_800AC5D4 -.space 0x00000014 - -dlabel D_800AC5E8 -.space 0x000000c8 - -dlabel nuGfxMesgBuf -.space 0x00000020 - -dlabel GfxStack -.space 0x00002000 - -dlabel nuContWaitMesgBuf -.space 4 - -dlabel nuContDataMutexBuf -.space 4 - -dlabel D_800AC6D8 -.space 8 - -dlabel piThread -.space 0x1B0 - -dlabel piThreadStack -.space 0x1000 - -dlabel piEventQueue -.space 0x18 - -dlabel piEventBuf -.space 0x8 - -dlabel piAccessBuf -.space 0x10 - -dlabel tmp_task -.space 0x00000040 - -dlabel siAccessBuf -.space 4 - -dlabel D_800AF904 -.space 0x0000000c - -dlabel retrace -.space 4 - -dlabel D_800AF914 -.space 4 - -dlabel viThread -.space 0x1B8 - -dlabel viThreadStack -.space 0x1000 - -dlabel viEventQueue -.space 0x18 - -dlabel viEventBuf -.space 0x18 - -dlabel viRetraceMsg -.space 0x18 - -dlabel viCounterMsg -.space 0x18 - -dlabel __MotorDataBuf -.space 0x100 - -dlabel __osFlashID -.space 0x10 - -dlabel __osFlashMsg -.space 0x18 - -dlabel __osFlashMessageQ -.space 0x18 - -dlabel __osFlashHandler -.space 0x74 - -dlabel __osFlashMsgBuf -.space 4 - -dlabel __osFlashVersion -.space 4 - -dlabel D_800B0CEC -.space 4 - -dlabel wMapTexName -.space 0x18 - -dlabel __osThreadSave -.space 0x000001B0 - -dlabel nuContWaitMesgQ -.space 0x18 - -dlabel __osContPifRam -.space 0x40 - -dlabel gCurrentEncounter -.space 0x00000bf8 - -dlabel __Dom2SpeedParam -.space 4 - -dlabel D_800B1B0C -.space 1 - -dlabel D_800B1B0D -.space 1 - -dlabel D_800B1B0E -.space 1 - -dlabel D_800B1B0F -.space 1 - -dlabel D_800B1B10 -.space 4 - -dlabel D_800B1B14 -.space 0x00000068 - -dlabel nuContStatus -.space 0x00000014 - -dlabel D_800B1B90 -.space 0x000001b0 - -dlabel nuContRmbCtl -.space 0x00000028 - -dlabel nuContData -.space 0x00000018 - -dlabel gCameras -.space 0x00001560 - -dlabel D_800B32E0 -.space 0x800 - -dlabel D_800B3AE0 -.space 0x800 - -dlabel gCollisionData -.space 0x10 - -dlabel nuGfxMesgQ -.space 0x18 - -dlabel __CartRomHandle -.space 4 - -dlabel D_800B430C -.space 1 - -dlabel D_800B430D -.space 1 - -dlabel D_800B430E -.space 1 - -dlabel D_800B430F -.space 1 - -dlabel D_800B4310 -.space 1 - -dlabel D_800B4311 -.space 3 - -dlabel D_800B4314 -.space 4 - -dlabel D_800B4318 -.space 4 - -dlabel D_800B431C -.space 0x00000064 - -dlabel __osPiAccessQueue -.space 0x18 - -dlabel gEffectInstances -.space 0x00000180 - -dlabel __Dom1SpeedParam -.space 4 - -dlabel D_800B451C -.space 1 - -dlabel D_800B451D -.space 1 - -dlabel D_800B451E -.space 1 - -dlabel D_800B451F -.space 1 - -dlabel D_800B4520 -.space 0x00000070 - -dlabel nuBootStack -.space 0x00002000 - -dlabel nuMainStack -.space 0x00002000 - -dlabel nuYieldBuf -.space 0x00000c10 - -dlabel auSynDriver -.space 0x00000030 - -dlabel D_800B91D0 -.space 0x00020000 - -dlabel gZoneCollisionData -.space 0x00000010 - -dlabel wMapHitName -.space 0x00000018 - -dlabel nuSiMgrMesgQ -.space 0x00000018 - -dlabel __osBaseTimer -.space 0x20 - -dlabel wMapShapeName -.space 0x00000018 - -dlabel nuAuHeap -.space 0x00000030 - -dlabel nuGfxTask -.space 0x00000370 - -dlabel gSaveGlobals -.space 0x00000038 - -dlabel D_800D9620 -.space 0x00000048 - -dlabel wMapBgName -.space 0x00000018 - -dlabel __osPfsInodeCache -.space 0x00000100 - -dlabel rspbootUcodeBuffer -.space 0x00000100 - -dlabel D_800D9880 -.space 0x00000700 - -dlabel __osEventStateTab -.space 0x00000080 - -dlabel __osPfsPifRam -.space 0x00000040 - -dlabel D_800DA040 -.space 0x00000400 - -dlabel nusched -.space 0x00000680 - -dlabel __osEepromTimerQ -.space 0x00000018 - -dlabel nuContPfs -.space 0x000001a0 - -dlabel nuSiMesgQ -.space 0x00000018 - -dlabel D_800DAC90 -.space 0x00000018 - -dlabel __osSiAccessQueue -.space 0x00000018 - -dlabel gCurrentSaveFile -.space 0x00001380 - -dlabel nuContDataMutexQ -.space 0x00000020 - -dlabel D_800DC060 -.space 4 - -dlabel gCurrentStagePtr -.space 4 - -dlabel gBattleState -.space 4 - -dlabel D_800DC06C -.space 4 - -dlabel gBattleStatus -.space 0x00000460 - -dlabel gLastDrawBattleState -.space 4 - -dlabel D_800DC4D4 -.space 4 - -dlabel gDefeatedBattleSubstate -.space 4 - -dlabel gBattleSubState -.space 4 - -dlabel D_800DC4E0 -.space 4 - -dlabel gDefeatedBattleState -.space 4 - -dlabel gCurrentBattleID -.space 4 - -dlabel gCurrentStageID -.space 4 - -dlabel D_800DC4F0 -.space 4 - -dlabel gOverrideBattlePtr -.space 4 - -dlabel D_800DC4F8 -.space 4 - -dlabel gCurrentBattlePtr -.space 4 - -#endif diff --git a/ver/us/asm/bss2.s b/ver/us/asm/bss2.s deleted file mode 100644 index fd1019a927..0000000000 --- a/ver/us/asm/bss2.s +++ /dev/null @@ -1,114 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel PulseStoneNotificationCallback -.space 4 - -dlabel D_8010C924 -.space 4 - -dlabel D_8010C928 -.space 4 - -dlabel D_8010C92C -.space 4 - -dlabel wPartnerNpc -.space 4 - -dlabel TweesterTouchingPlayer -.space 4 - -dlabel PlayerNormalYaw -.space 4 - -dlabel ISpyNotificationCallback -.space 4 - -dlabel TalkNotificationCallback -.space 4 - -dlabel gSpinHistoryBufferPos -.space 4 - -dlabel D_8010C948 -.space 4 - -dlabel NpcHitQueryBehindRightY -.space 4 - -dlabel D_8010C950 -.space 4 - -dlabel TweesterTouchingPartner -.space 4 - -dlabel InteractNotificationCallback -.space 4 - -dlabel PrevPlayerDirection -.space 4 - -dlabel JumpedOnSwitchX -.space 4 - -dlabel D_8010C964 -.space 4 - -dlabel NpcHitQueryBehindCollider -.space 4 - -dlabel PeachDisguiseNpcIndex -.space 4 - -dlabel NpcHitQueryAheadY -.space 4 - -dlabel NpcHitQueryBehindLeftY -.space 4 - -dlabel NpcHitQueryColliderID -.space 4 - -dlabel JumpedOnSwitchZ -.space 4 - -dlabel PlayerRunStateTime -.space 4 - -dlabel D_8010C984 -.space 4 - -dlabel D_8010C988 -.space 4 - -dlabel NpcHitQueryAheadCollider -.space 4 - -dlabel PlayerNormalPitch -.space 4 - -dlabel D_8010C994 -.space 0x0000000c - -dlabel PlayerYInterpUpdateDelay -.space 4 - -dlabel D_8010C9A4 -.space 0x0000000c - -dlabel D_8010C9B0 -.space 4 - -dlabel D_8010C9B4 -.space 0x0000000c - -#endif diff --git a/ver/us/asm/bss2_2.s b/ver/us/asm/bss2_2.s deleted file mode 100644 index dd58463ae8..0000000000 --- a/ver/us/asm/bss2_2.s +++ /dev/null @@ -1,225 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel wPartnerTetherDistance -.space 4 - -dlabel D_8010CFC4 -.space 4 - -dlabel wPartnerFollowState -.space 2 - -dlabel D_8010CFCA -.space 2 - -dlabel D_8010CFCC -.space 2 - -dlabel D_8010CFCE -.space 2 - -dlabel wPartnerNpcIndex -.space 4 - -dlabel wPartnerCurrentScript -.space 4 - -dlabel wCurrentPartnerId -.space 4 - -dlabel wPartnerCurrentScriptID -.space 4 - -dlabel D_8010CFE0 -.space 4 - -dlabel NextPartnerID -.space 4 - -dlabel NextPartnerCommand -.space 4 - -dlabel wPartner -.space 4 - -dlabel D_8010CFF0 -.space 4 - -dlabel D_8010CFF4 -.space 4 - -dlabel D_8010CFF8 -.space 8 - -dlabel D_8010D000 -.space 0x63C - -dlabel D_8010D63C -.space 0x4 - -dlabel gPopupState -.space 4 - -dlabel D_8010D644 -.space 4 - -dlabel PopupMenu_SelectedIndex -.space 4 - -dlabel PopupMenu_PrevSelectedIndex -.space 4 - -dlabel PopupMenu_Alpha -.space 4 - -dlabel PopupMenu_FirstDisplayIndex -.space 1 - -dlabel PopupMenu_LastDisplayIndex -.space 1 - -dlabel PopupMenu_DisplayedEntryCount -.space 2 - -dlabel D_8010D658 -.space 2 - -dlabel D_8010D65A -.space 2 - -dlabel PopupMenu_EmptybarHEID -.space 4 - -dlabel PopupMenu_TitleIconHEID -.space 4 - -dlabel PopupMenu_TimesHEID -.space 4 - -dlabel PopupMenu_PartnerLevelHEID -.space 4 - -dlabel PopupMenu_CursorHEID -.space 4 - -dlabel PopupMenu_UpArrowHEID -.space 4 - -dlabel PopupMenu_DownArrowHEID -.space 4 - -dlabel PopupMenu_EntryIconHEID -.space 4 - -dlabel D_8010D67C -.space 2 - -dlabel D_8010D67E -.space 2 - -dlabel D_8010D680 -.space 2 - -dlabel D_8010D682 -.space 2 - -dlabel D_8010D684 -.space 2 - -dlabel D_8010D686 -.space 2 - -dlabel PopupMenu_StarPieceCounterPosX -.space 2 - -dlabel PopupMenu_StarPieceCounterPosY -.space 2 - -dlabel D_8010D68C -.space 2 - -dlabel PopupNotBattle -.space 1 - -dlabel PopupMenu_MaxDisplayableEntryCount -.space 1 - -dlabel D_8010D690 -.space 1 - -dlabel D_8010D691 -.space 1 - -dlabel D_8010D692 -.space 1 - -dlabel D_8010D693 -.space 1 - -dlabel gPopupWorker -.space 4 - -dlabel PopupNotDipping -.space 1 - -dlabel PopupDipMode -.space 1 - -dlabel PopupMenu_WasStatusBarIgnoringChanges -.space 2 - -dlabel gPopupMenu -.space 4 - -dlabel D_8010D6A0 -.space 4 - -dlabel D_8010D6A4 -.space 4 - -dlabel D_8010D6A8 -.space 0x8 - -dlabel gBoxQuadBuffer -.space 0x1500 - -dlabel gPartnerStatus -.space 0x360 - -dlabel gSpinHistoryPosY -.space 0x18 - -dlabel gSpinHistoryPosX -.space 0x18 - -dlabel gSpinHistoryPosZ -.space 0x18 - -dlabel gStatusBar -.space 0x70 - -dlabel gPlayerStatus -.space 0x288 - -dlabel gPlayerSpinState -.space 0x34 - -dlabel D_8010F284 -.space 0xC - -dlabel gPlayerData -.space 0x428 - -dlabel gSpinHistoryPosAngle -.space 0x10 - -#endif diff --git a/ver/us/asm/bss3.s b/ver/us/asm/bss3.s deleted file mode 100644 index 9be96e3f54..0000000000 --- a/ver/us/asm/bss3.s +++ /dev/null @@ -1,685 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -#ifndef SHIFT - -.section .bss - -dlabel gAuxSpriteShadingProfile -.space 4 - -dlabel gHudElementsNumber -.space 4 - -dlabel gCurrentCustomModelGfxBuildersPtr -.space 4 - -dlabel D_801512BC -.space 4 - -dlabel entity_numEntities -.space 4 - -dlabel gEntityHeapBase -.space 4 - -dlabel gHudElementCacheTableRaster -.space 4 - -dlabel gCurrentModels -.space 4 - -dlabel gHudElementCacheTablePalette -.space 4 - -dlabel gAnimCount -.space 4 - -dlabel gMsgBGScrollAmtX -.space 4 - -dlabel D_801512DC -.space 4 - -dlabel gCurrentTransformGroups -.space 4 - -dlabel gMsgGlobalWaveCounter -.space 4 - -dlabel gCurrentCustomModelGfxPtr -.space 4 - -dlabel gLastCreatedEntityIndex -.space 4 - -dlabel gBackgroundTintModePtr -.space 4 - -dlabel gMsgVarImages -.space 4 - -dlabel ItemEntitiesCreated -.space 4 - -dlabel gCurrentModelTreeRoot -.space 4 - -dlabel gEntityHeapBottom -.space 4 - -dlabel D_80151304 -.space 4 - -dlabel gCurrentRoomDoorSounds -.space 4 - -dlabel gMsgBGScrollAmtY -.space 2 - -dlabel D_8015130E -.space 2 - -dlabel gEntityHideMode -.space 4 - -dlabel gHudElementCacheBuffer -.space 4 - -dlabel gEntityModelCount -.space 4 - -dlabel D_8015131C -.space 4 - -dlabel D_80151320 -.space 4 - -dlabel entity_numShadows -.space 4 - -dlabel gSpriteShadingProfile -.space 4 - -dlabel isAreaSpecificEntityDataLoaded -.space 4 - -dlabel entity_updateCounter -.space 4 - -dlabel gTriggerCount -.space 4 - -dlabel D_80151338 -.space 4 - -dlabel gHudElementCacheSize -.space 4 - -dlabel gCurrentDoorSounds -.space 4 - -dlabel D_80151344 -.space 4 - -dlabel D_80151348 -.space 0x00000038 - -dlabel gWorldEntityList -.space 0x00000078 - -dlabel gBattleEntityList -.space 0x00000078 - -dlabel gCurrentEntityListPtr -.space 4 - -dlabel D_80151474 -.space 4 - -dlabel gWorldShadowList -.space 0x000000f0 - -dlabel gBattleShadowList -.space 0x000000f0 - -dlabel gCurrentShadowListPtr -.space 4 - -dlabel wEntityDataLoadedSize -.space 4 - -dlabel bEntityDataLoadedSize -.space 4 - -dlabel D_80151664 -.space 4 - -dlabel wEntityBlueprint -.space 0x00000078 - -.space 8 - -dlabel bEntityBlueprint -.space 0x00000014 - -dlabel D_801516FC -.space 4 - -dlabel gMainGameMode -.space 0x00000040 - -dlabel gCurrentTextureHeader -.space 0x00000030 - -dlabel wModelList -.space 0x00000400 - -dlabel bModelList -.space 0x00000400 - -dlabel wTransformGroups -.space 0x00000010 - -dlabel bTransformGroups -.space 0x00000010 - -dlabel wCustomModelGfx -.space 0x00000080 - -dlabel bCustomModelGfx -.space 0x00000080 - -dlabel wCustomModelGfxBuilders -.space 0x00000080 - -dlabel bCustomModelGfxBuilders -.space 0x00000080 - -dlabel wModelLocalVtxBuffers -.space 0x00000040 - -dlabel bModelLocalVtxBuffers -.space 0x00000040 - -dlabel gCurrentModelLocalVtxBuffers -.space 4 - -dlabel wModelTreeRoot -.space 4 - -dlabel bModelTreeRoot -.space 4 - -dlabel D_8015221C -.space 4 - -dlabel wModelTreeNodeInfo -.space 0x00000800 - -dlabel bModelTreeNodeInfo -.space 0x00000800 - -dlabel wBackgroundTintMode -.space 1 - -dlabel bBackgroundTintMode -.space 1 - -dlabel D_80153222 -.space 1 - -dlabel D_80153223 -.space 1 - -dlabel TreeIterPos -.space 4 - -dlabel wFogSettings -.space 0x00000020 - -dlabel bFogSettings -.space 0x0000001c - -dlabel gFogSettings -.space 4 - -dlabel texPannerMainU -.space 0x00000040 - -dlabel texPannerMainV -.space 0x00000040 - -dlabel texPannerAuxU -.space 0x00000040 - -dlabel texPannerAuxV -.space 0x00000040 - -dlabel TextureHeapPos -.space 4 - -dlabel mtg_IterIdx -.space 2 - -dlabel mtg_SearchModelID -.space 2 - -dlabel mtg_FoundModelNode -.space 4 - -dlabel mtg_MinChild -.space 2 - -dlabel mtg_MaxChild -.space 2 - -dlabel D_80153378 -.space 8 - -dlabel DepthCopyBuffer -.space 0x00000020 - -dlabel RenderTaskLists -.space 0x0000000c - -dlabel RenderTaskListIdx -.space 4 - -dlabel RenderTaskCount -.space 0x00000010 - -dlabel D_801533C0 -.space 0x00000300 - -dlabel D_801536C0 -.space 0x00000300 - -dlabel D_801539C0 -.space 0x00000040 - -dlabel D_80153A00 -.space 0x00000040 - -dlabel gCurrentAnimMeshListPtr -.space 4 - -dlabel gAnimModelFogEnabled -.space 4 - -dlabel gAnimModelFogR -.space 4 - -dlabel gAnimModelFogG -.space 4 - -dlabel gAnimModelFogB -.space 4 - -dlabel gAnimModelFogA -.space 4 - -dlabel gAnimModelFogStart -.space 4 - -dlabel gAnimModelFogEnd -.space 4 - -dlabel gAnimVtxSegment -.space 4 - -dlabel D_80153A64 -.space 4 - -dlabel gAnimRotMtx -.space 0x00000040 - -dlabel gAnimScaleMtx -.space 0x00000040 - -dlabel gAnimTranslateMtx -.space 0x00000040 - -dlabel gAnimRotScaleMtx -.space 0x00000040 - -dlabel gAnimTreeRoot -.space 8 - -dlabel gWorldEntityModelList -.space 0x00000400 - -dlabel gBattleEntityModelList -.space 0x00000400 - -dlabel gCurrentEntityModelList -.space 4 - -dlabel D_80154374 -.space 4 - -dlabel entity_fog_enabled -.space 4 - -dlabel entity_fog_red -.space 4 - -dlabel entity_fog_green -.space 4 - -dlabel entity_fog_blue -.space 4 - -dlabel entity_fog_alpha -.space 4 - -dlabel entity_fog_dist_min -.space 4 - -dlabel entity_fog_dist_max -.space 4 - -dlabel D_80154394 -.space 0x0000000c - -dlabel gWorldWorkerList -.space 0x00000040 - -dlabel gBattleWorkerList -.space 0x00000040 - -dlabel gCurrentWorkerListPtr -.space 4 - -dlabel D_80154424 -.space 0x0000000c - -dlabel gMessageBuffers -.space 0x00000800 - -dlabel gMessagePrinters -.space 0x00001008 - -dlabel gMessageMsgVars -.space 0x00000060 - -dlabel D_80155C98 -.space 8 - -dlabel gMessageWindowProjMatrix -.space 0x00000080 - -dlabel D_80155D20 -.space 4 - -dlabel D_8015DD24 -.space 0x00000050 - -dlabel msg_drawState -.space 4 - -dlabel D_8015DD78 -.space 8 - -dlabel UnusedItemPhysicsScriptID -.space 4 - -dlabel ItemEntityAlternatingSpawn -.space 4 - -dlabel ItemEntityRenderGroup -.space 4 - -dlabel CoinSparkleCenterX -.space 2 - -dlabel CoinSparkleCenterY -.space 2 - -dlabel CoinSparkleCenterZ -.space 2 - -dlabel pad_ItemEntity -.space 0x000000E - -dlabel WorldItemEntities -.space 0x00000400 - -dlabel BattleItemEntities -.space 0x00000400 - -dlabel gCurrentItemEntities -.space 4 - -dlabel isPickingUpItem -.space 2 - -dlabel ItemSpawnWithinPlayerPickupDelay -.space 2 - -dlabel D_801565A8 -.space 4 - -dlabel D_801565AC -.space 4 - -dlabel ItemPickupMenu -.space 0x00000330 - -dlabel ItemPickupIconID -.space 4 - -dlabel ItemPickupStateDelay -.space 4 - -dlabel ThrowAwayMenuIdx -.space 4 - -dlabel ThrowAwayItemID -.space 4 - -dlabel ItemPickupGotOutline -.space 4 - -dlabel GotItemTutorialPrinter -.space 4 - -dlabel GotItemTutorialClosed -.space 4 - -dlabel D_801568FC -.space 4 - -dlabel screen_overlay_frontType -.space 4 - -dlabel screen_overlay_frontZoom -.space 4 - -dlabel screen_overlay_backType -.space 4 - -dlabel screen_overlay_backZoom -.space 4 - -dlabel D_80156910 -.space 0x00000010 - -dlabel ImgFXCurrentTexture -.space 0x00000028 - -dlabel ImgFXVtxBuffers -.space 8 - -dlabel imgfx_vtxBuf -.space 4 - -dlabel ImgFXInstances -.space 4 - -dlabel D_80156958 -.space 8 - -dlabel D_80156960 -.space 8 - -dlabel D_80156968 -.space 8 - -dlabel D_80156970 -.space 0x00000010 - -dlabel ImgFXAnimHeaders -.space 0x000005a0 - -dlabel ImgFXDataCache -.space 0x00000040 - -dlabel gHudElementsWorld -.space 0x00000500 - -dlabel gHudElementsBattle -.space 0x00000500 - -dlabel gHudElements -.space 4 - -dlabel gHudElementCacheBufferWorld -.space 4 - -dlabel gHudElementCacheSizeWorld -.space 4 - -dlabel D_8015796C -.space 4 - -dlabel gHudElementCacheTableRasterWorld -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteWorld -.space 0x00000600 - -dlabel gHudElementCacheBufferBattle -.space 4 - -dlabel gHudElementCacheSizeBattle -.space 4 - -dlabel D_80158578 -.space 8 - -dlabel gHudElementCacheTableRasterBattle -.space 0x00000600 - -dlabel gHudElementCacheTablePaletteBattle -.space 0x00000600 - -dlabel D_80159180 -.space 0x00000010 - -dlabel wTriggerList -.space 0x00000100 - -dlabel bTriggerList -.space 0x00000100 - -dlabel gCurrentTriggerListPtr -.space 4 - -dlabel D_80159394 -.space 0x0000000c - -dlabel gBackgroundPalette -.space 0x00000200 - -dlabel gBackroundLastScrollValue -.space 0x00000020 - -dlabel wSpriteShadingProfile -.space 0x000000b0 - -dlabel bSpriteShadingProfile -.space 0x000000b0 - -dlabel wSpriteShadingProfileAux -.space 0x000000b0 - -dlabel bSpriteShadingProfileAux -.space 0x000000b0 - -dlabel SpriteShadingPalette -.space 0x00000020 - -dlabel wEnvSounds -.space 0x00000118 - -dlabel bEnvSounds -.space 0x00000118 - -dlabel gCurrentEnvSounds -.space 4 - -dlabel SfxReverbMode -.space 4 - -dlabel D_80159AD8 -.space 8 - -dlabel MusicDefaultVolume -.space 2 - -dlabel MusicTargetVolume -.space 2 - -dlabel MusicMaxVolume -.space 2 - -dlabel MusicCurrentVolume -.space 2 - -dlabel D_80159AE8 -.space 8 - -dlabel gMusicSettings -.space 0x00000060 - -dlabel D_80159B50 -.space 0x00000200 - -dlabel gWindows -.space 0x00000800 - -dlabel gCollisionStatus -.space 0x00000028 - -dlabel gCurrentHiddenPanels -.space 0x10 - -.space 8 - -dlabel TextureHandles -.space 0x00002200 - -dlabel ScreenOverlays -.space 0x00000030 - -dlabel AmbientSoundData -.space 0x00000010 - -dlabel CreateEntityVarArgBuffer -.space 0x00000010 - -dlabel D_8015C7E0 -.space 0x20 - -dlabel D_8015C800 -.space 0x7800 - -dlabel D_80164000 -.space 0x32C60 - -#endif diff --git a/ver/us/asm/os/padding.s b/ver/us/asm/os/padding.s deleted file mode 100644 index 772ba0fe9b..0000000000 --- a/ver/us/asm/os/padding.s +++ /dev/null @@ -1,10 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .text - -.space 0x10 diff --git a/ver/us/asm/os/parameters.s b/ver/us/asm/os/parameters.s deleted file mode 100644 index 73d6bcc454..0000000000 --- a/ver/us/asm/os/parameters.s +++ /dev/null @@ -1,37 +0,0 @@ -.include "macro.inc" - -# assembler directives -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches -.set gp=64 # allow use of 64-bit general purpose registers - -.section .text, "ax" - -.globl leoBootID -leoBootID = 0x800001a0 - -.globl osTvType -osTvType = 0x80000300 - -.globl osRomType -osRomType = 0x80000304 - -.globl osRomBase -osRomBase = 0x80000308 - -.globl osResetType -osResetType = 0x8000030C - -.globl osCicId -osCicId = 0x80000310 - -.globl osVersion -osVersion = 0x80000314 - -.globl osMemSize -osMemSize = 0x80000318 - -.globl osAppNMIBuffer -osAppNMIBuffer = 0x8000031C - -.fill 0x60 diff --git a/ver/us/splat.yaml b/ver/us/splat.yaml index f7f17dbab1..02a2aaf1e1 100644 --- a/ver/us/splat.yaml +++ b/ver/us/splat.yaml @@ -26,6 +26,7 @@ options: undefined_syms_auto_path: ver/us/undefined_syms_auto.txt ld_wildcard_sections: True ld_use_symbolic_vram_addresses: False + hasm_in_src_path: True vram_classes: # Main - { name: main, vram: 0x80025C00 } @@ -80,15 +81,15 @@ segments: start: 0x0040 vram: 0xA4000040 subsegments: - - [0x0040, asm, boot] + - [0x0040, hasm, boot/ipl3_boot] - [0x0B70, bin, rspboot_font] - name: main type: code start: 0x1000 vram_class: main subsegments: - - [auto, hasm, bss] - - [auto, hasm, entry_point] + - [auto, hasm, boot/entry_point] + - [auto, c, bss/main_pre_bss] - [auto, c, is_debug, -g -fforce-addr] - [auto, c, main_pre] - [auto, c, main] @@ -338,7 +339,9 @@ segments: - [auto, hasm, os/decode_yay0] - [auto, c, os/osFlash] - [0x4AC90, pm_effect_loads, effect_loads] + - [auto, c, bss/main_post_bss] - [auto, c, battle/battle] + - [auto, c, battle/battle_bss] - [0x4E5A0, bin, n_aspMain_text] - start: 0x4F200 type: .data @@ -381,7 +384,7 @@ segments: start: 0x759B0 vram_class: engine1 subsegments: - - [auto, hasm, bss2] + - [auto, c, bss/engine1_pre_bss] - [auto, c, npc_collision] - [auto, c, 77480] - [auto, c, 7B440] @@ -392,11 +395,11 @@ segments: - [auto, c, world/actions] # DUMMY ROM - [auto, c, world/partners] - [auto, c, global_hud_scripts] - - [auto, hasm, bss2_2] - [auto, c, 891b0_len_fb0] - [auto, c, 8a160_len_700] - [auto, c, 8a860_len_3f30] - [auto, c, draw_box] + - [auto, c, bss/engine1_post_bss] - start: 0x919B0 type: .data name: global_hud_scripts @@ -815,7 +818,7 @@ segments: start: 0xA5DD0 vram_class: engine2 subsegments: - - [auto, hasm, bss3] + - [auto, c, bss/engine2_pre_bss] - [auto, c, entity] - [auto, c, game_states] - [auto, c, model] @@ -838,6 +841,7 @@ segments: - [auto, c, sprite_shading] - [auto, c, audio/sfx] - [auto, c, audio/e0b30_len_b80] + - [auto, c, bss/engine2_post_bss] - start: 0xE2DF0 type: .data name: screen_overlays