mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-05-30 17:05:15 -04:00
pal-final: Get lib segment matching excluding pointers
This commit is contained in:
+35
-6
@@ -1,4 +1,8 @@
|
||||
#define LIBFILES(section) \
|
||||
/**
|
||||
* The order of files differ slightly between ROM versions, so there's a bit of
|
||||
* macro concatenation here to avoid having to print the list twice.
|
||||
*/
|
||||
#define LIBFILES1(section) \
|
||||
build/ROMID/lib/entry.o (section); \
|
||||
build/ROMID/lib/segments.o (section); \
|
||||
build/ROMID/lib/init.o (section); \
|
||||
@@ -20,7 +24,6 @@
|
||||
build/ROMID/lib/ultra/io/pfsisplug.o (section); \
|
||||
build/ROMID/lib/ultra/libc/llcvt.o (section); \
|
||||
build/ROMID/lib/ultra/os/initialize.o (section); \
|
||||
build/ROMID/lib/lib_05dc0.o (section); \
|
||||
build/ROMID/lib/ultra/io/sptask.o (section); \
|
||||
build/ROMID/lib/lib_06100.o (section); \
|
||||
build/ROMID/lib/lib_06330.o (section); \
|
||||
@@ -30,6 +33,7 @@
|
||||
build/ROMID/lib/lib_074f0.o (section); \
|
||||
build/ROMID/lib/audiomgr.o (section); \
|
||||
build/ROMID/lib/lib_09660.o (section); \
|
||||
build/ROMID/lib/lib_09a80.o (section); \
|
||||
build/ROMID/lib/lib_0bfb0.o (section); \
|
||||
build/ROMID/lib/lib_0c000.o (section); \
|
||||
build/ROMID/lib/dma.o (section); \
|
||||
@@ -141,8 +145,9 @@
|
||||
build/ROMID/lib/ultra/os/getsr.o (section); \
|
||||
build/ROMID/lib/ultra/io/sirawread.o (section); \
|
||||
build/ROMID/lib/ultra/io/sirawwrite.o (section); \
|
||||
build/ROMID/lib/ultra/os/writebackdcache.o (section); \
|
||||
build/ROMID/lib/ultra/libc/ll.o (section); \
|
||||
build/ROMID/lib/ultra/os/writebackdcache.o (section);
|
||||
|
||||
#define LIBFILES2(section) \
|
||||
build/ROMID/lib/ultra/libc/bzero.o (section); \
|
||||
build/ROMID/lib/ultra/os/getcause.o (section); \
|
||||
build/ROMID/lib/lib_4b170.o (section); \
|
||||
@@ -163,7 +168,9 @@
|
||||
build/ROMID/lib/lib_4d480.o (section); \
|
||||
build/ROMID/lib/lib_4d6f0.o (section); \
|
||||
build/ROMID/lib/ultra/os/maptlb.o (section); \
|
||||
build/ROMID/lib/ultra/io/aisetfreq.o (section); \
|
||||
build/ROMID/lib/ultra/io/aisetfreq.o (section);
|
||||
|
||||
#define LIBFILES3(section) \
|
||||
build/ROMID/lib/ultra/io/aisetnextbuf.o (section); \
|
||||
build/ROMID/lib/ultra/io/aigetlen.o (section); \
|
||||
build/ROMID/lib/ultra/os/invaldcache.o (section); \
|
||||
@@ -194,10 +201,32 @@
|
||||
build/ROMID/lib/ultra/os/yieldthread.o (section); \
|
||||
build/ROMID/lib/ultra/io/si.o (section); \
|
||||
build/ROMID/lib/ultra/os/probetlb.o (section); \
|
||||
build/ROMID/lib/lib_51d50.o (section); \
|
||||
build/ROMID/lib/lib_51d50.o (section);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
#define LIBFILES(section) \
|
||||
LIBFILES1(section) \
|
||||
LIBFILES2(section) \
|
||||
build/ROMID/lib/ultra/libc/ll.o (section); \
|
||||
LIBFILES3(section) \
|
||||
build/ROMID/lib/ultra/os/initialize2.o (section); \
|
||||
build/ROMID/lib/ultra/io/ai.o (section); \
|
||||
build/ROMID/lib/ultra/os/jammesg.o (section); \
|
||||
build/ROMID/lib/ultra/io/pigetcmdq.o (section); \
|
||||
build/ROMID/lib/ultra/io/pirawread.o (section); \
|
||||
build/ROMID/lib/ultra/libc/xlitob.o (section); \
|
||||
build/ROMID/lib/lib_52360.o (section); \
|
||||
build/ROMID/lib/ultra/os/unmaptlball.o (section);
|
||||
#else
|
||||
#define LIBFILES(section) \
|
||||
LIBFILES1(section) \
|
||||
build/ROMID/lib/ultra/libc/ll.o (section); \
|
||||
LIBFILES2(section) \
|
||||
LIBFILES3(section) \
|
||||
build/ROMID/lib/ultra/io/ai.o (section); \
|
||||
build/ROMID/lib/ultra/os/jammesg.o (section); \
|
||||
build/ROMID/lib/ultra/io/pigetcmdq.o (section); \
|
||||
build/ROMID/lib/ultra/io/pirawread.o (section); \
|
||||
build/ROMID/lib/ultra/libc/xlitob.o (section); \
|
||||
build/ROMID/lib/lib_52360.o (section);
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#include "gamefiles.inc"
|
||||
#include "libfiles.inc"
|
||||
|
||||
#define VERSION_NTSC_BETA 0
|
||||
#define VERSION_NTSC_1_0 1
|
||||
#define VERSION_NTSC_FINAL 2
|
||||
@@ -8,6 +5,9 @@
|
||||
#define VERSION_PAL_FINAL 4
|
||||
#define VERSION_JPN_FINAL 5
|
||||
|
||||
#include "gamefiles.inc"
|
||||
#include "libfiles.inc"
|
||||
|
||||
#define BEGIN_SEG(name) \
|
||||
_##name##SegmentStart = ADDR(.name); \
|
||||
_##name##SegmentRomStart = __rompos; \
|
||||
@@ -189,7 +189,7 @@ SECTIONS
|
||||
|
||||
PLACEHOLDER_SEGMENT(libzip)
|
||||
|
||||
__rompos = 0x02000000;
|
||||
__rompos = 0x04000000;
|
||||
__rampos = 0x70001000;
|
||||
|
||||
BEGIN_SEG(lib)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_16110.h"
|
||||
#include "data.h"
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
#include "game/lang.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_16110.h"
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
#include "game/splat.h"
|
||||
#include "game/wallhit.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/model.h"
|
||||
#include "lib/rng.h"
|
||||
|
||||
+2
-1
@@ -94,7 +94,8 @@
|
||||
#include "lib/args.h"
|
||||
#include "lib/controller.h"
|
||||
#include "lib/lib_06440.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/lib_11420.h"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
#include "game/music.h"
|
||||
#include "game/lang.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/memory.h"
|
||||
#include "lib/rng.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/mpstats.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "game/utils.h"
|
||||
#include "game/wallhit.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_16110.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "constants.h"
|
||||
#include "game/prop.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/gfxmemory.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "game/game_015470.h"
|
||||
#include "game/game_01afc0.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/lib_317f0.h"
|
||||
#include "data.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <ultra64.h>
|
||||
#include "constants.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "game/gamefile.h"
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "data.h"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/model.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "constants.h"
|
||||
#include "game/game_0b2150.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "game/propobj.h"
|
||||
#include "game/splat.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
#include "game/mpstats.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/controller.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/utils.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
#include "lib/lib_16110.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/utils.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "data.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "game/pak/pak.h"
|
||||
#include "game/utils.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_126b0.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "game/game_165670.h"
|
||||
#include "game/pad.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
#include "lib/lib_16110.h"
|
||||
#include "data.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "game/game_165670.h"
|
||||
#include "game/game_1668e0.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
#include "lib/lib_16110.h"
|
||||
#include "data.h"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/lang.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/lang.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "game/room.h"
|
||||
#include "game/game_165670.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/memory.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/memory.h"
|
||||
#include "lib/lib_16110.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "game/pak/pak.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/args.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_317f0.h"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "game/pad.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/memory.h"
|
||||
#include "lib/rng.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/rng.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
#include "game/file.h"
|
||||
#include "game/gfxmemory.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@
|
||||
#include "game/wallhit.h"
|
||||
#include "game/shards.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
#include "game/radar.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_16110.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
#include "game/wallhit.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_074f0.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/memory.h"
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include "game/options.h"
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
#include "data.h"
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include "game/sky.h"
|
||||
#include "game/game_1531a0.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/memory.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "game/sparks/sparks.h"
|
||||
#include "game/file.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/rng.h"
|
||||
#include "lib/lib_159b0.h"
|
||||
#include "data.h"
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
#include "game/propobj.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/controller.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/model.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "game/mplayer/mplayer.h"
|
||||
#include "game/options.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/main.h"
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "game/propobj.h"
|
||||
#include "game/wallhit.h"
|
||||
#include "gvars/gvars.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/dma.h"
|
||||
#include "lib/main.h"
|
||||
#include "lib/lib_0e9d0.h"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef _IN_LIB_LIB_05DC0_H
|
||||
#define _IN_LIB_LIB_05DC0_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u32 func00005dc0(void);
|
||||
|
||||
#endif
|
||||
@@ -7,55 +7,5 @@
|
||||
u32 func00009660(void);
|
||||
void amgrClearDmaBuffers(void);
|
||||
u32 func00009a08(void);
|
||||
void func00009a80(void);
|
||||
void func00009a88(void);
|
||||
void func00009a90(void);
|
||||
void func00009a98(void);
|
||||
void func00009aa0(u32 arg0);
|
||||
Gfx *debugRenderSomething(Gfx *gdl);
|
||||
void func00009ab0(void);
|
||||
void func00009b50(void *fb);
|
||||
void func00009bf8(void);
|
||||
void func00009c3c(s32 stagenum);
|
||||
void func00009ec4(s32 arg0);
|
||||
u32 func00009ed4(void);
|
||||
void func0000a044(void);
|
||||
void func0000aa50(f32 arg0);
|
||||
void func0000aab0(u32 arg0);
|
||||
void *viGetUnk28(void);
|
||||
void *vi2GetUnk28(void);
|
||||
u32 func0000ab4c(void);
|
||||
u32 func0000ab6c(void);
|
||||
u32 func0000ab78(void);
|
||||
u32 func0000aca4(void);
|
||||
u32 func0000ad5c(void);
|
||||
u32 func0000af00(void);
|
||||
u32 func0000b0e8(void);
|
||||
Gfx *func0000b1a8(Gfx *gdl);
|
||||
Gfx *func0000b1d0(Gfx *gdl);
|
||||
Gfx *func0000b280(Gfx *gdl);
|
||||
Gfx *func0000b2c4(Gfx *gdl);
|
||||
Gfx *func0000b330(Gfx *gdl);
|
||||
void viSetBuf(s16 x, s16 y);
|
||||
s16 viGetBufX(void);
|
||||
s16 viGetBufY(void);
|
||||
void viSetXY(s16 x, s16 y);
|
||||
s16 viGetWidth(void);
|
||||
s16 viGetHeight(void);
|
||||
void viSetViewSize(s16 x, s16 y);
|
||||
s16 viGetViewWidth(void);
|
||||
s16 viGetViewHeight(void);
|
||||
void viSetViewPosition(s16 left, s16 top);
|
||||
s16 viGetViewLeft(void);
|
||||
s16 viGetViewTop(void);
|
||||
void viSetUseZBuf(bool use);
|
||||
void viSetFovY(f32 fovy);
|
||||
void viSetAspect(f32 aspect);
|
||||
f32 viGetAspect(void);
|
||||
void viSetFovAspectAndSize(f32 fovy, f32 aspect, s16 width, s16 height);
|
||||
f32 viGetFovY(void);
|
||||
void viSetZRange(f32 arg0, f32 arg1);
|
||||
void viGetZRange(struct zrange *zrange);
|
||||
u32 func0000bf04(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#ifndef _IN_LIB_LIB_09A80_H
|
||||
#define _IN_LIB_LIB_09A80_H
|
||||
#include <ultra64.h>
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
void func00009a80(void);
|
||||
void func00009a88(void);
|
||||
void func00009a90(void);
|
||||
void func00009a98(void);
|
||||
void func00009aa0(u32 arg0);
|
||||
Gfx *debugRenderSomething(Gfx *gdl);
|
||||
void func00009ab0(void);
|
||||
void func00009b50(void *fb);
|
||||
void func00009bf8(void);
|
||||
void func00009c3c(s32 stagenum);
|
||||
void func00009ec4(s32 arg0);
|
||||
u32 func00009ed4(void);
|
||||
void func0000a044(void);
|
||||
void func0000aa50(f32 arg0);
|
||||
void func0000aab0(u32 arg0);
|
||||
void *viGetUnk28(void);
|
||||
void *vi2GetUnk28(void);
|
||||
u32 func0000ab4c(void);
|
||||
u32 func0000ab6c(void);
|
||||
u32 func0000ab78(void);
|
||||
u32 func0000aca4(void);
|
||||
u32 func0000ad5c(void);
|
||||
u32 func0000af00(void);
|
||||
u32 func0000b0e8(void);
|
||||
Gfx *func0000b1a8(Gfx *gdl);
|
||||
Gfx *func0000b1d0(Gfx *gdl);
|
||||
Gfx *func0000b280(Gfx *gdl);
|
||||
Gfx *func0000b2c4(Gfx *gdl);
|
||||
Gfx *func0000b330(Gfx *gdl);
|
||||
void viSetBuf(s16 x, s16 y);
|
||||
s16 viGetBufX(void);
|
||||
s16 viGetBufY(void);
|
||||
void viSetXY(s16 x, s16 y);
|
||||
s16 viGetWidth(void);
|
||||
s16 viGetHeight(void);
|
||||
void viSetViewSize(s16 x, s16 y);
|
||||
s16 viGetViewWidth(void);
|
||||
s16 viGetViewHeight(void);
|
||||
void viSetViewPosition(s16 left, s16 top);
|
||||
s16 viGetViewLeft(void);
|
||||
s16 viGetViewTop(void);
|
||||
void viSetUseZBuf(bool use);
|
||||
void viSetFovY(f32 fovy);
|
||||
void viSetAspect(f32 aspect);
|
||||
f32 viGetAspect(void);
|
||||
void viSetFovAspectAndSize(f32 fovy, f32 aspect, s16 width, s16 height);
|
||||
f32 viGetFovY(void);
|
||||
void viSetZRange(f32 arg0, f32 arg1);
|
||||
void viGetZRange(struct zrange *zrange);
|
||||
u32 func0000bf04(void);
|
||||
|
||||
#endif
|
||||
@@ -374,6 +374,456 @@ void amgrAllocateStack(void)
|
||||
g_AudioSp = allocateStack(THREAD_AUDIO, STACKSIZE_AUDIO);
|
||||
}
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel amgrCreate
|
||||
/* 8988: 27bdfa48 */ addiu $sp,$sp,-1464
|
||||
/* 898c: afbf002c */ sw $ra,0x2c($sp)
|
||||
/* 8990: afb0001c */ sw $s0,0x1c($sp)
|
||||
/* 8994: afa405b8 */ sw $a0,0x5b8($sp)
|
||||
/* 8998: 00a08025 */ move $s0,$a1
|
||||
/* 899c: afb30028 */ sw $s3,0x28($sp)
|
||||
/* 89a0: afb20024 */ sw $s2,0x24($sp)
|
||||
/* 89a4: afb10020 */ sw $s1,0x20($sp)
|
||||
/* 89a8: 0c01362c */ jal 0x4d8b0
|
||||
/* 89ac: 24045604 */ li $a0,0x5604
|
||||
/* 89b0: 8fa505b8 */ lw $a1,0x5b8($sp)
|
||||
/* 89b4: 3c0e7001 */ lui $t6,0x7001
|
||||
/* 89b8: 25ce9754 */ addiu $t6,$t6,-26796
|
||||
/* 89bc: aca20018 */ sw $v0,0x18($a1)
|
||||
/* 89c0: acae0010 */ sw $t6,0x10($a1)
|
||||
/* 89c4: 8e0f0004 */ lw $t7,0x4($s0)
|
||||
/* 89c8: 3c048009 */ lui $a0,0x8009
|
||||
/* 89cc: 44825000 */ mtc1 $v0,$f10
|
||||
/* 89d0: 448f2000 */ mtc1 $t7,$f4
|
||||
/* 89d4: 24841e30 */ addiu $a0,$a0,0x1e30
|
||||
/* 89d8: 05e10005 */ bgez $t7,.PF000089f0
|
||||
/* 89dc: 468021a0 */ cvt.s.w $f6,$f4
|
||||
/* 89e0: 3c014f80 */ lui $at,0x4f80
|
||||
/* 89e4: 44814000 */ mtc1 $at,$f8
|
||||
/* 89e8: 00000000 */ nop
|
||||
/* 89ec: 46083180 */ add.s $f6,$f6,$f8
|
||||
.PF000089f0:
|
||||
/* 89f0: 46805420 */ cvt.s.w $f16,$f10
|
||||
/* 89f4: 3c0141c8 */ lui $at,0x41c8
|
||||
/* 89f8: 44812000 */ mtc1 $at,$f4
|
||||
/* 89fc: 240200b8 */ li $v0,0xb8
|
||||
/* 8a00: 46103482 */ mul.s $f18,$f6,$f16
|
||||
/* 8a04: 46049003 */ div.s $f0,$f18,$f4
|
||||
/* 8a08: 4600020d */ trunc.w.s $f8,$f0
|
||||
/* 8a0c: 44194000 */ mfc1 $t9,$f8
|
||||
/* 8a10: 00000000 */ nop
|
||||
/* 8a14: 03201825 */ move $v1,$t9
|
||||
/* 8a18: 44835000 */ mtc1 $v1,$f10
|
||||
/* 8a1c: ac990000 */ sw $t9,0x0($a0)
|
||||
/* 8a20: 07210005 */ bgez $t9,.PF00008a38
|
||||
/* 8a24: 468051a0 */ cvt.s.w $f6,$f10
|
||||
/* 8a28: 3c014f80 */ lui $at,0x4f80
|
||||
/* 8a2c: 44818000 */ mtc1 $at,$f16
|
||||
/* 8a30: 00000000 */ nop
|
||||
/* 8a34: 46103180 */ add.s $f6,$f6,$f16
|
||||
.PF00008a38:
|
||||
/* 8a38: 4600303c */ c.lt.s $f6,$f0
|
||||
/* 8a3c: 00000000 */ nop
|
||||
/* 8a40: 45000004 */ bc1f .PF00008a54
|
||||
/* 8a44: 00000000 */ nop
|
||||
/* 8a48: 24690001 */ addiu $t1,$v1,0x1
|
||||
/* 8a4c: ac890000 */ sw $t1,0x0($a0)
|
||||
/* 8a50: 01201825 */ move $v1,$t1
|
||||
.PF00008a54:
|
||||
/* 8a54: 0062001b */ divu $zero,$v1,$v0
|
||||
/* 8a58: 00005012 */ mflo $t2
|
||||
/* 8a5c: 3c018009 */ lui $at,0x8009
|
||||
/* 8a60: 14400002 */ bnez $v0,.PF00008a6c
|
||||
/* 8a64: 00000000 */ nop
|
||||
/* 8a68: 0007000d */ break 0x7
|
||||
.PF00008a6c:
|
||||
/* 8a6c: 01420019 */ multu $t2,$v0
|
||||
/* 8a70: 00005812 */ mflo $t3
|
||||
/* 8a74: 256c00b8 */ addiu $t4,$t3,0xb8
|
||||
/* 8a78: ac8c0000 */ sw $t4,0x0($a0)
|
||||
/* 8a7c: 258dff48 */ addiu $t5,$t4,-184
|
||||
/* 8a80: ac2d1e2c */ sw $t5,0x1e2c($at)
|
||||
/* 8a84: 3c018009 */ lui $at,0x8009
|
||||
/* 8a88: 258e0050 */ addiu $t6,$t4,0x50
|
||||
/* 8a8c: ac2e1e34 */ sw $t6,0x1e34($at)
|
||||
/* 8a90: 3c018006 */ lui $at,0x8006
|
||||
/* 8a94: 0c00255c */ jal 0x9570
|
||||
/* 8a98: a020cc34 */ sb $zero,-0x33cc($at)
|
||||
/* 8a9c: 3c048009 */ lui $a0,0x8009
|
||||
/* 8aa0: 3c058009 */ lui $a1,0x8009
|
||||
/* 8aa4: 24a51db0 */ addiu $a1,$a1,0x1db0
|
||||
/* 8aa8: 24841d98 */ addiu $a0,$a0,0x1d98
|
||||
/* 8aac: 0c011f10 */ jal 0x47c40
|
||||
/* 8ab0: 24060008 */ li $a2,0x8
|
||||
/* 8ab4: 3c048009 */ lui $a0,0x8009
|
||||
/* 8ab8: 3c058009 */ lui $a1,0x8009
|
||||
/* 8abc: 24a51d78 */ addiu $a1,$a1,0x1d78
|
||||
/* 8ac0: 24841d60 */ addiu $a0,$a0,0x1d60
|
||||
/* 8ac4: 0c011f10 */ jal 0x47c40
|
||||
/* 8ac8: 24060008 */ li $a2,0x8
|
||||
/* 8acc: 3c128009 */ lui $s2,0x8009
|
||||
/* 8ad0: 26521e3c */ addiu $s2,$s2,0x1e3c
|
||||
/* 8ad4: 240f07d0 */ li $t7,0x7d0
|
||||
/* 8ad8: 3c108009 */ lui $s0,0x8009
|
||||
/* 8adc: 3c138009 */ lui $s3,0x8009
|
||||
/* 8ae0: 3c118009 */ lui $s1,0x8009
|
||||
/* 8ae4: ae4f0000 */ sw $t7,0x0($s2)
|
||||
/* 8ae8: 26315740 */ addiu $s1,$s1,0x5740
|
||||
/* 8aec: 26731b20 */ addiu $s3,$s3,0x1b20
|
||||
/* 8af0: 26101b18 */ addiu $s0,$s0,0x1b18
|
||||
.PF00008af4:
|
||||
/* 8af4: 8e580000 */ lw $t8,0x0($s2)
|
||||
/* 8af8: 00002025 */ move $a0,$zero
|
||||
/* 8afc: 00002825 */ move $a1,$zero
|
||||
/* 8b00: 0018c8c0 */ sll $t9,$t8,0x3
|
||||
/* 8b04: afb90010 */ sw $t9,0x10($sp)
|
||||
/* 8b08: 02203025 */ move $a2,$s1
|
||||
/* 8b0c: 0c00bd05 */ jal 0x2f414
|
||||
/* 8b10: 24070001 */ li $a3,0x1
|
||||
/* 8b14: 26100004 */ addiu $s0,$s0,0x4
|
||||
/* 8b18: 0213082b */ sltu $at,$s0,$s3
|
||||
/* 8b1c: 1420fff5 */ bnez $at,.PF00008af4
|
||||
/* 8b20: ae02fffc */ sw $v0,-0x4($s0)
|
||||
/* 8b24: 3c108009 */ lui $s0,0x8009
|
||||
/* 8b28: 3c128009 */ lui $s2,0x8009
|
||||
/* 8b2c: 26521b24 */ addiu $s2,$s2,0x1b24
|
||||
/* 8b30: 26101b18 */ addiu $s0,$s0,0x1b18
|
||||
.PF00008b34:
|
||||
/* 8b34: 24090060 */ li $t1,0x60
|
||||
/* 8b38: afa90010 */ sw $t1,0x10($sp)
|
||||
/* 8b3c: 00002025 */ move $a0,$zero
|
||||
/* 8b40: 00002825 */ move $a1,$zero
|
||||
/* 8b44: 02203025 */ move $a2,$s1
|
||||
/* 8b48: 0c00bd05 */ jal 0x2f414
|
||||
/* 8b4c: 24070001 */ li $a3,0x1
|
||||
/* 8b50: ae020008 */ sw $v0,0x8($s0)
|
||||
/* 8b54: a4400004 */ sh $zero,0x4($v0)
|
||||
/* 8b58: 240a0e68 */ li $t2,0xe68
|
||||
/* 8b5c: afaa0010 */ sw $t2,0x10($sp)
|
||||
/* 8b60: 00002025 */ move $a0,$zero
|
||||
/* 8b64: 00002825 */ move $a1,$zero
|
||||
/* 8b68: 02203025 */ move $a2,$s1
|
||||
/* 8b6c: 0c00bd05 */ jal 0x2f414
|
||||
/* 8b70: 24070001 */ li $a3,0x1
|
||||
/* 8b74: 8e0b0008 */ lw $t3,0x8($s0)
|
||||
/* 8b78: 26100004 */ addiu $s0,$s0,0x4
|
||||
/* 8b7c: 0212082b */ sltu $at,$s0,$s2
|
||||
/* 8b80: 1420ffec */ bnez $at,.PF00008b34
|
||||
/* 8b84: ad620000 */ sw $v0,0x0($t3)
|
||||
/* 8b88: 3c0d8006 */ lui $t5,0x8006
|
||||
/* 8b8c: 3c088009 */ lui $t0,0x8009
|
||||
/* 8b90: 25adcc38 */ addiu $t5,$t5,-13256
|
||||
/* 8b94: 25081040 */ addiu $t0,$t0,0x1040
|
||||
/* 8b98: 27a201b8 */ addiu $v0,$sp,0x1b8
|
||||
/* 8b9c: 27a30088 */ addiu $v1,$sp,0x88
|
||||
/* 8ba0: 27a50190 */ addiu $a1,$sp,0x190
|
||||
/* 8ba4: 27a60060 */ addiu $a2,$sp,0x60
|
||||
/* 8ba8: 24070001 */ li $a3,0x1
|
||||
/* 8bac: 25af0024 */ addiu $t7,$t5,0x24
|
||||
/* 8bb0: 27ac0588 */ addiu $t4,$sp,0x588
|
||||
.PF00008bb4:
|
||||
/* 8bb4: 8da10000 */ lw $at,0x0($t5)
|
||||
/* 8bb8: 25ad000c */ addiu $t5,$t5,0xc
|
||||
/* 8bbc: 258c000c */ addiu $t4,$t4,0xc
|
||||
/* 8bc0: ad81fff4 */ sw $at,-0xc($t4)
|
||||
/* 8bc4: 8da1fff8 */ lw $at,-0x8($t5)
|
||||
/* 8bc8: ad81fff8 */ sw $at,-0x8($t4)
|
||||
/* 8bcc: 8da1fffc */ lw $at,-0x4($t5)
|
||||
/* 8bd0: 15affff8 */ bne $t5,$t7,.PF00008bb4
|
||||
/* 8bd4: ad81fffc */ sw $at,-0x4($t4)
|
||||
/* 8bd8: 8da10000 */ lw $at,0x0($t5)
|
||||
/* 8bdc: 3c198006 */ lui $t9,0x8006
|
||||
/* 8be0: 2739cc60 */ addiu $t9,$t9,-13216
|
||||
/* 8be4: 272a0024 */ addiu $t2,$t9,0x24
|
||||
/* 8be8: 27b80560 */ addiu $t8,$sp,0x560
|
||||
/* 8bec: ad810000 */ sw $at,0x0($t4)
|
||||
.PF00008bf0:
|
||||
/* 8bf0: 8f210000 */ lw $at,0x0($t9)
|
||||
/* 8bf4: 2739000c */ addiu $t9,$t9,0xc
|
||||
/* 8bf8: 2718000c */ addiu $t8,$t8,0xc
|
||||
/* 8bfc: af01fff4 */ sw $at,-0xc($t8)
|
||||
/* 8c00: 8f21fff8 */ lw $at,-0x8($t9)
|
||||
/* 8c04: af01fff8 */ sw $at,-0x8($t8)
|
||||
/* 8c08: 8f21fffc */ lw $at,-0x4($t9)
|
||||
/* 8c0c: 172afff8 */ bne $t9,$t2,.PF00008bf0
|
||||
/* 8c10: af01fffc */ sw $at,-0x4($t8)
|
||||
/* 8c14: 8f210000 */ lw $at,0x0($t9)
|
||||
/* 8c18: 3c0e8006 */ lui $t6,0x8006
|
||||
/* 8c1c: 25cecc88 */ addiu $t6,$t6,-13176
|
||||
/* 8c20: 25cd0024 */ addiu $t5,$t6,0x24
|
||||
/* 8c24: 27ab0538 */ addiu $t3,$sp,0x538
|
||||
/* 8c28: af010000 */ sw $at,0x0($t8)
|
||||
.PF00008c2c:
|
||||
/* 8c2c: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8c30: 25ce000c */ addiu $t6,$t6,0xc
|
||||
/* 8c34: 256b000c */ addiu $t3,$t3,0xc
|
||||
/* 8c38: ad61fff4 */ sw $at,-0xc($t3)
|
||||
/* 8c3c: 8dc1fff8 */ lw $at,-0x8($t6)
|
||||
/* 8c40: ad61fff8 */ sw $at,-0x8($t3)
|
||||
/* 8c44: 8dc1fffc */ lw $at,-0x4($t6)
|
||||
/* 8c48: 15cdfff8 */ bne $t6,$t5,.PF00008c2c
|
||||
/* 8c4c: ad61fffc */ sw $at,-0x4($t3)
|
||||
/* 8c50: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8c54: 3c098006 */ lui $t1,0x8006
|
||||
/* 8c58: 2529ccb0 */ addiu $t1,$t1,-13136
|
||||
/* 8c5c: 253900c0 */ addiu $t9,$t1,0xc0
|
||||
/* 8c60: 27ac0470 */ addiu $t4,$sp,0x470
|
||||
/* 8c64: ad610000 */ sw $at,0x0($t3)
|
||||
.PF00008c68:
|
||||
/* 8c68: 8d210000 */ lw $at,0x0($t1)
|
||||
/* 8c6c: 2529000c */ addiu $t1,$t1,0xc
|
||||
/* 8c70: 258c000c */ addiu $t4,$t4,0xc
|
||||
/* 8c74: ad81fff4 */ sw $at,-0xc($t4)
|
||||
/* 8c78: 8d21fff8 */ lw $at,-0x8($t1)
|
||||
/* 8c7c: ad81fff8 */ sw $at,-0x8($t4)
|
||||
/* 8c80: 8d21fffc */ lw $at,-0x4($t1)
|
||||
/* 8c84: 1539fff8 */ bne $t1,$t9,.PF00008c68
|
||||
/* 8c88: ad81fffc */ sw $at,-0x4($t4)
|
||||
/* 8c8c: 8d210000 */ lw $at,0x0($t1)
|
||||
/* 8c90: 8d390004 */ lw $t9,0x4($t1)
|
||||
/* 8c94: 3c0f8006 */ lui $t7,0x8006
|
||||
/* 8c98: 25efcd78 */ addiu $t7,$t7,-12936
|
||||
/* 8c9c: 25ee0048 */ addiu $t6,$t7,0x48
|
||||
/* 8ca0: 27b80428 */ addiu $t8,$sp,0x428
|
||||
/* 8ca4: ad810000 */ sw $at,0x0($t4)
|
||||
/* 8ca8: ad990004 */ sw $t9,0x4($t4)
|
||||
.PF00008cac:
|
||||
/* 8cac: 8de10000 */ lw $at,0x0($t7)
|
||||
/* 8cb0: 25ef000c */ addiu $t7,$t7,0xc
|
||||
/* 8cb4: 2718000c */ addiu $t8,$t8,0xc
|
||||
/* 8cb8: af01fff4 */ sw $at,-0xc($t8)
|
||||
/* 8cbc: 8de1fff8 */ lw $at,-0x8($t7)
|
||||
/* 8cc0: af01fff8 */ sw $at,-0x8($t8)
|
||||
/* 8cc4: 8de1fffc */ lw $at,-0x4($t7)
|
||||
/* 8cc8: 15eefff8 */ bne $t7,$t6,.PF00008cac
|
||||
/* 8ccc: af01fffc */ sw $at,-0x4($t8)
|
||||
/* 8cd0: 3c0a8006 */ lui $t2,0x8006
|
||||
/* 8cd4: 254acdc0 */ addiu $t2,$t2,-12864
|
||||
/* 8cd8: 25490060 */ addiu $t1,$t2,0x60
|
||||
/* 8cdc: 27ab03c0 */ addiu $t3,$sp,0x3c0
|
||||
.PF00008ce0:
|
||||
/* 8ce0: 8d410000 */ lw $at,0x0($t2)
|
||||
/* 8ce4: 254a000c */ addiu $t2,$t2,0xc
|
||||
/* 8ce8: 256b000c */ addiu $t3,$t3,0xc
|
||||
/* 8cec: ad61fff4 */ sw $at,-0xc($t3)
|
||||
/* 8cf0: 8d41fff8 */ lw $at,-0x8($t2)
|
||||
/* 8cf4: ad61fff8 */ sw $at,-0x8($t3)
|
||||
/* 8cf8: 8d41fffc */ lw $at,-0x4($t2)
|
||||
/* 8cfc: 1549fff8 */ bne $t2,$t1,.PF00008ce0
|
||||
/* 8d00: ad61fffc */ sw $at,-0x4($t3)
|
||||
/* 8d04: 8d410000 */ lw $at,0x0($t2)
|
||||
/* 8d08: 8d490004 */ lw $t1,0x4($t2)
|
||||
/* 8d0c: 3c0d8006 */ lui $t5,0x8006
|
||||
/* 8d10: 25adce28 */ addiu $t5,$t5,-12760
|
||||
/* 8d14: 25af0060 */ addiu $t7,$t5,0x60
|
||||
/* 8d18: 27ac0358 */ addiu $t4,$sp,0x358
|
||||
/* 8d1c: ad610000 */ sw $at,0x0($t3)
|
||||
/* 8d20: ad690004 */ sw $t1,0x4($t3)
|
||||
.PF00008d24:
|
||||
/* 8d24: 8da10000 */ lw $at,0x0($t5)
|
||||
/* 8d28: 25ad000c */ addiu $t5,$t5,0xc
|
||||
/* 8d2c: 258c000c */ addiu $t4,$t4,0xc
|
||||
/* 8d30: ad81fff4 */ sw $at,-0xc($t4)
|
||||
/* 8d34: 8da1fff8 */ lw $at,-0x8($t5)
|
||||
/* 8d38: ad81fff8 */ sw $at,-0x8($t4)
|
||||
/* 8d3c: 8da1fffc */ lw $at,-0x4($t5)
|
||||
/* 8d40: 15affff8 */ bne $t5,$t7,.PF00008d24
|
||||
/* 8d44: ad81fffc */ sw $at,-0x4($t4)
|
||||
/* 8d48: 8da10000 */ lw $at,0x0($t5)
|
||||
/* 8d4c: 8daf0004 */ lw $t7,0x4($t5)
|
||||
/* 8d50: 3c198006 */ lui $t9,0x8006
|
||||
/* 8d54: 2739ce90 */ addiu $t9,$t9,-12656
|
||||
/* 8d58: 272a0060 */ addiu $t2,$t9,0x60
|
||||
/* 8d5c: 27b802f0 */ addiu $t8,$sp,0x2f0
|
||||
/* 8d60: ad810000 */ sw $at,0x0($t4)
|
||||
/* 8d64: ad8f0004 */ sw $t7,0x4($t4)
|
||||
.PF00008d68:
|
||||
/* 8d68: 8f210000 */ lw $at,0x0($t9)
|
||||
/* 8d6c: 2739000c */ addiu $t9,$t9,0xc
|
||||
/* 8d70: 2718000c */ addiu $t8,$t8,0xc
|
||||
/* 8d74: af01fff4 */ sw $at,-0xc($t8)
|
||||
/* 8d78: 8f21fff8 */ lw $at,-0x8($t9)
|
||||
/* 8d7c: af01fff8 */ sw $at,-0x8($t8)
|
||||
/* 8d80: 8f21fffc */ lw $at,-0x4($t9)
|
||||
/* 8d84: 172afff8 */ bne $t9,$t2,.PF00008d68
|
||||
/* 8d88: af01fffc */ sw $at,-0x4($t8)
|
||||
/* 8d8c: 8f210000 */ lw $at,0x0($t9)
|
||||
/* 8d90: 8f2a0004 */ lw $t2,0x4($t9)
|
||||
/* 8d94: 3c0e8006 */ lui $t6,0x8006
|
||||
/* 8d98: 25cecef8 */ addiu $t6,$t6,-12552
|
||||
/* 8d9c: 25cd0084 */ addiu $t5,$t6,0x84
|
||||
/* 8da0: 27ab0268 */ addiu $t3,$sp,0x268
|
||||
/* 8da4: af010000 */ sw $at,0x0($t8)
|
||||
/* 8da8: af0a0004 */ sw $t2,0x4($t8)
|
||||
.PF00008dac:
|
||||
/* 8dac: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8db0: 25ce000c */ addiu $t6,$t6,0xc
|
||||
/* 8db4: 256b000c */ addiu $t3,$t3,0xc
|
||||
/* 8db8: ad61fff4 */ sw $at,-0xc($t3)
|
||||
/* 8dbc: 8dc1fff8 */ lw $at,-0x8($t6)
|
||||
/* 8dc0: ad61fff8 */ sw $at,-0x8($t3)
|
||||
/* 8dc4: 8dc1fffc */ lw $at,-0x4($t6)
|
||||
/* 8dc8: 15cdfff8 */ bne $t6,$t5,.PF00008dac
|
||||
/* 8dcc: ad61fffc */ sw $at,-0x4($t3)
|
||||
/* 8dd0: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8dd4: 3c098006 */ lui $t1,0x8006
|
||||
/* 8dd8: 2529cf80 */ addiu $t1,$t1,-12416
|
||||
/* 8ddc: 25390024 */ addiu $t9,$t1,0x24
|
||||
/* 8de0: 27ac0240 */ addiu $t4,$sp,0x240
|
||||
/* 8de4: ad610000 */ sw $at,0x0($t3)
|
||||
.PF00008de8:
|
||||
/* 8de8: 8d210000 */ lw $at,0x0($t1)
|
||||
/* 8dec: 2529000c */ addiu $t1,$t1,0xc
|
||||
/* 8df0: 258c000c */ addiu $t4,$t4,0xc
|
||||
/* 8df4: ad81fff4 */ sw $at,-0xc($t4)
|
||||
/* 8df8: 8d21fff8 */ lw $at,-0x8($t1)
|
||||
/* 8dfc: ad81fff8 */ sw $at,-0x8($t4)
|
||||
/* 8e00: 8d21fffc */ lw $at,-0x4($t1)
|
||||
/* 8e04: 1539fff8 */ bne $t1,$t9,.PF00008de8
|
||||
/* 8e08: ad81fffc */ sw $at,-0x4($t4)
|
||||
/* 8e0c: 8d210000 */ lw $at,0x0($t1)
|
||||
/* 8e10: 3c188006 */ lui $t8,0x8006
|
||||
/* 8e14: 2718cfa8 */ addiu $t8,$t8,-12376
|
||||
/* 8e18: 270d0084 */ addiu $t5,$t8,0x84
|
||||
/* 8e1c: 00407025 */ move $t6,$v0
|
||||
/* 8e20: ad810000 */ sw $at,0x0($t4)
|
||||
.PF00008e24:
|
||||
/* 8e24: 8f010000 */ lw $at,0x0($t8)
|
||||
/* 8e28: 2718000c */ addiu $t8,$t8,0xc
|
||||
/* 8e2c: 25ce000c */ addiu $t6,$t6,0xc
|
||||
/* 8e30: adc1fff4 */ sw $at,-0xc($t6)
|
||||
/* 8e34: 8f01fff8 */ lw $at,-0x8($t8)
|
||||
/* 8e38: adc1fff8 */ sw $at,-0x8($t6)
|
||||
/* 8e3c: 8f01fffc */ lw $at,-0x4($t8)
|
||||
/* 8e40: 170dfff8 */ bne $t8,$t5,.PF00008e24
|
||||
/* 8e44: adc1fffc */ sw $at,-0x4($t6)
|
||||
/* 8e48: 8f010000 */ lw $at,0x0($t8)
|
||||
/* 8e4c: 3c0b8006 */ lui $t3,0x8006
|
||||
/* 8e50: 256bd030 */ addiu $t3,$t3,-12240
|
||||
/* 8e54: 25790024 */ addiu $t9,$t3,0x24
|
||||
/* 8e58: 00a04825 */ move $t1,$a1
|
||||
/* 8e5c: adc10000 */ sw $at,0x0($t6)
|
||||
.PF00008e60:
|
||||
/* 8e60: 8d610000 */ lw $at,0x0($t3)
|
||||
/* 8e64: 256b000c */ addiu $t3,$t3,0xc
|
||||
/* 8e68: 2529000c */ addiu $t1,$t1,0xc
|
||||
/* 8e6c: ad21fff4 */ sw $at,-0xc($t1)
|
||||
/* 8e70: 8d61fff8 */ lw $at,-0x8($t3)
|
||||
/* 8e74: ad21fff8 */ sw $at,-0x8($t1)
|
||||
/* 8e78: 8d61fffc */ lw $at,-0x4($t3)
|
||||
/* 8e7c: 1579fff8 */ bne $t3,$t9,.PF00008e60
|
||||
/* 8e80: ad21fffc */ sw $at,-0x4($t1)
|
||||
/* 8e84: 8d610000 */ lw $at,0x0($t3)
|
||||
/* 8e88: 3c0c8006 */ lui $t4,0x8006
|
||||
/* 8e8c: 258cd058 */ addiu $t4,$t4,-12200
|
||||
/* 8e90: 258d0108 */ addiu $t5,$t4,0x108
|
||||
/* 8e94: 0060c025 */ move $t8,$v1
|
||||
/* 8e98: ad210000 */ sw $at,0x0($t1)
|
||||
.PF00008e9c:
|
||||
/* 8e9c: 8d810000 */ lw $at,0x0($t4)
|
||||
/* 8ea0: 258c000c */ addiu $t4,$t4,0xc
|
||||
/* 8ea4: 2718000c */ addiu $t8,$t8,0xc
|
||||
/* 8ea8: af01fff4 */ sw $at,-0xc($t8)
|
||||
/* 8eac: 8d81fff8 */ lw $at,-0x8($t4)
|
||||
/* 8eb0: af01fff8 */ sw $at,-0x8($t8)
|
||||
/* 8eb4: 8d81fffc */ lw $at,-0x4($t4)
|
||||
/* 8eb8: 158dfff8 */ bne $t4,$t5,.PF00008e9c
|
||||
/* 8ebc: af01fffc */ sw $at,-0x4($t8)
|
||||
/* 8ec0: 3c0e8006 */ lui $t6,0x8006
|
||||
/* 8ec4: 25ced160 */ addiu $t6,$t6,-11936
|
||||
/* 8ec8: 25d90024 */ addiu $t9,$t6,0x24
|
||||
/* 8ecc: 00c05825 */ move $t3,$a2
|
||||
.PF00008ed0:
|
||||
/* 8ed0: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8ed4: 25ce000c */ addiu $t6,$t6,0xc
|
||||
/* 8ed8: 256b000c */ addiu $t3,$t3,0xc
|
||||
/* 8edc: ad61fff4 */ sw $at,-0xc($t3)
|
||||
/* 8ee0: 8dc1fff8 */ lw $at,-0x8($t6)
|
||||
/* 8ee4: ad61fff8 */ sw $at,-0x8($t3)
|
||||
/* 8ee8: 8dc1fffc */ lw $at,-0x4($t6)
|
||||
/* 8eec: 15d9fff8 */ bne $t6,$t9,.PF00008ed0
|
||||
/* 8ef0: ad61fffc */ sw $at,-0x4($t3)
|
||||
/* 8ef4: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 8ef8: 3c0f8006 */ lui $t7,0x8006
|
||||
/* 8efc: 25efd188 */ addiu $t7,$t7,-11896
|
||||
/* 8f00: 25ec0024 */ addiu $t4,$t7,0x24
|
||||
/* 8f04: 27a90038 */ addiu $t1,$sp,0x38
|
||||
/* 8f08: ad610000 */ sw $at,0x0($t3)
|
||||
.PF00008f0c:
|
||||
/* 8f0c: 8de10000 */ lw $at,0x0($t7)
|
||||
/* 8f10: 25ef000c */ addiu $t7,$t7,0xc
|
||||
/* 8f14: 2529000c */ addiu $t1,$t1,0xc
|
||||
/* 8f18: ad21fff4 */ sw $at,-0xc($t1)
|
||||
/* 8f1c: 8de1fff8 */ lw $at,-0x8($t7)
|
||||
/* 8f20: ad21fff8 */ sw $at,-0x8($t1)
|
||||
/* 8f24: 8de1fffc */ lw $at,-0x4($t7)
|
||||
/* 8f28: 15ecfff8 */ bne $t7,$t4,.PF00008f0c
|
||||
/* 8f2c: ad21fffc */ sw $at,-0x4($t1)
|
||||
/* 8f30: 8de10000 */ lw $at,0x0($t7)
|
||||
/* 8f34: ad210000 */ sw $at,0x0($t1)
|
||||
/* 8f38: 91180000 */ lbu $t8,0x0($t0)
|
||||
/* 8f3c: 8fb005b8 */ lw $s0,0x5b8($sp)
|
||||
/* 8f40: 54f80004 */ bnel $a3,$t8,.PF00008f54
|
||||
/* 8f44: 8fb005b8 */ lw $s0,0x5b8($sp)
|
||||
/* 8f48: 10000003 */ b .PF00008f58
|
||||
/* 8f4c: ae020020 */ sw $v0,0x20($s0)
|
||||
/* 8f50: 8fb005b8 */ lw $s0,0x5b8($sp)
|
||||
.PF00008f54:
|
||||
/* 8f54: ae030020 */ sw $v1,0x20($s0)
|
||||
.PF00008f58:
|
||||
/* 8f58: 3c048009 */ lui $a0,0x8009
|
||||
/* 8f5c: 248453f8 */ addiu $a0,$a0,0x53f8
|
||||
/* 8f60: 8c820000 */ lw $v0,0x0($a0)
|
||||
/* 8f64: 28410002 */ slti $at,$v0,0x2
|
||||
/* 8f68: 14200010 */ bnez $at,.PF00008fac
|
||||
/* 8f6c: 28410002 */ slti $at,$v0,0x2
|
||||
/* 8f70: 1420000e */ bnez $at,.PF00008fac
|
||||
/* 8f74: 00e01825 */ move $v1,$a3
|
||||
/* 8f78: 26020004 */ addiu $v0,$s0,0x4
|
||||
/* 8f7c: 91190000 */ lbu $t9,0x0($t0)
|
||||
.PF00008f80:
|
||||
/* 8f80: 54f90004 */ bnel $a3,$t9,.PF00008f94
|
||||
/* 8f84: ac460020 */ sw $a2,0x20($v0)
|
||||
/* 8f88: 10000002 */ b .PF00008f94
|
||||
/* 8f8c: ac450020 */ sw $a1,0x20($v0)
|
||||
/* 8f90: ac460020 */ sw $a2,0x20($v0)
|
||||
.PF00008f94:
|
||||
/* 8f94: 8c8e0000 */ lw $t6,0x0($a0)
|
||||
/* 8f98: 24630001 */ addiu $v1,$v1,0x1
|
||||
/* 8f9c: 24420004 */ addiu $v0,$v0,0x4
|
||||
/* 8fa0: 006e082a */ slt $at,$v1,$t6
|
||||
/* 8fa4: 5420fff6 */ bnezl $at,.PF00008f80
|
||||
/* 8fa8: 91190000 */ lbu $t9,0x0($t0)
|
||||
.PF00008fac:
|
||||
/* 8fac: 3c048009 */ lui $a0,0x8009
|
||||
/* 8fb0: 24841dd0 */ addiu $a0,$a0,0x1dd0
|
||||
/* 8fb4: 0c00bd28 */ jal 0x2f4a0
|
||||
/* 8fb8: 02002825 */ move $a1,$s0
|
||||
/* 8fbc: 00002025 */ move $a0,$zero
|
||||
/* 8fc0: 0c00c13f */ jal 0x304fc
|
||||
/* 8fc4: 2405003c */ li $a1,0x3c
|
||||
/* 8fc8: 3c0b8009 */ lui $t3,0x8009
|
||||
/* 8fcc: 8d6b1e40 */ lw $t3,0x1e40($t3)
|
||||
/* 8fd0: 3c048009 */ lui $a0,0x8009
|
||||
/* 8fd4: 3c067001 */ lui $a2,0x7001
|
||||
/* 8fd8: 240d0014 */ li $t5,0x14
|
||||
/* 8fdc: afad0014 */ sw $t5,0x14($sp)
|
||||
/* 8fe0: 24c6907c */ addiu $a2,$a2,-28548
|
||||
/* 8fe4: 24841b30 */ addiu $a0,$a0,0x1b30
|
||||
/* 8fe8: 24050004 */ li $a1,0x4
|
||||
/* 8fec: 00003825 */ move $a3,$zero
|
||||
/* 8ff0: 0c000fac */ jal 0x3eb0
|
||||
/* 8ff4: afab0010 */ sw $t3,0x10($sp)
|
||||
/* 8ff8: 8fbf002c */ lw $ra,0x2c($sp)
|
||||
/* 8ffc: 8fb0001c */ lw $s0,0x1c($sp)
|
||||
/* 9000: 8fb10020 */ lw $s1,0x20($sp)
|
||||
/* 9004: 8fb20024 */ lw $s2,0x24($sp)
|
||||
/* 9008: 8fb30028 */ lw $s3,0x28($sp)
|
||||
/* 900c: 03e00008 */ jr $ra
|
||||
/* 9010: 27bd05b8 */ addiu $sp,$sp,0x5b8
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel amgrCreate
|
||||
/* 8a48: 27bdfa40 */ addiu $sp,$sp,-1472
|
||||
@@ -829,6 +1279,7 @@ glabel amgrCreate
|
||||
/* 90e4: 03e00008 */ jr $ra
|
||||
/* 90e8: 27bd05c0 */ addiu $sp,$sp,0x5c0
|
||||
);
|
||||
#endif
|
||||
|
||||
void amgrStartThread(void)
|
||||
{
|
||||
@@ -855,6 +1306,205 @@ void amgrStopThread(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel amgrMain
|
||||
/* 907c: 27bdff90 */ addiu $sp,$sp,-112
|
||||
/* 9080: afa40070 */ sw $a0,0x70($sp)
|
||||
/* 9084: afbf003c */ sw $ra,0x3c($sp)
|
||||
/* 9088: afb30024 */ sw $s3,0x24($sp)
|
||||
/* 908c: afb20020 */ sw $s2,0x20($sp)
|
||||
/* 9090: 3c048009 */ lui $a0,0x8009
|
||||
/* 9094: 3c058009 */ lui $a1,0x8009
|
||||
/* 9098: 3c068009 */ lui $a2,0x8009
|
||||
/* 909c: afbe0038 */ sw $s8,0x38($sp)
|
||||
/* 90a0: afb70034 */ sw $s7,0x34($sp)
|
||||
/* 90a4: afb60030 */ sw $s6,0x30($sp)
|
||||
/* 90a8: afb5002c */ sw $s5,0x2c($sp)
|
||||
/* 90ac: afb40028 */ sw $s4,0x28($sp)
|
||||
/* 90b0: afb1001c */ sw $s1,0x1c($sp)
|
||||
/* 90b4: afb00018 */ sw $s0,0x18($sp)
|
||||
/* 90b8: 00009025 */ move $s2,$zero
|
||||
/* 90bc: 00009825 */ move $s3,$zero
|
||||
/* 90c0: afa00064 */ sw $zero,0x64($sp)
|
||||
/* 90c4: afa00060 */ sw $zero,0x60($sp)
|
||||
/* 90c8: 24c61d60 */ addiu $a2,$a2,0x1d60
|
||||
/* 90cc: 24a51e20 */ addiu $a1,$a1,0x1e20
|
||||
/* 90d0: 2484e120 */ addiu $a0,$a0,-7904
|
||||
/* 90d4: 0c00078c */ jal 0x1e30
|
||||
/* 90d8: 24070001 */ li $a3,0x1
|
||||
/* 90dc: 3c158009 */ lui $s5,0x8009
|
||||
/* 90e0: 3c148009 */ lui $s4,0x8009
|
||||
/* 90e4: 3c118009 */ lui $s1,0x8009
|
||||
/* 90e8: 3c108009 */ lui $s0,0x8009
|
||||
/* 90ec: 26101ad0 */ addiu $s0,$s0,0x1ad0
|
||||
/* 90f0: 26311ab8 */ addiu $s1,$s1,0x1ab8
|
||||
/* 90f4: 26941ad8 */ addiu $s4,$s4,0x1ad8
|
||||
/* 90f8: 26b51ae0 */ addiu $s5,$s5,0x1ae0
|
||||
/* 90fc: 241e0005 */ li $s8,0x5
|
||||
/* 9100: 24170004 */ li $s7,0x4
|
||||
/* 9104: 27b60064 */ addiu $s6,$sp,0x64
|
||||
.PF00009108:
|
||||
/* 9108: 3c048009 */ lui $a0,0x8009
|
||||
/* 910c: 24841d60 */ addiu $a0,$a0,0x1d60
|
||||
/* 9110: 02c02825 */ move $a1,$s6
|
||||
/* 9114: 0c011ffc */ jal 0x47ff0
|
||||
/* 9118: 24060001 */ li $a2,0x1
|
||||
/* 911c: 8fae0064 */ lw $t6,0x64($sp)
|
||||
/* 9120: 85c40000 */ lh $a0,0x0($t6)
|
||||
/* 9124: 10970007 */ beq $a0,$s7,.PF00009144
|
||||
/* 9128: 00000000 */ nop
|
||||
/* 912c: 109e0078 */ beq $a0,$s8,.PF00009310
|
||||
/* 9130: 2401000a */ li $at,0xa
|
||||
/* 9134: 50810079 */ beql $a0,$at,.PF0000931c
|
||||
/* 9138: 24130001 */ li $s3,0x1
|
||||
/* 913c: 10000077 */ b .PF0000931c
|
||||
/* 9140: 00000000 */ nop
|
||||
.PF00009144:
|
||||
/* 9144: 0c012288 */ jal 0x48a20
|
||||
/* 9148: 00000000 */ nop
|
||||
/* 914c: ae820000 */ sw $v0,0x0($s4)
|
||||
/* 9150: ae830004 */ sw $v1,0x4($s4)
|
||||
/* 9154: 0c002664 */ jal 0x9990
|
||||
/* 9158: 3c040003 */ lui $a0,0x3
|
||||
/* 915c: 3c0f8009 */ lui $t7,0x8009
|
||||
/* 9160: 8def2d78 */ lw $t7,0x2d78($t7)
|
||||
/* 9164: 24010003 */ li $at,0x3
|
||||
/* 9168: 3c048009 */ lui $a0,0x8009
|
||||
/* 916c: 01e1001b */ divu $zero,$t7,$at
|
||||
/* 9170: 0000c010 */ mfhi $t8
|
||||
/* 9174: 0018c880 */ sll $t9,$t8,0x2
|
||||
/* 9178: 00992021 */ addu $a0,$a0,$t9
|
||||
/* 917c: 8c841b20 */ lw $a0,0x1b20($a0)
|
||||
/* 9180: 0c0024d8 */ jal 0x9360
|
||||
/* 9184: 8fa50060 */ lw $a1,0x60($sp)
|
||||
/* 9188: 0c00263f */ jal 0x98fc
|
||||
/* 918c: 00000000 */ nop
|
||||
/* 9190: 26520001 */ addiu $s2,$s2,0x1
|
||||
/* 9194: 0c002664 */ jal 0x9990
|
||||
/* 9198: 3c040006 */ lui $a0,0x6
|
||||
/* 919c: 0c012288 */ jal 0x48a20
|
||||
/* 91a0: 00000000 */ nop
|
||||
/* 91a4: 8e8a0000 */ lw $t2,0x0($s4)
|
||||
/* 91a8: 8e8b0004 */ lw $t3,0x4($s4)
|
||||
/* 91ac: aea20000 */ sw $v0,0x0($s5)
|
||||
/* 91b0: 004ac023 */ subu $t8,$v0,$t2
|
||||
/* 91b4: 006b082b */ sltu $at,$v1,$t3
|
||||
/* 91b8: 0301c023 */ subu $t8,$t8,$at
|
||||
/* 91bc: aea30004 */ sw $v1,0x4($s5)
|
||||
/* 91c0: 3c018009 */ lui $at,0x8009
|
||||
/* 91c4: 006bc823 */ subu $t9,$v1,$t3
|
||||
/* 91c8: ac391ac4 */ sw $t9,0x1ac4($at)
|
||||
/* 91cc: ac381ac0 */ sw $t8,0x1ac0($at)
|
||||
/* 91d0: 240100f0 */ li $at,0xf0
|
||||
/* 91d4: 0241001a */ div $zero,$s2,$at
|
||||
/* 91d8: 00004010 */ mfhi $t0
|
||||
/* 91dc: afb90044 */ sw $t9,0x44($sp)
|
||||
/* 91e0: afb80040 */ sw $t8,0x40($sp)
|
||||
/* 91e4: afa20050 */ sw $v0,0x50($sp)
|
||||
/* 91e8: afa30054 */ sw $v1,0x54($sp)
|
||||
/* 91ec: afaa0048 */ sw $t2,0x48($sp)
|
||||
/* 91f0: 1500001c */ bnez $t0,.PF00009264
|
||||
/* 91f4: afab004c */ sw $t3,0x4c($sp)
|
||||
/* 91f8: 8e040000 */ lw $a0,0x0($s0)
|
||||
/* 91fc: 8e050004 */ lw $a1,0x4($s0)
|
||||
/* 9200: 24060000 */ li $a2,0x0
|
||||
/* 9204: 0c01369a */ jal 0x4da68
|
||||
/* 9208: 240700f0 */ li $a3,0xf0
|
||||
/* 920c: 3c018009 */ lui $at,0x8009
|
||||
/* 9210: ac221ac8 */ sw $v0,0x1ac8($at)
|
||||
/* 9214: ac231acc */ sw $v1,0x1acc($at)
|
||||
/* 9218: 8e990004 */ lw $t9,0x4($s4)
|
||||
/* 921c: 8e980000 */ lw $t8,0x0($s4)
|
||||
/* 9220: 8eaf0004 */ lw $t7,0x4($s5)
|
||||
/* 9224: 8eae0000 */ lw $t6,0x0($s5)
|
||||
/* 9228: 240a0000 */ li $t2,0x0
|
||||
/* 922c: 01f9082b */ sltu $at,$t7,$t9
|
||||
/* 9230: 01d84023 */ subu $t0,$t6,$t8
|
||||
/* 9234: 01014023 */ subu $t0,$t0,$at
|
||||
/* 9238: 240b0000 */ li $t3,0x0
|
||||
/* 923c: 240c0000 */ li $t4,0x0
|
||||
/* 9240: 240d0000 */ li $t5,0x0
|
||||
/* 9244: 01f94823 */ subu $t1,$t7,$t9
|
||||
/* 9248: afa90044 */ sw $t1,0x44($sp)
|
||||
/* 924c: ae2d0004 */ sw $t5,0x4($s1)
|
||||
/* 9250: ae2c0000 */ sw $t4,0x0($s1)
|
||||
/* 9254: ae0b0004 */ sw $t3,0x4($s0)
|
||||
/* 9258: afa80040 */ sw $t0,0x40($sp)
|
||||
/* 925c: 10000011 */ b .PF000092a4
|
||||
/* 9260: ae0a0000 */ sw $t2,0x0($s0)
|
||||
.PF00009264:
|
||||
/* 9264: 8e0b0004 */ lw $t3,0x4($s0)
|
||||
/* 9268: 8fad0054 */ lw $t5,0x54($sp)
|
||||
/* 926c: 8e0a0000 */ lw $t2,0x0($s0)
|
||||
/* 9270: 8fac0050 */ lw $t4,0x50($sp)
|
||||
/* 9274: 016d7821 */ addu $t7,$t3,$t5
|
||||
/* 9278: 8fb80048 */ lw $t8,0x48($sp)
|
||||
/* 927c: 8fb9004c */ lw $t9,0x4c($sp)
|
||||
/* 9280: 01ed082b */ sltu $at,$t7,$t5
|
||||
/* 9284: 002a7021 */ addu $t6,$at,$t2
|
||||
/* 9288: 01cc7021 */ addu $t6,$t6,$t4
|
||||
/* 928c: 01d84023 */ subu $t0,$t6,$t8
|
||||
/* 9290: 01f9082b */ sltu $at,$t7,$t9
|
||||
/* 9294: 01014023 */ subu $t0,$t0,$at
|
||||
/* 9298: 01f94823 */ subu $t1,$t7,$t9
|
||||
/* 929c: ae090004 */ sw $t1,0x4($s0)
|
||||
/* 92a0: ae080000 */ sw $t0,0x0($s0)
|
||||
.PF000092a4:
|
||||
/* 92a4: 8e2a0000 */ lw $t2,0x0($s1)
|
||||
/* 92a8: 8fac0040 */ lw $t4,0x40($sp)
|
||||
/* 92ac: 8e2b0004 */ lw $t3,0x4($s1)
|
||||
/* 92b0: 8fad0044 */ lw $t5,0x44($sp)
|
||||
/* 92b4: 018a082b */ sltu $at,$t4,$t2
|
||||
/* 92b8: 14200008 */ bnez $at,.PF000092dc
|
||||
/* 92bc: 3c0e8006 */ lui $t6,0x8006
|
||||
/* 92c0: 014c082b */ sltu $at,$t2,$t4
|
||||
/* 92c4: 14200003 */ bnez $at,.PF000092d4
|
||||
/* 92c8: 016d082b */ sltu $at,$t3,$t5
|
||||
/* 92cc: 10200003 */ beqz $at,.PF000092dc
|
||||
/* 92d0: 00000000 */ nop
|
||||
.PF000092d4:
|
||||
/* 92d4: ae2c0000 */ sw $t4,0x0($s1)
|
||||
/* 92d8: ae2d0004 */ sw $t5,0x4($s1)
|
||||
.PF000092dc:
|
||||
/* 92dc: 8dced1b4 */ lw $t6,-0x2e4c($t6)
|
||||
/* 92e0: 3c048009 */ lui $a0,0x8009
|
||||
/* 92e4: 24841d98 */ addiu $a0,$a0,0x1d98
|
||||
/* 92e8: 15c00003 */ bnez $t6,.PF000092f8
|
||||
/* 92ec: 27a50060 */ addiu $a1,$sp,0x60
|
||||
/* 92f0: 0c011ffc */ jal 0x47ff0
|
||||
/* 92f4: 24060001 */ li $a2,0x1
|
||||
.PF000092f8:
|
||||
/* 92f8: 3c018006 */ lui $at,0x8006
|
||||
/* 92fc: ac20d1b4 */ sw $zero,-0x2e4c($at)
|
||||
/* 9300: 0c00254b */ jal 0x952c
|
||||
/* 9304: 8fa40060 */ lw $a0,0x60($sp)
|
||||
/* 9308: 10000004 */ b .PF0000931c
|
||||
/* 930c: 00000000 */ nop
|
||||
.PF00009310:
|
||||
/* 9310: 10000002 */ b .PF0000931c
|
||||
/* 9314: 24130001 */ li $s3,0x1
|
||||
/* 9318: 24130001 */ li $s3,0x1
|
||||
.PF0000931c:
|
||||
/* 931c: 1260ff7a */ beqz $s3,.PF00009108
|
||||
/* 9320: 00000000 */ nop
|
||||
/* 9324: 3c048009 */ lui $a0,0x8009
|
||||
/* 9328: 0c00bd43 */ jal 0x2f50c
|
||||
/* 932c: 24841dd0 */ addiu $a0,$a0,0x1dd0
|
||||
/* 9330: 8fbf003c */ lw $ra,0x3c($sp)
|
||||
/* 9334: 8fb00018 */ lw $s0,0x18($sp)
|
||||
/* 9338: 8fb1001c */ lw $s1,0x1c($sp)
|
||||
/* 933c: 8fb20020 */ lw $s2,0x20($sp)
|
||||
/* 9340: 8fb30024 */ lw $s3,0x24($sp)
|
||||
/* 9344: 8fb40028 */ lw $s4,0x28($sp)
|
||||
/* 9348: 8fb5002c */ lw $s5,0x2c($sp)
|
||||
/* 934c: 8fb60030 */ lw $s6,0x30($sp)
|
||||
/* 9350: 8fb70034 */ lw $s7,0x34($sp)
|
||||
/* 9354: 8fbe0038 */ lw $s8,0x38($sp)
|
||||
/* 9358: 03e00008 */ jr $ra
|
||||
/* 935c: 27bd0070 */ addiu $sp,$sp,0x70
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel amgrMain
|
||||
/* 9154: 27bdff90 */ addiu $sp,$sp,-112
|
||||
@@ -1056,6 +1706,7 @@ glabel amgrMain
|
||||
/* 9440: 03e00008 */ jr $ra
|
||||
/* 9444: 27bd0070 */ addiu $sp,$sp,0x70
|
||||
);
|
||||
#endif
|
||||
|
||||
// Mismatch: needs bss relocation
|
||||
//void amgrMain(void *arg)
|
||||
|
||||
@@ -191,9 +191,11 @@ void contCheckPfs(s32 arg0)
|
||||
doingit = false;
|
||||
}
|
||||
|
||||
#if !PAL
|
||||
if (arg0) {
|
||||
// empty
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
#include <ultra64.h>
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func00005dc0
|
||||
/* 5dc0: 3c028009 */ lui $v0,%hi(var800902a0)
|
||||
/* 5dc4: 244202a0 */ addiu $v0,$v0,%lo(var800902a0)
|
||||
/* 5dc8: 24030007 */ addiu $v1,$zero,0x7
|
||||
/* 5dcc: a0430004 */ sb $v1,0x4($v0)
|
||||
/* 5dd0: 3c0ea460 */ lui $t6,0xa460
|
||||
/* 5dd4: 8dcf0014 */ lw $t7,0x14($t6)
|
||||
/* 5dd8: 3c18a460 */ lui $t8,0xa460
|
||||
/* 5ddc: 3c08a460 */ lui $t0,0xa460
|
||||
/* 5de0: a04f0005 */ sb $t7,0x5($v0)
|
||||
/* 5de4: 8f190018 */ lw $t9,0x18($t8)
|
||||
/* 5de8: 3c0aa460 */ lui $t2,0xa460
|
||||
/* 5dec: 3c048009 */ lui $a0,%hi(var80090318)
|
||||
/* 5df0: a0590008 */ sb $t9,0x8($v0)
|
||||
/* 5df4: 8d09001c */ lw $t1,0x1c($t0)
|
||||
/* 5df8: 24840318 */ addiu $a0,$a0,%lo(var80090318)
|
||||
/* 5dfc: 3c0ca460 */ lui $t4,0xa460
|
||||
/* 5e00: a0490006 */ sb $t1,0x6($v0)
|
||||
/* 5e04: 8d4b0020 */ lw $t3,0x20($t2)
|
||||
/* 5e08: a0830004 */ sb $v1,0x4($a0)
|
||||
/* 5e0c: a04b0007 */ sb $t3,0x7($v0)
|
||||
/* 5e10: 8d8d0024 */ lw $t5,0x24($t4)
|
||||
/* 5e14: a08d0005 */ sb $t5,0x5($a0)
|
||||
/* 5e18: 8dcf0028 */ lw $t7,0x28($t6)
|
||||
/* 5e1c: a08f0008 */ sb $t7,0x8($a0)
|
||||
/* 5e20: 8f19002c */ lw $t9,0x2c($t8)
|
||||
/* 5e24: a0990006 */ sb $t9,0x6($a0)
|
||||
/* 5e28: 8d090030 */ lw $t1,0x30($t0)
|
||||
/* 5e2c: 03e00008 */ jr $ra
|
||||
/* 5e30: a0890007 */ sb $t1,0x7($a0)
|
||||
/* 5e34: 00000000 */ nop
|
||||
/* 5e38: 00000000 */ nop
|
||||
/* 5e3c: 00000000 */ nop
|
||||
);
|
||||
+64
-2564
File diff suppressed because it is too large
Load Diff
+3235
File diff suppressed because it is too large
Load Diff
@@ -1679,6 +1679,260 @@ glabel func0000f7b8
|
||||
/* f800: 00000000 */ nop
|
||||
);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel func0000f804
|
||||
/* f564: 3c0e8009 */ lui $t6,0x8009
|
||||
/* f568: 91ce1040 */ lbu $t6,0x1040($t6)
|
||||
/* f56c: 27bdff60 */ addiu $sp,$sp,-160
|
||||
/* f570: afb0001c */ sw $s0,0x1c($sp)
|
||||
/* f574: 24020001 */ li $v0,0x1
|
||||
/* f578: 3c100006 */ lui $s0,0x6
|
||||
/* f57c: 3c01800a */ lui $at,0x800a
|
||||
/* f580: afbf0024 */ sw $ra,0x24($sp)
|
||||
/* f584: afb10020 */ sw $s1,0x20($sp)
|
||||
/* f588: 3610f800 */ ori $s0,$s0,0xf800
|
||||
/* f58c: 144e000d */ bne $v0,$t6,.PF0000f5c4
|
||||
/* f590: a020a9f3 */ sb $zero,-0x560d($at)
|
||||
/* f594: 3c018009 */ lui $at,0x8009
|
||||
/* f598: ac2253f8 */ sw $v0,0x53f8($at)
|
||||
/* f59c: 3c100006 */ lui $s0,0x6
|
||||
/* f5a0: 3c01fffd */ lui $at,0xfffd
|
||||
/* f5a4: 3610e000 */ ori $s0,$s0,0xe000
|
||||
/* f5a8: 3421dc00 */ ori $at,$at,0xdc00
|
||||
/* f5ac: 02018021 */ addu $s0,$s0,$at
|
||||
/* f5b0: 2610d000 */ addiu $s0,$s0,-12288
|
||||
/* f5b4: 3c018006 */ lui $at,0x8006
|
||||
/* f5b8: 2610a400 */ addiu $s0,$s0,-23552
|
||||
/* f5bc: 1000000d */ b .PF0000f5f4
|
||||
/* f5c0: ac20da70 */ sw $zero,-0x2590($at)
|
||||
.PF0000f5c4:
|
||||
/* f5c4: 3c018006 */ lui $at,0x8006
|
||||
/* f5c8: ac22da70 */ sw $v0,-0x2590($at)
|
||||
/* f5cc: 3c018009 */ lui $at,0x8009
|
||||
/* f5d0: 240f0002 */ li $t7,0x2
|
||||
/* f5d4: 3c057005 */ lui $a1,0x7005
|
||||
/* f5d8: ac2f53f8 */ sw $t7,0x53f8($at)
|
||||
/* f5dc: 24a537f8 */ addiu $a1,$a1,0x37f8
|
||||
/* f5e0: 0c004b68 */ jal 0x12da0
|
||||
/* f5e4: 00402025 */ move $a0,$v0
|
||||
/* f5e8: 10400002 */ beqz $v0,.PF0000f5f4
|
||||
/* f5ec: 3c018006 */ lui $at,0x8006
|
||||
/* f5f0: ac20da70 */ sw $zero,-0x2590($at)
|
||||
.PF0000f5f4:
|
||||
/* f5f4: 3c188006 */ lui $t8,0x8006
|
||||
/* f5f8: 8f18da40 */ lw $t8,-0x25c0($t8)
|
||||
/* f5fc: 02002025 */ move $a0,$s0
|
||||
/* f600: 570000c2 */ bnezl $t8,.PF0000f90c
|
||||
/* f604: 8fbf0024 */ lw $ra,0x24($sp)
|
||||
/* f608: 0c004856 */ jal 0x12158
|
||||
/* f60c: 24050006 */ li $a1,0x6
|
||||
/* f610: 00502021 */ addu $a0,$v0,$s0
|
||||
/* f614: 0044082b */ sltu $at,$v0,$a0
|
||||
/* f618: 00401825 */ move $v1,$v0
|
||||
/* f61c: 10200005 */ beqz $at,.PF0000f634
|
||||
/* f620: 00403825 */ move $a3,$v0
|
||||
.PF0000f624:
|
||||
/* f624: 24630001 */ addiu $v1,$v1,0x1
|
||||
/* f628: 0064082b */ sltu $at,$v1,$a0
|
||||
/* f62c: 1420fffd */ bnez $at,.PF0000f624
|
||||
/* f630: a060ffff */ sb $zero,-0x1($v1)
|
||||
.PF0000f634:
|
||||
/* f634: 3c048009 */ lui $a0,0x8009
|
||||
/* f638: 24845740 */ addiu $a0,$a0,0x5740
|
||||
/* f63c: 00e02825 */ move $a1,$a3
|
||||
/* f640: 0c00bcfc */ jal 0x2f3f0
|
||||
/* f644: 02003025 */ move $a2,$s0
|
||||
/* f648: 3c068009 */ lui $a2,0x8009
|
||||
/* f64c: 24190020 */ li $t9,0x20
|
||||
/* f650: afb90010 */ sw $t9,0x10($sp)
|
||||
/* f654: 24c65740 */ addiu $a2,$a2,0x5740
|
||||
/* f658: 00002025 */ move $a0,$zero
|
||||
/* f65c: 00002825 */ move $a1,$zero
|
||||
/* f660: 0c00bd05 */ jal 0x2f414
|
||||
/* f664: 24070001 */ li $a3,0x1
|
||||
/* f668: 3c038006 */ lui $v1,0x8006
|
||||
/* f66c: 2463da80 */ addiu $v1,$v1,-9600
|
||||
/* f670: 3c057005 */ lui $a1,0x7005
|
||||
/* f674: ac620000 */ sw $v0,0x0($v1)
|
||||
/* f678: 24a537c0 */ addiu $a1,$a1,0x37c0
|
||||
/* f67c: 0c004bb0 */ jal 0x12ec0
|
||||
/* f680: 00402025 */ move $a0,$v0
|
||||
/* f684: 0c003a23 */ jal 0xe88c
|
||||
/* f688: 00000000 */ nop
|
||||
/* f68c: 3c0900cf */ lui $t1,0xcf
|
||||
/* f690: 3c0a00cf */ lui $t2,0xcf
|
||||
/* f694: 254aa4c0 */ addiu $t2,$t2,-23360
|
||||
/* f698: 25294520 */ addiu $t1,$t1,0x4520
|
||||
/* f69c: 2408ffff */ li $t0,-1
|
||||
/* f6a0: 3c018009 */ lui $at,0x8009
|
||||
/* f6a4: 012a8023 */ subu $s0,$t1,$t2
|
||||
/* f6a8: 3c068009 */ lui $a2,0x8009
|
||||
/* f6ac: ac285750 */ sw $t0,0x5750($at)
|
||||
/* f6b0: 24c65740 */ addiu $a2,$a2,0x5740
|
||||
/* f6b4: afb00010 */ sw $s0,0x10($sp)
|
||||
/* f6b8: 00002025 */ move $a0,$zero
|
||||
/* f6bc: 00002825 */ move $a1,$zero
|
||||
/* f6c0: 0c00bd05 */ jal 0x2f414
|
||||
/* f6c4: 24070001 */ li $a3,0x1
|
||||
/* f6c8: 3c0500cf */ lui $a1,0xcf
|
||||
/* f6cc: 00408825 */ move $s1,$v0
|
||||
/* f6d0: 24a5a4c0 */ addiu $a1,$a1,-23360
|
||||
/* f6d4: 00402025 */ move $a0,$v0
|
||||
/* f6d8: 0c003454 */ jal 0xd150
|
||||
/* f6dc: 02003025 */ move $a2,$s0
|
||||
/* f6e0: 3c0500cf */ lui $a1,0xcf
|
||||
/* f6e4: 24a54520 */ addiu $a1,$a1,0x4520
|
||||
/* f6e8: 0c00dc01 */ jal 0x37004
|
||||
/* f6ec: 02202025 */ move $a0,$s1
|
||||
/* f6f0: 8e2b0004 */ lw $t3,0x4($s1)
|
||||
/* f6f4: 3c018009 */ lui $at,0x8009
|
||||
/* f6f8: 3c068009 */ lui $a2,0x8009
|
||||
/* f6fc: 240c0010 */ li $t4,0x10
|
||||
/* f700: afac0010 */ sw $t4,0x10($sp)
|
||||
/* f704: 24c65740 */ addiu $a2,$a2,0x5740
|
||||
/* f708: 00002025 */ move $a0,$zero
|
||||
/* f70c: 00002825 */ move $a1,$zero
|
||||
/* f710: 24070001 */ li $a3,0x1
|
||||
/* f714: 0c00bd05 */ jal 0x2f414
|
||||
/* f718: ac2b5754 */ sw $t3,0x5754($at)
|
||||
/* f71c: 3c108009 */ lui $s0,0x8009
|
||||
/* f720: 3c1100e7 */ lui $s1,0xe7
|
||||
/* f724: 26105758 */ addiu $s0,$s0,0x5758
|
||||
/* f728: 26310590 */ addiu $s1,$s1,0x590
|
||||
/* f72c: ae020000 */ sw $v0,0x0($s0)
|
||||
/* f730: 02202825 */ move $a1,$s1
|
||||
/* f734: 00402025 */ move $a0,$v0
|
||||
/* f738: 0c003454 */ jal 0xd150
|
||||
/* f73c: 24060010 */ li $a2,0x10
|
||||
/* f740: 8e0d0000 */ lw $t5,0x0($s0)
|
||||
/* f744: 3c068009 */ lui $a2,0x8009
|
||||
/* f748: 24c65740 */ addiu $a2,$a2,0x5740
|
||||
/* f74c: 95a30000 */ lhu $v1,0x0($t5)
|
||||
/* f750: 00002025 */ move $a0,$zero
|
||||
/* f754: 00002825 */ move $a1,$zero
|
||||
/* f758: 000370c0 */ sll $t6,$v1,0x3
|
||||
/* f75c: 25c30004 */ addiu $v1,$t6,0x4
|
||||
/* f760: afa30010 */ sw $v1,0x10($sp)
|
||||
/* f764: afa30050 */ sw $v1,0x50($sp)
|
||||
/* f768: 0c00bd05 */ jal 0x2f414
|
||||
/* f76c: 24070001 */ li $a3,0x1
|
||||
/* f770: 8fa30050 */ lw $v1,0x50($sp)
|
||||
/* f774: 2401fff0 */ li $at,-16
|
||||
/* f778: ae020000 */ sw $v0,0x0($s0)
|
||||
/* f77c: 2466000f */ addiu $a2,$v1,0xf
|
||||
/* f780: 00c17824 */ and $t7,$a2,$at
|
||||
/* f784: 01e03025 */ move $a2,$t7
|
||||
/* f788: 00402025 */ move $a0,$v0
|
||||
/* f78c: 0c003454 */ jal 0xd150
|
||||
/* f790: 02202825 */ move $a1,$s1
|
||||
/* f794: 8e040000 */ lw $a0,0x0($s0)
|
||||
/* f798: 00001825 */ move $v1,$zero
|
||||
/* f79c: 240a002c */ li $t2,0x2c
|
||||
/* f7a0: 94980000 */ lhu $t8,0x0($a0)
|
||||
/* f7a4: 240b001e */ li $t3,0x1e
|
||||
/* f7a8: 240c0040 */ li $t4,0x40
|
||||
/* f7ac: 1b00000d */ blez $t8,.PF0000f7e4
|
||||
/* f7b0: 3c0d8009 */ lui $t5,0x8009
|
||||
/* f7b4: 00002825 */ move $a1,$zero
|
||||
/* f7b8: 00851021 */ addu $v0,$a0,$a1
|
||||
.PF0000f7bc:
|
||||
/* f7bc: 8c590004 */ lw $t9,0x4($v0)
|
||||
/* f7c0: 24630001 */ addiu $v1,$v1,0x1
|
||||
/* f7c4: 24a50008 */ addiu $a1,$a1,0x8
|
||||
/* f7c8: 03314021 */ addu $t0,$t9,$s1
|
||||
/* f7cc: ac480004 */ sw $t0,0x4($v0)
|
||||
/* f7d0: 8e040000 */ lw $a0,0x0($s0)
|
||||
/* f7d4: 94890000 */ lhu $t1,0x0($a0)
|
||||
/* f7d8: 0069082a */ slt $at,$v1,$t1
|
||||
/* f7dc: 5420fff7 */ bnezl $at,.PF0000f7bc
|
||||
/* f7e0: 00851021 */ addu $v0,$a0,$a1
|
||||
.PF0000f7e4:
|
||||
/* f7e4: 3c038009 */ lui $v1,0x8009
|
||||
/* f7e8: 8c6353f8 */ lw $v1,0x53f8($v1)
|
||||
/* f7ec: 25ad5740 */ addiu $t5,$t5,0x5740
|
||||
/* f7f0: afaa0064 */ sw $t2,0x64($sp)
|
||||
/* f7f4: afab0068 */ sw $t3,0x68($sp)
|
||||
/* f7f8: afac006c */ sw $t4,0x6c($sp)
|
||||
/* f7fc: afa00074 */ sw $zero,0x74($sp)
|
||||
/* f800: afa0007c */ sw $zero,0x7c($sp)
|
||||
/* f804: afad0078 */ sw $t5,0x78($sp)
|
||||
/* f808: 18600008 */ blez $v1,.PF0000f82c
|
||||
/* f80c: afa30070 */ sw $v1,0x70($sp)
|
||||
/* f810: 27a20064 */ addiu $v0,$sp,0x64
|
||||
/* f814: 00622021 */ addu $a0,$v1,$v0
|
||||
/* f818: 24030006 */ li $v1,0x6
|
||||
.PF0000f81c:
|
||||
/* f81c: 24420001 */ addiu $v0,$v0,0x1
|
||||
/* f820: 0044082b */ sltu $at,$v0,$a0
|
||||
/* f824: 1420fffd */ bnez $at,.PF0000f81c
|
||||
/* f828: a043001b */ sb $v1,0x1b($v0)
|
||||
.PF0000f82c:
|
||||
/* f82c: 3c098009 */ lui $t1,0x8009
|
||||
/* f830: 240f0040 */ li $t7,0x40
|
||||
/* f834: 24180040 */ li $t8,0x40
|
||||
/* f838: 24190014 */ li $t9,0x14
|
||||
/* f83c: 24080009 */ li $t0,0x9
|
||||
/* f840: 25295740 */ addiu $t1,$t1,0x5740
|
||||
/* f844: 240a5604 */ li $t2,0x5604
|
||||
/* f848: 240b0001 */ li $t3,0x1
|
||||
/* f84c: 240c07d0 */ li $t4,0x7d0
|
||||
/* f850: afaf0090 */ sw $t7,0x90($sp)
|
||||
/* f854: afb8008c */ sw $t8,0x8c($sp)
|
||||
/* f858: afb90094 */ sw $t9,0x94($sp)
|
||||
/* f85c: a7a8009c */ sh $t0,0x9c($sp)
|
||||
/* f860: afa90098 */ sw $t1,0x98($sp)
|
||||
/* f864: afaa0058 */ sw $t2,0x58($sp)
|
||||
/* f868: afab005c */ sw $t3,0x5c($sp)
|
||||
/* f86c: afac0060 */ sw $t4,0x60($sp)
|
||||
/* f870: 27a40064 */ addiu $a0,$sp,0x64
|
||||
/* f874: 0c002262 */ jal 0x8988
|
||||
/* f878: 27a50058 */ addiu $a1,$sp,0x58
|
||||
/* f87c: 3c0d8006 */ lui $t5,0x8006
|
||||
/* f880: 8dadda70 */ lw $t5,-0x2590($t5)
|
||||
/* f884: 3c048009 */ lui $a0,0x8009
|
||||
/* f888: 11a00009 */ beqz $t5,.PF0000f8b0
|
||||
/* f88c: 00000000 */ nop
|
||||
/* f890: 0c00dd00 */ jal 0x37400
|
||||
/* f894: 24845740 */ addiu $a0,$a0,0x5740
|
||||
/* f898: 24047fff */ li $a0,0x7fff
|
||||
/* f89c: 0c00de02 */ jal 0x37808
|
||||
/* f8a0: 24050001 */ li $a1,0x1
|
||||
/* f8a4: 00002025 */ move $a0,$zero
|
||||
/* f8a8: 0c00de17 */ jal 0x3785c
|
||||
/* f8ac: 24050001 */ li $a1,0x1
|
||||
.PF0000f8b0:
|
||||
/* f8b0: 3c108009 */ lui $s0,0x8009
|
||||
/* f8b4: 26105428 */ addiu $s0,$s0,0x5428
|
||||
.PF0000f8b8:
|
||||
/* f8b8: 0c003cf7 */ jal 0xf3dc
|
||||
/* f8bc: 02002025 */ move $a0,$s0
|
||||
/* f8c0: 3c0e8009 */ lui $t6,0x8009
|
||||
/* f8c4: 25ce5740 */ addiu $t6,$t6,0x5740
|
||||
/* f8c8: 26100108 */ addiu $s0,$s0,0x108
|
||||
/* f8cc: 160efffa */ bne $s0,$t6,.PF0000f8b8
|
||||
/* f8d0: 00000000 */ nop
|
||||
/* f8d4: 0c00c43c */ jal 0x310f0
|
||||
/* f8d8: 27a4008c */ addiu $a0,$sp,0x8c
|
||||
/* f8dc: 3c047001 */ lui $a0,0x7001
|
||||
/* f8e0: 0c00cb1e */ jal 0x32c78
|
||||
/* f8e4: 2484f4cc */ addiu $a0,$a0,-2868
|
||||
/* f8e8: 3c047001 */ lui $a0,0x7001
|
||||
/* f8ec: 0c00cbcd */ jal 0x32f34
|
||||
/* f8f0: 2484f518 */ addiu $a0,$a0,-2792
|
||||
/* f8f4: 0c002405 */ jal 0x9014
|
||||
/* f8f8: 00000000 */ nop
|
||||
/* f8fc: 3c048006 */ lui $a0,0x8006
|
||||
/* f900: 0c003c3b */ jal 0xf0ec
|
||||
/* f904: 8c84da6c */ lw $a0,-0x2594($a0)
|
||||
/* f908: 8fbf0024 */ lw $ra,0x24($sp)
|
||||
.PF0000f90c:
|
||||
/* f90c: 8fb0001c */ lw $s0,0x1c($sp)
|
||||
/* f910: 8fb10020 */ lw $s1,0x20($sp)
|
||||
/* f914: 03e00008 */ jr $ra
|
||||
/* f918: 27bd00a0 */ addiu $sp,$sp,0xa0
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel func0000f804
|
||||
/* f804: 3c0e8009 */ lui $t6,%hi(g_Is4Mb)
|
||||
@@ -1924,6 +2178,7 @@ glabel func0000f804
|
||||
/* fb98: 03e00008 */ jr $ra
|
||||
/* fb9c: 27bd0090 */ addiu $sp,$sp,0x90
|
||||
);
|
||||
#endif
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0000fba0
|
||||
@@ -3288,6 +3543,25 @@ glabel func00010ae4
|
||||
/* 10dac: 00000000 */ nop
|
||||
);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel envPlayNosedive
|
||||
/* 10b2c: 00047080 */ sll $t6,$a0,0x2
|
||||
/* 10b30: 01c47023 */ subu $t6,$t6,$a0
|
||||
/* 10b34: 000e70c0 */ sll $t6,$t6,0x3
|
||||
/* 10b38: 01c47021 */ addu $t6,$t6,$a0
|
||||
/* 10b3c: 000e70c0 */ sll $t6,$t6,0x3
|
||||
/* 10b40: 3c018006 */ lui $at,0x8006
|
||||
/* 10b44: ac2eda50 */ sw $t6,-0x25b0($at)
|
||||
/* 10b48: 3c018006 */ lui $at,0x8006
|
||||
/* 10b4c: ac20da4c */ sw $zero,-0x25b4($at)
|
||||
/* 10b50: 3c018006 */ lui $at,0x8006
|
||||
/* 10b54: ac20da48 */ sw $zero,-0x25b8($at)
|
||||
/* 10b58: 3c018006 */ lui $at,0x8006
|
||||
/* 10b5c: 03e00008 */ jr $ra
|
||||
/* 10b60: ac20da60 */ sw $zero,-0x25a0($at)
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel envPlayNosedive
|
||||
/* 10db0: 00047100 */ sll $t6,$a0,0x4
|
||||
@@ -3303,6 +3577,7 @@ glabel envPlayNosedive
|
||||
/* 10dd8: 03e00008 */ jr $ra
|
||||
/* 10ddc: ac20ddc0 */ sw $zero,%lo(var8005ddc0)($at)
|
||||
);
|
||||
#endif
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel envStopNosedive
|
||||
@@ -3506,6 +3781,25 @@ glabel func00010e10
|
||||
/* 110b8: 00000000 */ nop
|
||||
);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel envPlayUfoHum
|
||||
/* 10e40: 00047080 */ sll $t6,$a0,0x2
|
||||
/* 10e44: 01c47023 */ subu $t6,$t6,$a0
|
||||
/* 10e48: 000e70c0 */ sll $t6,$t6,0x3
|
||||
/* 10e4c: 01c47021 */ addu $t6,$t6,$a0
|
||||
/* 10e50: 000e70c0 */ sll $t6,$t6,0x3
|
||||
/* 10e54: 3c018006 */ lui $at,0x8006
|
||||
/* 10e58: ac2eda5c */ sw $t6,-0x25a4($at)
|
||||
/* 10e5c: 3c018006 */ lui $at,0x8006
|
||||
/* 10e60: ac20da58 */ sw $zero,-0x25a8($at)
|
||||
/* 10e64: 3c018006 */ lui $at,0x8006
|
||||
/* 10e68: ac20da54 */ sw $zero,-0x25ac($at)
|
||||
/* 10e6c: 3c018006 */ lui $at,0x8006
|
||||
/* 10e70: 03e00008 */ jr $ra
|
||||
/* 10e74: ac20da64 */ sw $zero,-0x259c($at)
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel envPlayUfoHum
|
||||
/* 110bc: 00047100 */ sll $t6,$a0,0x4
|
||||
@@ -3521,6 +3815,7 @@ glabel envPlayUfoHum
|
||||
/* 110e4: 03e00008 */ jr $ra
|
||||
/* 110e8: ac20ddc4 */ sw $zero,%lo(var8005ddc4)($at)
|
||||
);
|
||||
#endif
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel envStopUfoHum
|
||||
|
||||
@@ -442,6 +442,332 @@ glabel func000301a4
|
||||
/* 301e0: 00000000 */ nop
|
||||
);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel func000301e4
|
||||
/* 2fae4: 27bdffe0 */ addiu $sp,$sp,-32
|
||||
/* 2fae8: afbf0014 */ sw $ra,0x14($sp)
|
||||
/* 2faec: afa40020 */ sw $a0,0x20($sp)
|
||||
/* 2faf0: afa50024 */ sw $a1,0x24($sp)
|
||||
/* 2faf4: afa60028 */ sw $a2,0x28($sp)
|
||||
/* 2faf8: afa7002c */ sw $a3,0x2c($sp)
|
||||
/* 2fafc: 93ae002f */ lbu $t6,0x2f($sp)
|
||||
/* 2fb00: 29c10064 */ slti $at,$t6,0x64
|
||||
/* 2fb04: 14200003 */ bnez $at,.PF0002fb14
|
||||
/* 2fb08: 00000000 */ nop
|
||||
/* 2fb0c: 240f0063 */ li $t7,0x63
|
||||
/* 2fb10: a3af002f */ sb $t7,0x2f($sp)
|
||||
.PF0002fb14:
|
||||
/* 2fb14: 93b80037 */ lbu $t8,0x37($sp)
|
||||
/* 2fb18: 2b010080 */ slti $at,$t8,0x80
|
||||
/* 2fb1c: 14200003 */ bnez $at,.PF0002fb2c
|
||||
/* 2fb20: 00000000 */ nop
|
||||
/* 2fb24: 2419007f */ li $t9,0x7f
|
||||
/* 2fb28: a3b90037 */ sb $t9,0x37($sp)
|
||||
.PF0002fb2c:
|
||||
/* 2fb2c: 93a8003b */ lbu $t0,0x3b($sp)
|
||||
/* 2fb30: 29010080 */ slti $at,$t0,0x80
|
||||
/* 2fb34: 14200003 */ bnez $at,.PF0002fb44
|
||||
/* 2fb38: 00000000 */ nop
|
||||
/* 2fb3c: 2409007f */ li $t1,0x7f
|
||||
/* 2fb40: a3a9003b */ sb $t1,0x3b($sp)
|
||||
.PF0002fb44:
|
||||
/* 2fb44: 3c0a800a */ lui $t2,0x800a
|
||||
/* 2fb48: 8d4abdc0 */ lw $t2,-0x4240($t2)
|
||||
/* 2fb4c: 15400003 */ bnez $t2,.PF0002fb5c
|
||||
/* 2fb50: 00000000 */ nop
|
||||
/* 2fb54: 1000010a */ b .PF0002ff80
|
||||
/* 2fb58: 00001025 */ move $v0,$zero
|
||||
.PF0002fb5c:
|
||||
/* 2fb5c: 3c0b800a */ lui $t3,0x800a
|
||||
/* 2fb60: 8d6bbdc0 */ lw $t3,-0x4240($t3)
|
||||
/* 2fb64: afab001c */ sw $t3,0x1c($sp)
|
||||
/* 2fb68: 93ac003b */ lbu $t4,0x3b($sp)
|
||||
/* 2fb6c: 15800009 */ bnez $t4,.PF0002fb94
|
||||
/* 2fb70: 00000000 */ nop
|
||||
/* 2fb74: 3c013f80 */ lui $at,0x3f80
|
||||
/* 2fb78: 44812000 */ mtc1 $at,$f4
|
||||
/* 2fb7c: 8fad001c */ lw $t5,0x1c($sp)
|
||||
/* 2fb80: e5a40018 */ swc1 $f4,0x18($t5)
|
||||
/* 2fb84: 44803000 */ mtc1 $zero,$f6
|
||||
/* 2fb88: 8fae001c */ lw $t6,0x1c($sp)
|
||||
/* 2fb8c: 10000013 */ b .PF0002fbdc
|
||||
/* 2fb90: e5c6001c */ swc1 $f6,0x1c($t6)
|
||||
.PF0002fb94:
|
||||
/* 2fb94: 44804000 */ mtc1 $zero,$f8
|
||||
/* 2fb98: 8faf001c */ lw $t7,0x1c($sp)
|
||||
/* 2fb9c: e5e80018 */ swc1 $f8,0x18($t7)
|
||||
/* 2fba0: 93b8003b */ lbu $t8,0x3b($sp)
|
||||
/* 2fba4: 3c088006 */ lui $t0,0x8006
|
||||
/* 2fba8: 3c017005 */ lui $at,0x7005
|
||||
/* 2fbac: 0018c880 */ sll $t9,$t8,0x2
|
||||
/* 2fbb0: 01194021 */ addu $t0,$t0,$t9
|
||||
/* 2fbb4: 8d08ee00 */ lw $t0,-0x1200($t0)
|
||||
/* 2fbb8: c4324370 */ lwc1 $f18,0x4370($at)
|
||||
/* 2fbbc: 3c013f80 */ lui $at,0x3f80
|
||||
/* 2fbc0: 44885000 */ mtc1 $t0,$f10
|
||||
/* 2fbc4: 44813000 */ mtc1 $at,$f6
|
||||
/* 2fbc8: 8fa9001c */ lw $t1,0x1c($sp)
|
||||
/* 2fbcc: 46805420 */ cvt.s.w $f16,$f10
|
||||
/* 2fbd0: 46128103 */ div.s $f4,$f16,$f18
|
||||
/* 2fbd4: 46043203 */ div.s $f8,$f6,$f4
|
||||
/* 2fbd8: e528001c */ swc1 $f8,0x1c($t1)
|
||||
.PF0002fbdc:
|
||||
/* 2fbdc: 93aa002b */ lbu $t2,0x2b($sp)
|
||||
/* 2fbe0: 8fab001c */ lw $t3,0x1c($sp)
|
||||
/* 2fbe4: a16a0004 */ sb $t2,0x4($t3)
|
||||
/* 2fbe8: 8fac001c */ lw $t4,0x1c($sp)
|
||||
/* 2fbec: a5800014 */ sh $zero,0x14($t4)
|
||||
/* 2fbf0: 93ad002f */ lbu $t5,0x2f($sp)
|
||||
/* 2fbf4: 3c017005 */ lui $at,0x7005
|
||||
/* 2fbf8: c42a4374 */ lwc1 $f10,0x4374($at)
|
||||
/* 2fbfc: 3c018006 */ lui $at,0x8006
|
||||
/* 2fc00: 000d7080 */ sll $t6,$t5,0x2
|
||||
/* 2fc04: 002e0821 */ addu $at,$at,$t6
|
||||
/* 2fc08: c430effc */ lwc1 $f16,-0x1004($at)
|
||||
/* 2fc0c: 3c017005 */ lui $at,0x7005
|
||||
/* 2fc10: c4264378 */ lwc1 $f6,0x4378($at)
|
||||
/* 2fc14: 46105483 */ div.s $f18,$f10,$f16
|
||||
/* 2fc18: 24180001 */ li $t8,0x1
|
||||
/* 2fc1c: 46069103 */ div.s $f4,$f18,$f6
|
||||
/* 2fc20: 444ff800 */ cfc1 $t7,$31
|
||||
/* 2fc24: 44d8f800 */ ctc1 $t8,$31
|
||||
/* 2fc28: 00000000 */ nop
|
||||
/* 2fc2c: 46002224 */ cvt.w.s $f8,$f4
|
||||
/* 2fc30: 4458f800 */ cfc1 $t8,$31
|
||||
/* 2fc34: 00000000 */ nop
|
||||
/* 2fc38: 33010004 */ andi $at,$t8,0x4
|
||||
/* 2fc3c: 33180078 */ andi $t8,$t8,0x78
|
||||
/* 2fc40: 13000014 */ beqz $t8,.PF0002fc94
|
||||
/* 2fc44: 00000000 */ nop
|
||||
/* 2fc48: 3c014f00 */ lui $at,0x4f00
|
||||
/* 2fc4c: 44814000 */ mtc1 $at,$f8
|
||||
/* 2fc50: 24180001 */ li $t8,0x1
|
||||
/* 2fc54: 46082201 */ sub.s $f8,$f4,$f8
|
||||
/* 2fc58: 44d8f800 */ ctc1 $t8,$31
|
||||
/* 2fc5c: 00000000 */ nop
|
||||
/* 2fc60: 46004224 */ cvt.w.s $f8,$f8
|
||||
/* 2fc64: 4458f800 */ cfc1 $t8,$31
|
||||
/* 2fc68: 00000000 */ nop
|
||||
/* 2fc6c: 33010004 */ andi $at,$t8,0x4
|
||||
/* 2fc70: 33180078 */ andi $t8,$t8,0x78
|
||||
/* 2fc74: 17000005 */ bnez $t8,.PF0002fc8c
|
||||
/* 2fc78: 00000000 */ nop
|
||||
/* 2fc7c: 44184000 */ mfc1 $t8,$f8
|
||||
/* 2fc80: 3c018000 */ lui $at,0x8000
|
||||
/* 2fc84: 10000007 */ b .PF0002fca4
|
||||
/* 2fc88: 0301c025 */ or $t8,$t8,$at
|
||||
.PF0002fc8c:
|
||||
/* 2fc8c: 10000005 */ b .PF0002fca4
|
||||
/* 2fc90: 2418ffff */ li $t8,-1
|
||||
.PF0002fc94:
|
||||
/* 2fc94: 44184000 */ mfc1 $t8,$f8
|
||||
/* 2fc98: 00000000 */ nop
|
||||
/* 2fc9c: 0700fffb */ bltz $t8,.PF0002fc8c
|
||||
/* 2fca0: 00000000 */ nop
|
||||
.PF0002fca4:
|
||||
/* 2fca4: 8fb9001c */ lw $t9,0x1c($sp)
|
||||
/* 2fca8: 44cff800 */ ctc1 $t7,$31
|
||||
/* 2fcac: a7380016 */ sh $t8,0x16($t9)
|
||||
/* 2fcb0: 00000000 */ nop
|
||||
/* 2fcb4: 8fa9001c */ lw $t1,0x1c($sp)
|
||||
/* 2fcb8: 24084e20 */ li $t0,0x4e20
|
||||
/* 2fcbc: ad280008 */ sw $t0,0x8($t1)
|
||||
/* 2fcc0: 93aa0033 */ lbu $t2,0x33($sp)
|
||||
/* 2fcc4: 448a5000 */ mtc1 $t2,$f10
|
||||
/* 2fcc8: 05410005 */ bgez $t2,.PF0002fce0
|
||||
/* 2fccc: 46805420 */ cvt.s.w $f16,$f10
|
||||
/* 2fcd0: 3c014f80 */ lui $at,0x4f80
|
||||
/* 2fcd4: 44819000 */ mtc1 $at,$f18
|
||||
/* 2fcd8: 00000000 */ nop
|
||||
/* 2fcdc: 46128400 */ add.s $f16,$f16,$f18
|
||||
.PF0002fce0:
|
||||
/* 2fce0: e7b00018 */ swc1 $f16,0x18($sp)
|
||||
/* 2fce4: 93ab002b */ lbu $t3,0x2b($sp)
|
||||
/* 2fce8: 316c0080 */ andi $t4,$t3,0x80
|
||||
/* 2fcec: 11800027 */ beqz $t4,.PF0002fd8c
|
||||
/* 2fcf0: 00000000 */ nop
|
||||
/* 2fcf4: 444df800 */ cfc1 $t5,$31
|
||||
/* 2fcf8: 24040001 */ li $a0,0x1
|
||||
/* 2fcfc: 44c4f800 */ ctc1 $a0,$31
|
||||
/* 2fd00: c7a60018 */ lwc1 $f6,0x18($sp)
|
||||
/* 2fd04: 46003124 */ cvt.w.s $f4,$f6
|
||||
/* 2fd08: 4444f800 */ cfc1 $a0,$31
|
||||
/* 2fd0c: 00000000 */ nop
|
||||
/* 2fd10: 30810004 */ andi $at,$a0,0x4
|
||||
/* 2fd14: 30840078 */ andi $a0,$a0,0x78
|
||||
/* 2fd18: 10800014 */ beqz $a0,.PF0002fd6c
|
||||
/* 2fd1c: 00000000 */ nop
|
||||
/* 2fd20: 3c014f00 */ lui $at,0x4f00
|
||||
/* 2fd24: 44812000 */ mtc1 $at,$f4
|
||||
/* 2fd28: 24040001 */ li $a0,0x1
|
||||
/* 2fd2c: 46043101 */ sub.s $f4,$f6,$f4
|
||||
/* 2fd30: 44c4f800 */ ctc1 $a0,$31
|
||||
/* 2fd34: 00000000 */ nop
|
||||
/* 2fd38: 46002124 */ cvt.w.s $f4,$f4
|
||||
/* 2fd3c: 4444f800 */ cfc1 $a0,$31
|
||||
/* 2fd40: 00000000 */ nop
|
||||
/* 2fd44: 30810004 */ andi $at,$a0,0x4
|
||||
/* 2fd48: 30840078 */ andi $a0,$a0,0x78
|
||||
/* 2fd4c: 14800005 */ bnez $a0,.PF0002fd64
|
||||
/* 2fd50: 00000000 */ nop
|
||||
/* 2fd54: 44042000 */ mfc1 $a0,$f4
|
||||
/* 2fd58: 3c018000 */ lui $at,0x8000
|
||||
/* 2fd5c: 10000007 */ b .PF0002fd7c
|
||||
/* 2fd60: 00812025 */ or $a0,$a0,$at
|
||||
.PF0002fd64:
|
||||
/* 2fd64: 10000005 */ b .PF0002fd7c
|
||||
/* 2fd68: 2404ffff */ li $a0,-1
|
||||
.PF0002fd6c:
|
||||
/* 2fd6c: 44042000 */ mfc1 $a0,$f4
|
||||
/* 2fd70: 00000000 */ nop
|
||||
/* 2fd74: 0480fffb */ bltz $a0,.PF0002fd64
|
||||
/* 2fd78: 00000000 */ nop
|
||||
.PF0002fd7c:
|
||||
/* 2fd7c: 44cdf800 */ ctc1 $t5,$31
|
||||
/* 2fd80: 0c00bd58 */ jal 0x2f560
|
||||
/* 2fd84: 00000000 */ nop
|
||||
/* 2fd88: e7a00018 */ swc1 $f0,0x18($sp)
|
||||
.PF0002fd8c:
|
||||
/* 2fd8c: 93ae002b */ lbu $t6,0x2b($sp)
|
||||
/* 2fd90: 2401ff7f */ li $at,-129
|
||||
/* 2fd94: 01c17824 */ and $t7,$t6,$at
|
||||
/* 2fd98: a3af002b */ sb $t7,0x2b($sp)
|
||||
/* 2fd9c: 93b8002b */ lbu $t8,0x2b($sp)
|
||||
/* 2fda0: 2401ff7f */ li $at,-129
|
||||
/* 2fda4: 0301c824 */ and $t9,$t8,$at
|
||||
/* 2fda8: 2728fffe */ addiu $t0,$t9,-2
|
||||
/* 2fdac: 2d01000c */ sltiu $at,$t0,0xc
|
||||
/* 2fdb0: 10200047 */ beqz $at,.PF0002fed0
|
||||
/* 2fdb4: 00000000 */ nop
|
||||
/* 2fdb8: 00084080 */ sll $t0,$t0,0x2
|
||||
/* 2fdbc: 3c017005 */ lui $at,0x7005
|
||||
/* 2fdc0: 00280821 */ addu $at,$at,$t0
|
||||
/* 2fdc4: 8c28437c */ lw $t0,0x437c($at)
|
||||
/* 2fdc8: 01000008 */ jr $t0
|
||||
/* 2fdcc: 00000000 */ nop
|
||||
/* 2fdd0: c7a80018 */ lwc1 $f8,0x18($sp)
|
||||
/* 2fdd4: 8fa9001c */ lw $t1,0x1c($sp)
|
||||
/* 2fdd8: e528000c */ swc1 $f8,0xc($t1)
|
||||
/* 2fddc: 93aa002b */ lbu $t2,0x2b($sp)
|
||||
/* 2fde0: 24010002 */ li $at,0x2
|
||||
/* 2fde4: 15410006 */ bne $t2,$at,.PF0002fe00
|
||||
/* 2fde8: 00000000 */ nop
|
||||
/* 2fdec: c7aa0018 */ lwc1 $f10,0x18($sp)
|
||||
/* 2fdf0: 8fab001c */ lw $t3,0x1c($sp)
|
||||
/* 2fdf4: 46005487 */ neg.s $f18,$f10
|
||||
/* 2fdf8: 10000004 */ b .PF0002fe0c
|
||||
/* 2fdfc: e5720010 */ swc1 $f18,0x10($t3)
|
||||
.PF0002fe00:
|
||||
/* 2fe00: 44808000 */ mtc1 $zero,$f16
|
||||
/* 2fe04: 8fac001c */ lw $t4,0x1c($sp)
|
||||
/* 2fe08: e5900010 */ swc1 $f16,0x10($t4)
|
||||
.PF0002fe0c:
|
||||
/* 2fe0c: 93ad002f */ lbu $t5,0x2f($sp)
|
||||
/* 2fe10: 3c017005 */ lui $at,0x7005
|
||||
/* 2fe14: c42643ac */ lwc1 $f6,0x43ac($at)
|
||||
/* 2fe18: 3c018006 */ lui $at,0x8006
|
||||
/* 2fe1c: 000d7080 */ sll $t6,$t5,0x2
|
||||
/* 2fe20: 002e0821 */ addu $at,$at,$t6
|
||||
/* 2fe24: c424effc */ lwc1 $f4,-0x1004($at)
|
||||
/* 2fe28: 8fb9001c */ lw $t9,0x1c($sp)
|
||||
/* 2fe2c: 46043203 */ div.s $f8,$f6,$f4
|
||||
/* 2fe30: 4600428d */ trunc.w.s $f10,$f8
|
||||
/* 2fe34: 44185000 */ mfc1 $t8,$f10
|
||||
/* 2fe38: 00000000 */ nop
|
||||
/* 2fe3c: af380008 */ sw $t8,0x8($t9)
|
||||
/* 2fe40: 10000025 */ b .PF0002fed8
|
||||
/* 2fe44: 00000000 */ nop
|
||||
/* 2fe48: 44809000 */ mtc1 $zero,$f18
|
||||
/* 2fe4c: 8fa8001c */ lw $t0,0x1c($sp)
|
||||
/* 2fe50: e5120010 */ swc1 $f18,0x10($t0)
|
||||
/* 2fe54: c7b00018 */ lwc1 $f16,0x18($sp)
|
||||
/* 2fe58: 8fa9001c */ lw $t1,0x1c($sp)
|
||||
/* 2fe5c: e530000c */ swc1 $f16,0xc($t1)
|
||||
/* 2fe60: 1000001d */ b .PF0002fed8
|
||||
/* 2fe64: 00000000 */ nop
|
||||
/* 2fe68: 3c014000 */ lui $at,0x4000
|
||||
/* 2fe6c: 44812000 */ mtc1 $at,$f4
|
||||
/* 2fe70: c7a60018 */ lwc1 $f6,0x18($sp)
|
||||
/* 2fe74: 8faa001c */ lw $t2,0x1c($sp)
|
||||
/* 2fe78: 46043203 */ div.s $f8,$f6,$f4
|
||||
/* 2fe7c: e5480010 */ swc1 $f8,0x10($t2)
|
||||
/* 2fe80: 3c014000 */ lui $at,0x4000
|
||||
/* 2fe84: 44819000 */ mtc1 $at,$f18
|
||||
/* 2fe88: c7aa0018 */ lwc1 $f10,0x18($sp)
|
||||
/* 2fe8c: 8fab001c */ lw $t3,0x1c($sp)
|
||||
/* 2fe90: 46125403 */ div.s $f16,$f10,$f18
|
||||
/* 2fe94: e570000c */ swc1 $f16,0xc($t3)
|
||||
/* 2fe98: 1000000f */ b .PF0002fed8
|
||||
/* 2fe9c: 00000000 */ nop
|
||||
/* 2fea0: c7a60018 */ lwc1 $f6,0x18($sp)
|
||||
/* 2fea4: 8fac001c */ lw $t4,0x1c($sp)
|
||||
/* 2fea8: 46003107 */ neg.s $f4,$f6
|
||||
/* 2feac: e5840010 */ swc1 $f4,0x10($t4)
|
||||
/* 2feb0: 3c014000 */ lui $at,0x4000
|
||||
/* 2feb4: 44815000 */ mtc1 $at,$f10
|
||||
/* 2feb8: c7a80018 */ lwc1 $f8,0x18($sp)
|
||||
/* 2febc: 8fad001c */ lw $t5,0x1c($sp)
|
||||
/* 2fec0: 460a4482 */ mul.s $f18,$f8,$f10
|
||||
/* 2fec4: e5b2000c */ swc1 $f18,0xc($t5)
|
||||
/* 2fec8: 10000003 */ b .PF0002fed8
|
||||
/* 2fecc: 00000000 */ nop
|
||||
.PF0002fed0:
|
||||
/* 2fed0: 1000002b */ b .PF0002ff80
|
||||
/* 2fed4: 00001025 */ move $v0,$zero
|
||||
.PF0002fed8:
|
||||
/* 2fed8: 8fae001c */ lw $t6,0x1c($sp)
|
||||
/* 2fedc: 91cf0004 */ lbu $t7,0x4($t6)
|
||||
/* 2fee0: 31f80080 */ andi $t8,$t7,0x80
|
||||
/* 2fee4: 1300000a */ beqz $t8,.PF0002ff10
|
||||
/* 2fee8: 00000000 */ nop
|
||||
/* 2feec: 8fb9001c */ lw $t9,0x1c($sp)
|
||||
/* 2fef0: c7300010 */ lwc1 $f16,0x10($t9)
|
||||
/* 2fef4: 4600818d */ trunc.w.s $f6,$f16
|
||||
/* 2fef8: 44043000 */ mfc1 $a0,$f6
|
||||
/* 2fefc: 0c00e638 */ jal 0x398e0
|
||||
/* 2ff00: 00000000 */ nop
|
||||
/* 2ff04: 8fa90024 */ lw $t1,0x24($sp)
|
||||
/* 2ff08: 10000008 */ b .PF0002ff2c
|
||||
/* 2ff0c: e5200000 */ swc1 $f0,0x0($t1)
|
||||
.PF0002ff10:
|
||||
/* 2ff10: 8faa001c */ lw $t2,0x1c($sp)
|
||||
/* 2ff14: 3c0142fe */ lui $at,0x42fe
|
||||
/* 2ff18: 44814000 */ mtc1 $at,$f8
|
||||
/* 2ff1c: c5440010 */ lwc1 $f4,0x10($t2)
|
||||
/* 2ff20: 8fab0024 */ lw $t3,0x24($sp)
|
||||
/* 2ff24: 46082280 */ add.s $f10,$f4,$f8
|
||||
/* 2ff28: e56a0000 */ swc1 $f10,0x0($t3)
|
||||
.PF0002ff2c:
|
||||
/* 2ff2c: 8fac001c */ lw $t4,0x1c($sp)
|
||||
/* 2ff30: 8fad0020 */ lw $t5,0x20($sp)
|
||||
/* 2ff34: adac0000 */ sw $t4,0x0($t5)
|
||||
/* 2ff38: 3c0e800a */ lui $t6,0x800a
|
||||
/* 2ff3c: 8dcebdc0 */ lw $t6,-0x4240($t6)
|
||||
/* 2ff40: 3c01800a */ lui $at,0x800a
|
||||
/* 2ff44: 8dcf0000 */ lw $t7,0x0($t6)
|
||||
/* 2ff48: ac2fbdc0 */ sw $t7,-0x4240($at)
|
||||
/* 2ff4c: 93b80037 */ lbu $t8,0x37($sp)
|
||||
/* 2ff50: 13000007 */ beqz $t8,.PF0002ff70
|
||||
/* 2ff54: 00000000 */ nop
|
||||
/* 2ff58: 93b90037 */ lbu $t9,0x37($sp)
|
||||
/* 2ff5c: 3c028006 */ lui $v0,0x8006
|
||||
/* 2ff60: 00194080 */ sll $t0,$t9,0x2
|
||||
/* 2ff64: 00481021 */ addu $v0,$v0,$t0
|
||||
/* 2ff68: 10000005 */ b .PF0002ff80
|
||||
/* 2ff6c: 8c42ee00 */ lw $v0,-0x1200($v0)
|
||||
.PF0002ff70:
|
||||
/* 2ff70: 10000003 */ b .PF0002ff80
|
||||
/* 2ff74: 24024e20 */ li $v0,0x4e20
|
||||
/* 2ff78: 10000001 */ b .PF0002ff80
|
||||
/* 2ff7c: 00000000 */ nop
|
||||
.PF0002ff80:
|
||||
/* 2ff80: 8fbf0014 */ lw $ra,0x14($sp)
|
||||
/* 2ff84: 27bd0020 */ addiu $sp,$sp,0x20
|
||||
/* 2ff88: 03e00008 */ jr $ra
|
||||
/* 2ff8c: 00000000 */ nop
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel func000301e4
|
||||
/* 301e4: 27bdffe0 */ addiu $sp,$sp,-32
|
||||
@@ -766,6 +1092,7 @@ glabel func000301e4
|
||||
/* 30688: 03e00008 */ jr $ra
|
||||
/* 3068c: 00000000 */ nop
|
||||
);
|
||||
#endif
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func00030690
|
||||
|
||||
+107
-2
@@ -68,6 +68,111 @@ glabel func0003d280
|
||||
/* 3d33c: 27bd0008 */ addiu $sp,$sp,0x8
|
||||
);
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel func0003d340
|
||||
/* 3cc40: 27bdffc0 */ addiu $sp,$sp,-64
|
||||
/* 3cc44: afbf0014 */ sw $ra,0x14($sp)
|
||||
/* 3cc48: afa40040 */ sw $a0,0x40($sp)
|
||||
/* 3cc4c: afa50044 */ sw $a1,0x44($sp)
|
||||
/* 3cc50: afa60048 */ sw $a2,0x48($sp)
|
||||
/* 3cc54: 8fae0044 */ lw $t6,0x44($sp)
|
||||
/* 3cc58: 8dcf0010 */ lw $t7,0x10($t6)
|
||||
/* 3cc5c: afaf002c */ sw $t7,0x2c($sp)
|
||||
/* 3cc60: 8fb8002c */ lw $t8,0x2c($sp)
|
||||
/* 3cc64: 93190034 */ lbu $t9,0x34($t8)
|
||||
/* 3cc68: 1720002c */ bnez $t9,.PF0003cd1c
|
||||
/* 3cc6c: 00000000 */ nop
|
||||
/* 3cc70: 8fa80040 */ lw $t0,0x40($sp)
|
||||
/* 3cc74: 8d090050 */ lw $t1,0x50($t0)
|
||||
/* 3cc78: afa90028 */ sw $t1,0x28($sp)
|
||||
/* 3cc7c: 8faa0028 */ lw $t2,0x28($sp)
|
||||
/* 3cc80: 11400026 */ beqz $t2,.PF0003cd1c
|
||||
/* 3cc84: 00000000 */ nop
|
||||
.PF0003cc88:
|
||||
/* 3cc88: 8fab0028 */ lw $t3,0x28($sp)
|
||||
/* 3cc8c: 8d6c0000 */ lw $t4,0x0($t3)
|
||||
/* 3cc90: afac0024 */ sw $t4,0x24($sp)
|
||||
/* 3cc94: 8fad0028 */ lw $t5,0x28($sp)
|
||||
/* 3cc98: afad0020 */ sw $t5,0x20($sp)
|
||||
/* 3cc9c: 8fae0024 */ lw $t6,0x24($sp)
|
||||
/* 3cca0: afae001c */ sw $t6,0x1c($sp)
|
||||
/* 3cca4: 8faf0020 */ lw $t7,0x20($sp)
|
||||
/* 3cca8: 24010006 */ li $at,0x6
|
||||
/* 3ccac: 85f8000c */ lh $t8,0xc($t7)
|
||||
/* 3ccb0: 17010015 */ bne $t8,$at,.PF0003cd08
|
||||
/* 3ccb4: 00000000 */ nop
|
||||
/* 3ccb8: 8fb90020 */ lw $t9,0x20($sp)
|
||||
/* 3ccbc: 8fa90044 */ lw $t1,0x44($sp)
|
||||
/* 3ccc0: 8f280010 */ lw $t0,0x10($t9)
|
||||
/* 3ccc4: 15090010 */ bne $t0,$t1,.PF0003cd08
|
||||
/* 3ccc8: 00000000 */ nop
|
||||
/* 3cccc: 8faa001c */ lw $t2,0x1c($sp)
|
||||
/* 3ccd0: 11400007 */ beqz $t2,.PF0003ccf0
|
||||
/* 3ccd4: 00000000 */ nop
|
||||
/* 3ccd8: 8fab001c */ lw $t3,0x1c($sp)
|
||||
/* 3ccdc: 8fad0020 */ lw $t5,0x20($sp)
|
||||
/* 3cce0: 8d6c0008 */ lw $t4,0x8($t3)
|
||||
/* 3cce4: 8dae0008 */ lw $t6,0x8($t5)
|
||||
/* 3cce8: 018e7821 */ addu $t7,$t4,$t6
|
||||
/* 3ccec: ad6f0008 */ sw $t7,0x8($t3)
|
||||
.PF0003ccf0:
|
||||
/* 3ccf0: 0c00c429 */ jal 0x310a4
|
||||
/* 3ccf4: 8fa40028 */ lw $a0,0x28($sp)
|
||||
/* 3ccf8: 8fa50040 */ lw $a1,0x40($sp)
|
||||
/* 3ccfc: 8fa40028 */ lw $a0,0x28($sp)
|
||||
/* 3cd00: 0c00c41c */ jal 0x31070
|
||||
/* 3cd04: 24a50048 */ addiu $a1,$a1,0x48
|
||||
.PF0003cd08:
|
||||
/* 3cd08: 8fb80024 */ lw $t8,0x24($sp)
|
||||
/* 3cd0c: afb80028 */ sw $t8,0x28($sp)
|
||||
/* 3cd10: 8fb90028 */ lw $t9,0x28($sp)
|
||||
/* 3cd14: 1720ffdc */ bnez $t9,.PF0003cc88
|
||||
/* 3cd18: 00000000 */ nop
|
||||
.PF0003cd1c:
|
||||
/* 3cd1c: 8fa8002c */ lw $t0,0x2c($sp)
|
||||
/* 3cd20: a1000033 */ sb $zero,0x33($t0)
|
||||
/* 3cd24: 8faa002c */ lw $t2,0x2c($sp)
|
||||
/* 3cd28: 24090003 */ li $t1,0x3
|
||||
/* 3cd2c: a1490034 */ sb $t1,0x34($t2)
|
||||
/* 3cd30: 8fad002c */ lw $t5,0x2c($sp)
|
||||
/* 3cd34: a1a00030 */ sb $zero,0x30($t5)
|
||||
/* 3cd38: 8fac0040 */ lw $t4,0x40($sp)
|
||||
/* 3cd3c: 8faf0048 */ lw $t7,0x48($sp)
|
||||
/* 3cd40: 8fb8002c */ lw $t8,0x2c($sp)
|
||||
/* 3cd44: 8d8e001c */ lw $t6,0x1c($t4)
|
||||
/* 3cd48: 01cf5821 */ addu $t3,$t6,$t7
|
||||
/* 3cd4c: af0b0024 */ sw $t3,0x24($t8)
|
||||
/* 3cd50: 8fa40044 */ lw $a0,0x44($sp)
|
||||
/* 3cd54: 0c011210 */ jal 0x44840
|
||||
/* 3cd58: 00002825 */ move $a1,$zero
|
||||
/* 3cd5c: 8fa40044 */ lw $a0,0x44($sp)
|
||||
/* 3cd60: 00002825 */ move $a1,$zero
|
||||
/* 3cd64: 0c00f17c */ jal 0x3c5f0
|
||||
/* 3cd68: 8fa60048 */ lw $a2,0x48($sp)
|
||||
/* 3cd6c: 24190005 */ li $t9,0x5
|
||||
/* 3cd70: a7b90030 */ sh $t9,0x30($sp)
|
||||
/* 3cd74: 8fa80044 */ lw $t0,0x44($sp)
|
||||
/* 3cd78: afa80034 */ sw $t0,0x34($sp)
|
||||
/* 3cd7c: 8fa90048 */ lw $t1,0x48($sp)
|
||||
/* 3cd80: 34019c40 */ li $at,0x9c40
|
||||
/* 3cd84: 01215021 */ addu $t2,$t1,$at
|
||||
/* 3cd88: afaa0048 */ sw $t2,0x48($sp)
|
||||
/* 3cd8c: 8fa40040 */ lw $a0,0x40($sp)
|
||||
/* 3cd90: 27a50030 */ addiu $a1,$sp,0x30
|
||||
/* 3cd94: 8fa60048 */ lw $a2,0x48($sp)
|
||||
/* 3cd98: 00003825 */ move $a3,$zero
|
||||
/* 3cd9c: 0c00efc4 */ jal 0x3bf10
|
||||
/* 3cda0: 24840048 */ addiu $a0,$a0,0x48
|
||||
/* 3cda4: 10000001 */ b .PF0003cdac
|
||||
/* 3cda8: 00000000 */ nop
|
||||
.PF0003cdac:
|
||||
/* 3cdac: 8fbf0014 */ lw $ra,0x14($sp)
|
||||
/* 3cdb0: 27bd0040 */ addiu $sp,$sp,0x40
|
||||
/* 3cdb4: 03e00008 */ jr $ra
|
||||
/* 3cdb8: 00000000 */ nop
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel func0003d340
|
||||
/* 3d340: 27bdffc0 */ addiu $sp,$sp,-64
|
||||
@@ -170,6 +275,7 @@ glabel func0003d340
|
||||
/* 3d4b0: 03e00008 */ jr $ra
|
||||
/* 3d4b4: 00000000 */ nop
|
||||
);
|
||||
#endif
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0003d4b8
|
||||
@@ -1250,5 +1356,4 @@ glabel func0003e2a0
|
||||
/* 3e3d0: 27bd0028 */ addiu $sp,$sp,0x28
|
||||
/* 3e3d4: 03e00008 */ jr $ra
|
||||
/* 3e3d8: 00000000 */ nop
|
||||
/* 3e3dc: 00000000 */ nop
|
||||
);
|
||||
);
|
||||
|
||||
+406
@@ -44,6 +44,7 @@
|
||||
#include "lib/lib_070d0.h"
|
||||
#include "lib/lib_074f0.h"
|
||||
#include "lib/lib_09660.h"
|
||||
#include "lib/lib_09a80.h"
|
||||
#include "lib/lib_0bfb0.h"
|
||||
#include "lib/lib_0c000.h"
|
||||
#include "lib/dma.h"
|
||||
@@ -188,6 +189,410 @@ Gfx var8005dcf0[] = {
|
||||
|
||||
s32 var8005dd18 = 1;
|
||||
|
||||
#if VERSION >= VERSION_PAL_FINAL
|
||||
GLOBAL_ASM(
|
||||
glabel mainInit
|
||||
/* d260: 27bdeb20 */ addiu $sp,$sp,-5344
|
||||
/* d264: afbf002c */ sw $ra,0x2c($sp)
|
||||
/* d268: 0c002f3c */ jal 0xbcf0
|
||||
/* d26c: afb00028 */ sw $s0,0x28($sp)
|
||||
/* d270: 0c003378 */ jal 0xcde0
|
||||
/* d274: 00000000 */ nop
|
||||
/* d278: 0c002258 */ jal 0x8960
|
||||
/* d27c: 00000000 */ nop
|
||||
/* d280: 0c00557c */ jal 0x155f0
|
||||
/* d284: 00000000 */ nop
|
||||
/* d288: 0c0047dc */ jal 0x11f70
|
||||
/* d28c: 00000000 */ nop
|
||||
/* d290: 0c0049e7 */ jal 0x1279c
|
||||
/* d294: 00000000 */ nop
|
||||
/* d298: 0c004d3a */ jal 0x134e8
|
||||
/* d29c: 00000000 */ nop
|
||||
/* d2a0: 0c002668 */ jal 0x99a0
|
||||
/* d2a4: 00000000 */ nop
|
||||
/* d2a8: 0c00bcc2 */ jal 0x2f308
|
||||
/* d2ac: 00000000 */ nop
|
||||
/* d2b0: 3c018006 */ lui $at,0x8006
|
||||
/* d2b4: 0c004e87 */ jal 0x13a1c
|
||||
/* d2b8: ac22d650 */ sw $v0,-0x29b0($at)
|
||||
/* d2bc: 27a41498 */ addiu $a0,$sp,0x1498
|
||||
/* d2c0: 27a514d4 */ addiu $a1,$sp,0x14d4
|
||||
/* d2c4: 0c011f10 */ jal 0x47c40
|
||||
/* d2c8: 24060001 */ li $a2,0x1
|
||||
/* d2cc: 00008025 */ move $s0,$zero
|
||||
/* d2d0: 3c070047 */ lui $a3,0x47
|
||||
.PF0000d2d4:
|
||||
/* d2d4: 240e0000 */ li $t6,0x0
|
||||
/* d2d8: 240f0000 */ li $t7,0x0
|
||||
/* d2dc: 27b81498 */ addiu $t8,$sp,0x1498
|
||||
/* d2e0: 27b914d4 */ addiu $t9,$sp,0x14d4
|
||||
/* d2e4: afb9001c */ sw $t9,0x1c($sp)
|
||||
/* d2e8: afb80018 */ sw $t8,0x18($sp)
|
||||
/* d2ec: afaf0014 */ sw $t7,0x14($sp)
|
||||
/* d2f0: afae0010 */ sw $t6,0x10($sp)
|
||||
/* d2f4: 34e7868c */ ori $a3,$a3,0x868c
|
||||
/* d2f8: 27a414b0 */ addiu $a0,$sp,0x14b0
|
||||
/* d2fc: 0c012108 */ jal 0x48420
|
||||
/* d300: 24060000 */ li $a2,0x0
|
||||
/* d304: 27a41498 */ addiu $a0,$sp,0x1498
|
||||
/* d308: 27a514d4 */ addiu $a1,$sp,0x14d4
|
||||
/* d30c: 0c011ffc */ jal 0x47ff0
|
||||
/* d310: 24060001 */ li $a2,0x1
|
||||
/* d314: 24010001 */ li $at,0x1
|
||||
/* d318: 56010006 */ bnel $s0,$at,.PF0000d334
|
||||
/* d31c: 2a010002 */ slti $at,$s0,0x2
|
||||
/* d320: 0c004ee1 */ jal 0x13b84
|
||||
/* d324: 00000000 */ nop
|
||||
/* d328: 10000007 */ b .PF0000d348
|
||||
/* d32c: 26100001 */ addiu $s0,$s0,0x1
|
||||
/* d330: 2a010002 */ slti $at,$s0,0x2
|
||||
.PF0000d334:
|
||||
/* d334: 54200004 */ bnezl $at,.PF0000d348
|
||||
/* d338: 26100001 */ addiu $s0,$s0,0x1
|
||||
/* d33c: 0c00501e */ jal 0x14078
|
||||
/* d340: 00000000 */ nop
|
||||
/* d344: 26100001 */ addiu $s0,$s0,0x1
|
||||
.PF0000d348:
|
||||
/* d348: 24010004 */ li $at,0x4
|
||||
/* d34c: 5601ffe1 */ bnel $s0,$at,.PF0000d2d4
|
||||
/* d350: 3c070047 */ lui $a3,0x47
|
||||
/* d354: 3c057005 */ lui $a1,0x7005
|
||||
/* d358: 24a53738 */ addiu $a1,$a1,0x3738
|
||||
/* d35c: 0c004b68 */ jal 0x12da0
|
||||
/* d360: 24040001 */ li $a0,0x1
|
||||
/* d364: 14400004 */ bnez $v0,.PF0000d378
|
||||
/* d368: 00002025 */ move $a0,$zero
|
||||
/* d36c: 240b0001 */ li $t3,0x1
|
||||
/* d370: 3c018006 */ lui $at,0x8006
|
||||
/* d374: ac2bd650 */ sw $t3,-0x29b0($at)
|
||||
.PF0000d378:
|
||||
/* d378: 0c00533a */ jal 0x14ce8
|
||||
/* d37c: 24051000 */ li $a1,0x1000
|
||||
/* d380: 1440000f */ bnez $v0,.PF0000d3c0
|
||||
/* d384: 24040001 */ li $a0,0x1
|
||||
/* d388: 0c00533a */ jal 0x14ce8
|
||||
/* d38c: 24051000 */ li $a1,0x1000
|
||||
/* d390: 1440000b */ bnez $v0,.PF0000d3c0
|
||||
/* d394: 24040002 */ li $a0,0x2
|
||||
/* d398: 0c00533a */ jal 0x14ce8
|
||||
/* d39c: 24051000 */ li $a1,0x1000
|
||||
/* d3a0: 14400007 */ bnez $v0,.PF0000d3c0
|
||||
/* d3a4: 24040003 */ li $a0,0x3
|
||||
/* d3a8: 0c00533a */ jal 0x14ce8
|
||||
/* d3ac: 24051000 */ li $a1,0x1000
|
||||
/* d3b0: 14400003 */ bnez $v0,.PF0000d3c0
|
||||
/* d3b4: 3c018006 */ lui $at,0x8006
|
||||
/* d3b8: 10000004 */ b .PF0000d3cc
|
||||
/* d3bc: ac20d674 */ sw $zero,-0x298c($at)
|
||||
.PF0000d3c0:
|
||||
/* d3c0: 240c0001 */ li $t4,0x1
|
||||
/* d3c4: 3c018006 */ lui $at,0x8006
|
||||
/* d3c8: ac2cd674 */ sw $t4,-0x298c($at)
|
||||
.PF0000d3cc:
|
||||
/* d3cc: 3c0e8006 */ lui $t6,0x8006
|
||||
/* d3d0: afa01478 */ sw $zero,0x1478($sp)
|
||||
/* d3d4: 25ced9bc */ addiu $t6,$t6,-9796
|
||||
/* d3d8: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* d3dc: 8dd90004 */ lw $t9,0x4($t6)
|
||||
/* d3e0: 27ad1458 */ addiu $t5,$sp,0x1458
|
||||
/* d3e4: ada10000 */ sw $at,0x0($t5)
|
||||
/* d3e8: adb90004 */ sw $t9,0x4($t5)
|
||||
/* d3ec: 8dd9000c */ lw $t9,0xc($t6)
|
||||
/* d3f0: 8dc10008 */ lw $at,0x8($t6)
|
||||
/* d3f4: adb9000c */ sw $t9,0xc($t5)
|
||||
/* d3f8: ada10008 */ sw $at,0x8($t5)
|
||||
/* d3fc: 8dc10010 */ lw $at,0x10($t6)
|
||||
/* d400: 8dd90014 */ lw $t9,0x14($t6)
|
||||
/* d404: ada10010 */ sw $at,0x10($t5)
|
||||
/* d408: adb90014 */ sw $t9,0x14($t5)
|
||||
/* d40c: 8dd9001c */ lw $t9,0x1c($t6)
|
||||
/* d410: 8dc10018 */ lw $at,0x18($t6)
|
||||
/* d414: adb9001c */ sw $t9,0x1c($t5)
|
||||
/* d418: 0c0005b0 */ jal 0x16c0
|
||||
/* d41c: ada10018 */ sw $at,0x18($t5)
|
||||
/* d420: 3c010040 */ lui $at,0x40
|
||||
/* d424: 34210001 */ ori $at,$at,0x1
|
||||
/* d428: 0041082a */ slt $at,$v0,$at
|
||||
/* d42c: 1020000e */ beqz $at,.PF0000d468
|
||||
/* d430: 3c0d8006 */ lui $t5,0x8006
|
||||
/* d434: 3c0b8006 */ lui $t3,0x8006
|
||||
/* d438: 8d6bcc24 */ lw $t3,-0x33dc($t3)
|
||||
/* d43c: 3c18803f */ lui $t8,0x803f
|
||||
/* d440: 371850b8 */ ori $t8,$t8,0x50b8
|
||||
/* d444: 3c01ffef */ lui $at,0xffef
|
||||
/* d448: 000b60c0 */ sll $t4,$t3,0x3
|
||||
/* d44c: 030c1023 */ subu $v0,$t8,$t4
|
||||
/* d450: 34214000 */ ori $at,$at,0x4000
|
||||
/* d454: 00411021 */ addu $v0,$v0,$at
|
||||
/* d458: 304f1fff */ andi $t7,$v0,0x1fff
|
||||
/* d45c: 004f1023 */ subu $v0,$v0,$t7
|
||||
/* d460: 10000002 */ b .PF0000d46c
|
||||
/* d464: 2442e380 */ addiu $v0,$v0,-7296
|
||||
.PF0000d468:
|
||||
/* d468: 3c028080 */ lui $v0,0x8080
|
||||
.PF0000d46c:
|
||||
/* d46c: 8dadd674 */ lw $t5,-0x298c($t5)
|
||||
/* d470: 3c01fff6 */ lui $at,0xfff6
|
||||
/* d474: 3421a000 */ ori $at,$at,0xa000
|
||||
/* d478: 00411021 */ addu $v0,$v0,$at
|
||||
/* d47c: 11a0000f */ beqz $t5,.PF0000d4bc
|
||||
/* d480: 2442ffc0 */ addiu $v0,$v0,-64
|
||||
/* d484: 3c018000 */ lui $at,0x8000
|
||||
/* d488: 00418025 */ or $s0,$v0,$at
|
||||
/* d48c: 2610003f */ addiu $s0,$s0,0x3f
|
||||
/* d490: 3c0301ff */ lui $v1,0x1ff
|
||||
/* d494: 360e003f */ ori $t6,$s0,0x3f
|
||||
/* d498: 3c0b01ff */ lui $t3,0x1ff
|
||||
/* d49c: 24656030 */ addiu $a1,$v1,0x6030
|
||||
/* d4a0: 256b68e0 */ addiu $t3,$t3,0x68e0
|
||||
/* d4a4: 39c4003f */ xori $a0,$t6,0x3f
|
||||
/* d4a8: 00808025 */ move $s0,$a0
|
||||
/* d4ac: 0c003454 */ jal 0xd150
|
||||
/* d4b0: 01653023 */ subu $a2,$t3,$a1
|
||||
/* d4b4: 1000000e */ b .PF0000d4f0
|
||||
/* d4b8: 3c01ffff */ lui $at,0xffff
|
||||
.PF0000d4bc:
|
||||
/* d4bc: 3c018000 */ lui $at,0x8000
|
||||
/* d4c0: 00418025 */ or $s0,$v0,$at
|
||||
/* d4c4: 2610003f */ addiu $s0,$s0,0x3f
|
||||
/* d4c8: 3c0301ff */ lui $v1,0x1ff
|
||||
/* d4cc: 3618003f */ ori $t8,$s0,0x3f
|
||||
/* d4d0: 3c0f01ff */ lui $t7,0x1ff
|
||||
/* d4d4: 24655500 */ addiu $a1,$v1,0x5500
|
||||
/* d4d8: 25ef6030 */ addiu $t7,$t7,0x6030
|
||||
/* d4dc: 3b04003f */ xori $a0,$t8,0x3f
|
||||
/* d4e0: 00808025 */ move $s0,$a0
|
||||
/* d4e4: 0c003454 */ jal 0xd150
|
||||
/* d4e8: 01e53023 */ subu $a2,$t7,$a1
|
||||
/* d4ec: 3c01ffff */ lui $at,0xffff
|
||||
.PF0000d4f0:
|
||||
/* d4f0: 342141e0 */ ori $at,$at,0x41e0
|
||||
/* d4f4: 02012821 */ addu $a1,$s0,$at
|
||||
/* d4f8: afa50048 */ sw $a1,0x48($sp)
|
||||
/* d4fc: 02002025 */ move $a0,$s0
|
||||
/* d500: 0c001d0c */ jal 0x7430
|
||||
/* d504: 27a60058 */ addiu $a2,$sp,0x58
|
||||
/* d508: 3c050004 */ lui $a1,0x4
|
||||
/* d50c: 8faa0048 */ lw $t2,0x48($sp)
|
||||
/* d510: 34a53800 */ ori $a1,$a1,0x3800
|
||||
/* d514: 00003825 */ move $a3,$zero
|
||||
/* d518: 24040500 */ li $a0,0x500
|
||||
/* d51c: 00076840 */ sll $t5,$a3,0x1
|
||||
.PF0000d520:
|
||||
/* d520: 020d1821 */ addu $v1,$s0,$t5
|
||||
/* d524: 00001025 */ move $v0,$zero
|
||||
.PF0000d528:
|
||||
/* d528: 00627021 */ addu $t6,$v1,$v0
|
||||
/* d52c: 24420002 */ addiu $v0,$v0,0x2
|
||||
/* d530: 1444fffd */ bne $v0,$a0,.PF0000d528
|
||||
/* d534: a5c00000 */ sh $zero,0x0($t6)
|
||||
/* d538: 24e70240 */ addiu $a3,$a3,0x240
|
||||
/* d53c: 00e5082a */ slt $at,$a3,$a1
|
||||
/* d540: 5420fff7 */ bnezl $at,.PF0000d520
|
||||
/* d544: 00076840 */ sll $t5,$a3,0x1
|
||||
/* d548: 3c198000 */ lui $t9,0x8000
|
||||
/* d54c: 8f390300 */ lw $t9,0x300($t9)
|
||||
/* d550: 00003825 */ move $a3,$zero
|
||||
/* d554: 00003025 */ move $a2,$zero
|
||||
/* d558: 17200010 */ bnez $t9,.PF0000d59c
|
||||
/* d55c: 24095f10 */ li $t1,0x5f10
|
||||
/* d560: 240503f6 */ li $a1,0x3f6
|
||||
.PF0000d564:
|
||||
/* d564: 00075840 */ sll $t3,$a3,0x1
|
||||
/* d568: 0006c040 */ sll $t8,$a2,0x1
|
||||
/* d56c: 01582021 */ addu $a0,$t2,$t8
|
||||
/* d570: 020b1821 */ addu $v1,$s0,$t3
|
||||
/* d574: 00001025 */ move $v0,$zero
|
||||
.PF0000d578:
|
||||
/* d578: 00826021 */ addu $t4,$a0,$v0
|
||||
/* d57c: 958f0000 */ lhu $t7,0x0($t4)
|
||||
/* d580: 00626821 */ addu $t5,$v1,$v0
|
||||
/* d584: 24420002 */ addiu $v0,$v0,0x2
|
||||
/* d588: 1445fffb */ bne $v0,$a1,.PF0000d578
|
||||
/* d58c: a5af008a */ sh $t7,0x8a($t5)
|
||||
/* d590: 24c601fb */ addiu $a2,$a2,0x1fb
|
||||
/* d594: 14c9fff3 */ bne $a2,$t1,.PF0000d564
|
||||
/* d598: 24e70240 */ addiu $a3,$a3,0x240
|
||||
.PF0000d59c:
|
||||
/* d59c: 0c0029fd */ jal 0xa7f4
|
||||
/* d5a0: 24040002 */ li $a0,0x2
|
||||
/* d5a4: 0c002696 */ jal 0x9a58
|
||||
/* d5a8: 02002025 */ move $a0,$s0
|
||||
/* d5ac: 8faa0048 */ lw $t2,0x48($sp)
|
||||
/* d5b0: 3c018006 */ lui $at,0x8006
|
||||
/* d5b4: 3c048009 */ lui $a0,0x8009
|
||||
/* d5b8: ac2aecf4 */ sw $t2,-0x130c($at)
|
||||
/* d5bc: 3c018006 */ lui $at,0x8006
|
||||
/* d5c0: 254e0800 */ addiu $t6,$t2,0x800
|
||||
/* d5c4: ac2eecf0 */ sw $t6,-0x1310($at)
|
||||
/* d5c8: 2484e080 */ addiu $a0,$a0,-8064
|
||||
/* d5cc: 27a51478 */ addiu $a1,$sp,0x1478
|
||||
/* d5d0: 0c011ffc */ jal 0x47ff0
|
||||
/* d5d4: 00003025 */ move $a2,$zero
|
||||
/* d5d8: 14400007 */ bnez $v0,.PF0000d5f8
|
||||
.PF0000d5dc:
|
||||
/* d5dc: 3c048009 */ lui $a0,0x8009
|
||||
/* d5e0: 2484e080 */ addiu $a0,$a0,-8064
|
||||
/* d5e4: 27a51478 */ addiu $a1,$sp,0x1478
|
||||
/* d5e8: 0c011ffc */ jal 0x47ff0
|
||||
/* d5ec: 00003025 */ move $a2,$zero
|
||||
/* d5f0: 1040fffa */ beqz $v0,.PF0000d5dc
|
||||
/* d5f4: 00000000 */ nop
|
||||
.PF0000d5f8:
|
||||
/* d5f8: 00001825 */ move $v1,$zero
|
||||
.PF0000d5fc:
|
||||
/* d5fc: 3c048009 */ lui $a0,0x8009
|
||||
/* d600: 2484e080 */ addiu $a0,$a0,-8064
|
||||
/* d604: 27a51478 */ addiu $a1,$sp,0x1478
|
||||
/* d608: 24060001 */ li $a2,0x1
|
||||
/* d60c: 0c011ffc */ jal 0x47ff0
|
||||
/* d610: afa31490 */ sw $v1,0x1490($sp)
|
||||
/* d614: 8fb91478 */ lw $t9,0x1478($sp)
|
||||
/* d618: 24010001 */ li $at,0x1
|
||||
/* d61c: 8fa31490 */ lw $v1,0x1490($sp)
|
||||
/* d620: 872b0000 */ lh $t3,0x0($t9)
|
||||
/* d624: 27b01458 */ addiu $s0,$sp,0x1458
|
||||
/* d628: 5561000d */ bnel $t3,$at,.PF0000d660
|
||||
/* d62c: 28610006 */ slti $at,$v1,0x6
|
||||
/* d630: 0c0027d9 */ jal 0x9f64
|
||||
/* d634: afa31490 */ sw $v1,0x1490($sp)
|
||||
/* d638: 3c048006 */ lui $a0,0x8006
|
||||
/* d63c: 3c058006 */ lui $a1,0x8006
|
||||
/* d640: 24a5d990 */ addiu $a1,$a1,-9840
|
||||
/* d644: 2484d968 */ addiu $a0,$a0,-9880
|
||||
/* d648: 00003025 */ move $a2,$zero
|
||||
/* d64c: 0c00bc7d */ jal 0x2f1f4
|
||||
/* d650: 02003825 */ move $a3,$s0
|
||||
/* d654: 8fa31490 */ lw $v1,0x1490($sp)
|
||||
/* d658: 24630001 */ addiu $v1,$v1,0x1
|
||||
/* d65c: 28610006 */ slti $at,$v1,0x6
|
||||
.PF0000d660:
|
||||
/* d660: 1420ffe6 */ bnez $at,.PF0000d5fc
|
||||
/* d664: 00000000 */ nop
|
||||
/* d668: 3c188000 */ lui $t8,0x8000
|
||||
/* d66c: 8f180300 */ lw $t8,0x300($t8)
|
||||
/* d670: 13000003 */ beqz $t8,.PF0000d680
|
||||
/* d674: 00000000 */ nop
|
||||
.PF0000d678:
|
||||
/* d678: 1000ffff */ b .PF0000d678
|
||||
/* d67c: 00000000 */ nop
|
||||
.PF0000d680:
|
||||
/* d680: 0c001c04 */ jal 0x7010
|
||||
/* d684: 00000000 */ nop
|
||||
/* d688: 0fc6a2ac */ jal 0xf1a8ab0
|
||||
/* d68c: 00000000 */ nop
|
||||
/* d690: 0fc59fbd */ jal 0xf167ef4
|
||||
/* d694: 00000000 */ nop
|
||||
/* d698: 0fc5dbe0 */ jal 0xf176f80
|
||||
/* d69c: 00000000 */ nop
|
||||
/* d6a0: 0fc5dbf0 */ jal 0xf176fc0
|
||||
/* d6a4: 00000000 */ nop
|
||||
/* d6a8: 3c0c8006 */ lui $t4,0x8006
|
||||
/* d6ac: 8d8cd650 */ lw $t4,-0x29b0($t4)
|
||||
/* d6b0: 11800003 */ beqz $t4,.PF0000d6c0
|
||||
/* d6b4: 3c047005 */ lui $a0,0x7005
|
||||
/* d6b8: 0c004b23 */ jal 0x12c8c
|
||||
/* d6bc: 24843740 */ addiu $a0,$a0,0x3740
|
||||
.PF0000d6c0:
|
||||
/* d6c0: 3c04800b */ lui $a0,0x800b
|
||||
/* d6c4: 0c012ab0 */ jal 0x4aac0
|
||||
/* d6c8: 2484d760 */ addiu $a0,$a0,-10400
|
||||
/* d6cc: 3c038009 */ lui $v1,0x8009
|
||||
/* d6d0: 8c631050 */ lw $v1,0x1050($v1)
|
||||
/* d6d4: 3c018000 */ lui $at,0x8000
|
||||
/* d6d8: 00412025 */ or $a0,$v0,$at
|
||||
/* d6dc: 0c0047de */ jal 0x11f78
|
||||
/* d6e0: 00642823 */ subu $a1,$v1,$a0
|
||||
/* d6e4: 0c0048ae */ jal 0x122b8
|
||||
/* d6e8: 24040008 */ li $a0,0x8
|
||||
/* d6ec: 0c0048ae */ jal 0x122b8
|
||||
/* d6f0: 24040006 */ li $a0,0x6
|
||||
/* d6f4: 0c00330e */ jal 0xcc38
|
||||
/* d6f8: 00000000 */ nop
|
||||
/* d6fc: 0fc02c88 */ jal 0xf00b220
|
||||
/* d700: 00000000 */ nop
|
||||
/* d704: 0fc5df83 */ jal 0xf177e0c
|
||||
/* d708: 00000000 */ nop
|
||||
/* d70c: 0c000d28 */ jal 0x34a0
|
||||
/* d710: 00000000 */ nop
|
||||
/* d714: 0fc02c68 */ jal 0xf00b1a0
|
||||
/* d718: 00000000 */ nop
|
||||
/* d71c: 0fc00000 */ jal 0xf000000
|
||||
/* d720: 00000000 */ nop
|
||||
/* d724: 0fc5a29e */ jal 0xf168a78
|
||||
/* d728: 00000000 */ nop
|
||||
/* d72c: 0fc41f77 */ jal 0xf107ddc
|
||||
/* d730: 00000000 */ nop
|
||||
/* d734: 0c0039c8 */ jal 0xe720
|
||||
/* d738: 00000000 */ nop
|
||||
/* d73c: 0fc54f94 */ jal 0xf153e50
|
||||
/* d740: 00000000 */ nop
|
||||
/* d744: 0c004d48 */ jal 0x13520
|
||||
/* d748: 00000000 */ nop
|
||||
/* d74c: 0fc4a0f8 */ jal 0xf1283e0
|
||||
/* d750: 00000000 */ nop
|
||||
/* d754: 0fc5b718 */ jal 0xf16dc60
|
||||
/* d758: 00000000 */ nop
|
||||
/* d75c: 0fc02c84 */ jal 0xf00b210
|
||||
/* d760: 00000000 */ nop
|
||||
/* d764: 0c00265c */ jal 0x9970
|
||||
/* d768: 00000000 */ nop
|
||||
/* d76c: 0fc0021c */ jal 0xf000870
|
||||
/* d770: 00000000 */ nop
|
||||
/* d774: 0fc00220 */ jal 0xf000880
|
||||
/* d778: 00000000 */ nop
|
||||
/* d77c: 0fc00238 */ jal 0xf0008e0
|
||||
/* d780: 00000000 */ nop
|
||||
/* d784: 0fc0023c */ jal 0xf0008f0
|
||||
/* d788: 00000000 */ nop
|
||||
/* d78c: 0fc00240 */ jal 0xf000900
|
||||
/* d790: 00000000 */ nop
|
||||
/* d794: 0fc02c64 */ jal 0xf00b190
|
||||
/* d798: 00000000 */ nop
|
||||
/* d79c: 0fc00244 */ jal 0xf000910
|
||||
/* d7a0: 00000000 */ nop
|
||||
/* d7a4: 0fc00210 */ jal 0xf000840
|
||||
/* d7a8: 00000000 */ nop
|
||||
/* d7ac: 0fc62468 */ jal 0xf1891a0
|
||||
/* d7b0: 00000000 */ nop
|
||||
/* d7b4: 0fc52bf6 */ jal 0xf14afd8
|
||||
/* d7b8: 00000000 */ nop
|
||||
/* d7bc: 0fc4652e */ jal 0xf1194b8
|
||||
/* d7c0: 00000000 */ nop
|
||||
/* d7c4: 0fc52c1b */ jal 0xf14b06c
|
||||
/* d7c8: 00000000 */ nop
|
||||
/* d7cc: 0c008b30 */ jal 0x22cc0
|
||||
/* d7d0: 00000000 */ nop
|
||||
/* d7d4: 0fc00040 */ jal 0xf000100
|
||||
/* d7d8: 00000000 */ nop
|
||||
/* d7dc: 0fc0004c */ jal 0xf000130
|
||||
/* d7e0: 00000000 */ nop
|
||||
/* d7e4: 0fc00214 */ jal 0xf000850
|
||||
/* d7e8: 00000000 */ nop
|
||||
/* d7ec: 0fc00218 */ jal 0xf000860
|
||||
/* d7f0: 00000000 */ nop
|
||||
/* d7f4: 0fc00024 */ jal 0xf000090
|
||||
/* d7f8: 00000000 */ nop
|
||||
/* d7fc: 0c0026c0 */ jal 0x9b00
|
||||
/* d800: 00000000 */ nop
|
||||
/* d804: 0c002779 */ jal 0x9de4
|
||||
/* d808: 24040001 */ li $a0,0x1
|
||||
/* d80c: 3c0f8006 */ lui $t7,0x8006
|
||||
/* d810: 8defd674 */ lw $t7,-0x298c($t7)
|
||||
/* d814: 3c018006 */ lui $at,0x8006
|
||||
/* d818: ac20d9b8 */ sw $zero,-0x2648($at)
|
||||
/* d81c: 51e00004 */ beqzl $t7,.PF0000d830
|
||||
/* d820: 8fbf002c */ lw $ra,0x2c($sp)
|
||||
/* d824: 0c011f84 */ jal 0x47e10
|
||||
/* d828: 00000000 */ nop
|
||||
/* d82c: 8fbf002c */ lw $ra,0x2c($sp)
|
||||
.PF0000d830:
|
||||
/* d830: 8fb00028 */ lw $s0,0x28($sp)
|
||||
/* d834: 27bd14e0 */ addiu $sp,$sp,0x14e0
|
||||
/* d838: 03e00008 */ jr $ra
|
||||
/* d83c: 00000000 */ nop
|
||||
);
|
||||
#else
|
||||
GLOBAL_ASM(
|
||||
glabel mainInit
|
||||
/* d520: 27bdeb28 */ addiu $sp,$sp,-5336
|
||||
@@ -582,6 +987,7 @@ glabel mainInit
|
||||
/* dae0: 03e00008 */ jr $ra
|
||||
/* dae4: 27bd14d8 */ addiu $sp,$sp,0x14d8
|
||||
);
|
||||
#endif
|
||||
|
||||
const char var70053a98[] = "-level_";
|
||||
const char var70053aa0[] = " -ml0 -me0 -mgfx100 -mvtx50 -mt700 -ma400";
|
||||
|
||||
+953
-2
File diff suppressed because it is too large
Load Diff
@@ -12,7 +12,7 @@ typedef struct {
|
||||
extern __osExceptionVector __osExceptionPreamble;
|
||||
extern u32 osAppNMIBuffer;
|
||||
|
||||
void osInitialize()
|
||||
void osInitialize(void)
|
||||
{
|
||||
u32 pifdata;
|
||||
|
||||
@@ -34,12 +34,15 @@ void osInitialize()
|
||||
func00005dc0();
|
||||
osMapTLBRdb();
|
||||
|
||||
#if !PAL
|
||||
osClockRate = osClockRate * 3 / 4;
|
||||
#endif
|
||||
|
||||
if (osResetType == RESET_TYPE_COLD_RESET) {
|
||||
bzero(&osAppNMIBuffer, 0x40);
|
||||
}
|
||||
|
||||
#if !PAL
|
||||
if (osTvType == OS_TV_PAL) {
|
||||
osViClock = VI_PAL_CLOCK;
|
||||
} else if (osTvType == OS_TV_MPAL) {
|
||||
@@ -47,6 +50,7 @@ void osInitialize()
|
||||
} else {
|
||||
osViClock = VI_NTSC_CLOCK;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (__osGetCause() & CAUSE_IP5) {
|
||||
while (1);
|
||||
@@ -56,3 +60,36 @@ void osInitialize()
|
||||
*(u32 *)PHYS_TO_K1(AI_DACRATE_REG) = 0x3fff;
|
||||
*(u32 *)PHYS_TO_K1(AI_BITRATE_REG) = 0xf;
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func00005dc0
|
||||
/* 5dc0: 3c028009 */ lui $v0,%hi(var800902a0)
|
||||
/* 5dc4: 244202a0 */ addiu $v0,$v0,%lo(var800902a0)
|
||||
/* 5dc8: 24030007 */ addiu $v1,$zero,0x7
|
||||
/* 5dcc: a0430004 */ sb $v1,0x4($v0)
|
||||
/* 5dd0: 3c0ea460 */ lui $t6,0xa460
|
||||
/* 5dd4: 8dcf0014 */ lw $t7,0x14($t6)
|
||||
/* 5dd8: 3c18a460 */ lui $t8,0xa460
|
||||
/* 5ddc: 3c08a460 */ lui $t0,0xa460
|
||||
/* 5de0: a04f0005 */ sb $t7,0x5($v0)
|
||||
/* 5de4: 8f190018 */ lw $t9,0x18($t8)
|
||||
/* 5de8: 3c0aa460 */ lui $t2,0xa460
|
||||
/* 5dec: 3c048009 */ lui $a0,%hi(var80090318)
|
||||
/* 5df0: a0590008 */ sb $t9,0x8($v0)
|
||||
/* 5df4: 8d09001c */ lw $t1,0x1c($t0)
|
||||
/* 5df8: 24840318 */ addiu $a0,$a0,%lo(var80090318)
|
||||
/* 5dfc: 3c0ca460 */ lui $t4,0xa460
|
||||
/* 5e00: a0490006 */ sb $t1,0x6($v0)
|
||||
/* 5e04: 8d4b0020 */ lw $t3,0x20($t2)
|
||||
/* 5e08: a0830004 */ sb $v1,0x4($a0)
|
||||
/* 5e0c: a04b0007 */ sb $t3,0x7($v0)
|
||||
/* 5e10: 8d8d0024 */ lw $t5,0x24($t4)
|
||||
/* 5e14: a08d0005 */ sb $t5,0x5($a0)
|
||||
/* 5e18: 8dcf0028 */ lw $t7,0x28($t6)
|
||||
/* 5e1c: a08f0008 */ sb $t7,0x8($a0)
|
||||
/* 5e20: 8f19002c */ lw $t9,0x2c($t8)
|
||||
/* 5e24: a0990006 */ sb $t9,0x6($a0)
|
||||
/* 5e28: 8d090030 */ lw $t1,0x30($t0)
|
||||
/* 5e2c: 03e00008 */ jr $ra
|
||||
/* 5e30: a0890007 */ sb $t1,0x7($a0)
|
||||
);
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
#include <libultra_internal.h>
|
||||
#include "data.h"
|
||||
#include "gvars/gvars.h"
|
||||
|
||||
typedef struct {
|
||||
unsigned int inst1;
|
||||
unsigned int inst2;
|
||||
unsigned int inst3;
|
||||
unsigned int inst4;
|
||||
} __osExceptionVector;
|
||||
|
||||
extern __osExceptionVector __osExceptionPreamble;
|
||||
extern u32 osAppNMIBuffer;
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel osInitialize2
|
||||
/* 517c0: 27bdffc8 */ addiu $sp,$sp,-56
|
||||
/* 517c4: afbf001c */ sw $ra,0x1c($sp)
|
||||
/* 517c8: 240e0001 */ li $t6,0x1
|
||||
/* 517cc: 3c018009 */ lui $at,0x8009
|
||||
/* 517d0: afb00018 */ sw $s0,0x18($sp)
|
||||
/* 517d4: afa00030 */ sw $zero,0x30($sp)
|
||||
/* 517d8: 0c012974 */ jal 0x4a5d0
|
||||
/* 517dc: ac2e0fb0 */ sw $t6,0xfb0($at)
|
||||
/* 517e0: 00408025 */ move $s0,$v0
|
||||
/* 517e4: 3c012000 */ lui $at,0x2000
|
||||
/* 517e8: 0c012970 */ jal 0x4a5c0
|
||||
/* 517ec: 02012025 */ or $a0,$s0,$at
|
||||
/* 517f0: 3c040100 */ lui $a0,0x100
|
||||
/* 517f4: 0c011eb8 */ jal 0x47ae0
|
||||
/* 517f8: 34840800 */ ori $a0,$a0,0x800
|
||||
/* 517fc: 3c041fc0 */ lui $a0,0x1fc0
|
||||
/* 51800: 348407fc */ ori $a0,$a0,0x7fc
|
||||
/* 51804: 0c012978 */ jal 0x4a5e0
|
||||
/* 51808: 27a50034 */ addiu $a1,$sp,0x34
|
||||
/* 5180c: 10400007 */ beqz $v0,.PF0005182c
|
||||
/* 51810: 00000000 */ nop
|
||||
.PF00051814:
|
||||
/* 51814: 3c041fc0 */ lui $a0,0x1fc0
|
||||
/* 51818: 348407fc */ ori $a0,$a0,0x7fc
|
||||
/* 5181c: 0c012978 */ jal 0x4a5e0
|
||||
/* 51820: 27a50034 */ addiu $a1,$sp,0x34
|
||||
/* 51824: 1440fffb */ bnez $v0,.PF00051814
|
||||
/* 51828: 00000000 */ nop
|
||||
.PF0005182c:
|
||||
/* 5182c: 8fa50034 */ lw $a1,0x34($sp)
|
||||
/* 51830: 3c041fc0 */ lui $a0,0x1fc0
|
||||
/* 51834: 348407fc */ ori $a0,$a0,0x7fc
|
||||
/* 51838: 34af0008 */ ori $t7,$a1,0x8
|
||||
/* 5183c: 0c01298c */ jal 0x4a630
|
||||
/* 51840: 01e02825 */ move $a1,$t7
|
||||
/* 51844: 10400009 */ beqz $v0,.PF0005186c
|
||||
/* 51848: 00000000 */ nop
|
||||
.PF0005184c:
|
||||
/* 5184c: 8fa50034 */ lw $a1,0x34($sp)
|
||||
/* 51850: 3c041fc0 */ lui $a0,0x1fc0
|
||||
/* 51854: 348407fc */ ori $a0,$a0,0x7fc
|
||||
/* 51858: 34b80008 */ ori $t8,$a1,0x8
|
||||
/* 5185c: 0c01298c */ jal 0x4a630
|
||||
/* 51860: 03002825 */ move $a1,$t8
|
||||
/* 51864: 1440fff9 */ bnez $v0,.PF0005184c
|
||||
/* 51868: 00000000 */ nop
|
||||
.PF0005186c:
|
||||
/* 5186c: 3c087000 */ lui $t0,0x7000
|
||||
/* 51870: 250834c0 */ addiu $t0,$t0,0x34c0
|
||||
/* 51874: 8d010000 */ lw $at,0x0($t0)
|
||||
/* 51878: 3c198000 */ lui $t9,0x8000
|
||||
/* 5187c: 3c0d7000 */ lui $t5,0x7000
|
||||
/* 51880: af210000 */ sw $at,0x0($t9)
|
||||
/* 51884: 8d0b0004 */ lw $t3,0x4($t0)
|
||||
/* 51888: 25ad34c0 */ addiu $t5,$t5,0x34c0
|
||||
/* 5188c: 3c0c8000 */ lui $t4,0x8000
|
||||
/* 51890: af2b0004 */ sw $t3,0x4($t9)
|
||||
/* 51894: 8d010008 */ lw $at,0x8($t0)
|
||||
/* 51898: 358c0080 */ ori $t4,$t4,0x80
|
||||
/* 5189c: 3c097000 */ lui $t1,0x7000
|
||||
/* 518a0: af210008 */ sw $at,0x8($t9)
|
||||
/* 518a4: 8d0b000c */ lw $t3,0xc($t0)
|
||||
/* 518a8: 252934c0 */ addiu $t1,$t1,0x34c0
|
||||
/* 518ac: 3c0a8000 */ lui $t2,0x8000
|
||||
/* 518b0: af2b000c */ sw $t3,0xc($t9)
|
||||
/* 518b4: 8da10000 */ lw $at,0x0($t5)
|
||||
/* 518b8: 354a0100 */ ori $t2,$t2,0x100
|
||||
/* 518bc: 3c0e7000 */ lui $t6,0x7000
|
||||
/* 518c0: ad810000 */ sw $at,0x0($t4)
|
||||
/* 518c4: 8db80004 */ lw $t8,0x4($t5)
|
||||
/* 518c8: 25ce34c0 */ addiu $t6,$t6,0x34c0
|
||||
/* 518cc: 3c0f8000 */ lui $t7,0x8000
|
||||
/* 518d0: ad980004 */ sw $t8,0x4($t4)
|
||||
/* 518d4: 8da10008 */ lw $at,0x8($t5)
|
||||
/* 518d8: 35ef0180 */ ori $t7,$t7,0x180
|
||||
/* 518dc: 3c048000 */ lui $a0,0x8000
|
||||
/* 518e0: ad810008 */ sw $at,0x8($t4)
|
||||
/* 518e4: 8db8000c */ lw $t8,0xc($t5)
|
||||
/* 518e8: 24050190 */ li $a1,0x190
|
||||
/* 518ec: ad98000c */ sw $t8,0xc($t4)
|
||||
/* 518f0: 8d210000 */ lw $at,0x0($t1)
|
||||
/* 518f4: ad410000 */ sw $at,0x0($t2)
|
||||
/* 518f8: 8d2b0004 */ lw $t3,0x4($t1)
|
||||
/* 518fc: ad4b0004 */ sw $t3,0x4($t2)
|
||||
/* 51900: 8d210008 */ lw $at,0x8($t1)
|
||||
/* 51904: ad410008 */ sw $at,0x8($t2)
|
||||
/* 51908: 8d2b000c */ lw $t3,0xc($t1)
|
||||
/* 5190c: ad4b000c */ sw $t3,0xc($t2)
|
||||
/* 51910: 8dc10000 */ lw $at,0x0($t6)
|
||||
/* 51914: ade10000 */ sw $at,0x0($t7)
|
||||
/* 51918: 8dd80004 */ lw $t8,0x4($t6)
|
||||
/* 5191c: adf80004 */ sw $t8,0x4($t7)
|
||||
/* 51920: 8dc10008 */ lw $at,0x8($t6)
|
||||
/* 51924: ade10008 */ sw $at,0x8($t7)
|
||||
/* 51928: 8dd8000c */ lw $t8,0xc($t6)
|
||||
/* 5192c: 0c0129a0 */ jal 0x4a680
|
||||
/* 51930: adf8000c */ sw $t8,0xc($t7)
|
||||
/* 51934: 3c048000 */ lui $a0,0x8000
|
||||
/* 51938: 0c011e94 */ jal 0x47a50
|
||||
/* 5193c: 24050190 */ li $a1,0x190
|
||||
/* 51940: 0c01469a */ jal 0x51a68
|
||||
/* 51944: 00000000 */ nop
|
||||
/* 51948: 0c014820 */ jal 0x52080
|
||||
/* 5194c: 00000000 */ nop
|
||||
/* 51950: 0c000bf0 */ jal 0x2fc0
|
||||
/* 51954: 00000000 */ nop
|
||||
/* 51958: 3c048006 */ lui $a0,0x8006
|
||||
/* 5195c: 3c058006 */ lui $a1,0x8006
|
||||
/* 51960: 8ca5cc14 */ lw $a1,-0x33ec($a1)
|
||||
/* 51964: 8c84cc10 */ lw $a0,-0x33f0($a0)
|
||||
/* 51968: 24060000 */ li $a2,0x0
|
||||
/* 5196c: 0c0136da */ jal 0x4db68
|
||||
/* 51970: 24070003 */ li $a3,0x3
|
||||
/* 51974: afa20020 */ sw $v0,0x20($sp)
|
||||
/* 51978: afa30024 */ sw $v1,0x24($sp)
|
||||
/* 5197c: 8fa50024 */ lw $a1,0x24($sp)
|
||||
/* 51980: 8fa40020 */ lw $a0,0x20($sp)
|
||||
/* 51984: 24060000 */ li $a2,0x0
|
||||
/* 51988: 0c01369a */ jal 0x4da68
|
||||
/* 5198c: 24070004 */ li $a3,0x4
|
||||
/* 51990: 3c088000 */ lui $t0,0x8000
|
||||
/* 51994: 8d08030c */ lw $t0,0x30c($t0)
|
||||
/* 51998: 3c018006 */ lui $at,0x8006
|
||||
/* 5199c: ac22cc10 */ sw $v0,-0x33f0($at)
|
||||
/* 519a0: 15000005 */ bnez $t0,.PF000519b8
|
||||
/* 519a4: ac23cc14 */ sw $v1,-0x33ec($at)
|
||||
/* 519a8: 3c048000 */ lui $a0,0x8000
|
||||
/* 519ac: 2484031c */ addiu $a0,$a0,0x31c
|
||||
/* 519b0: 0c0129c0 */ jal 0x4a700
|
||||
/* 519b4: 24050040 */ li $a1,0x40
|
||||
.PF000519b8:
|
||||
/* 519b8: 3c198000 */ lui $t9,0x8000
|
||||
/* 519bc: 8f390300 */ lw $t9,0x300($t9)
|
||||
/* 519c0: 17200006 */ bnez $t9,.PF000519dc
|
||||
/* 519c4: 00000000 */ nop
|
||||
/* 519c8: 3c0a02f5 */ lui $t2,0x2f5
|
||||
/* 519cc: 354ab2d2 */ ori $t2,$t2,0xb2d2
|
||||
/* 519d0: 3c018006 */ lui $at,0x8006
|
||||
/* 519d4: 1000000f */ b .PF00051a14
|
||||
/* 519d8: ac2a0fe8 */ sw $t2,0xfe8($at)
|
||||
.PF000519dc:
|
||||
/* 519dc: 3c098000 */ lui $t1,0x8000
|
||||
/* 519e0: 8d290300 */ lw $t1,0x300($t1)
|
||||
/* 519e4: 24010002 */ li $at,0x2
|
||||
/* 519e8: 15210006 */ bne $t1,$at,.PF00051a04
|
||||
/* 519ec: 00000000 */ nop
|
||||
/* 519f0: 3c0b02e6 */ lui $t3,0x2e6
|
||||
/* 519f4: 356b025c */ ori $t3,$t3,0x25c
|
||||
/* 519f8: 3c018006 */ lui $at,0x8006
|
||||
/* 519fc: 10000005 */ b .PF00051a14
|
||||
/* 51a00: ac2b0fe8 */ sw $t3,0xfe8($at)
|
||||
.PF00051a04:
|
||||
/* 51a04: 3c0d02e6 */ lui $t5,0x2e6
|
||||
/* 51a08: 35add354 */ ori $t5,$t5,0xd354
|
||||
/* 51a0c: 3c018006 */ lui $at,0x8006
|
||||
/* 51a10: ac2d0fe8 */ sw $t5,0xfe8($at)
|
||||
.PF00051a14:
|
||||
/* 51a14: 0c0129e8 */ jal 0x4a7a0
|
||||
/* 51a18: 00000000 */ nop
|
||||
/* 51a1c: 304c1000 */ andi $t4,$v0,0x1000
|
||||
/* 51a20: 11800003 */ beqz $t4,.PF00051a30
|
||||
/* 51a24: 00000000 */ nop
|
||||
.PF00051a28:
|
||||
/* 51a28: 1000ffff */ b .PF00051a28
|
||||
/* 51a2c: 00000000 */ nop
|
||||
.PF00051a30:
|
||||
/* 51a30: 240f0001 */ li $t7,0x1
|
||||
/* 51a34: 3c0ea450 */ lui $t6,0xa450
|
||||
/* 51a38: adcf0008 */ sw $t7,0x8($t6)
|
||||
/* 51a3c: 24183fff */ li $t8,0x3fff
|
||||
/* 51a40: 3c08a450 */ lui $t0,0xa450
|
||||
/* 51a44: ad180010 */ sw $t8,0x10($t0)
|
||||
/* 51a48: 2419000f */ li $t9,0xf
|
||||
/* 51a4c: 3c0aa450 */ lui $t2,0xa450
|
||||
/* 51a50: ad590014 */ sw $t9,0x14($t2)
|
||||
/* 51a54: 8fbf001c */ lw $ra,0x1c($sp)
|
||||
/* 51a58: 8fb00018 */ lw $s0,0x18($sp)
|
||||
/* 51a5c: 27bd0038 */ addiu $sp,$sp,0x38
|
||||
/* 51a60: 03e00008 */ jr $ra
|
||||
/* 51a64: 00000000 */ nop
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func00051a68pf
|
||||
/* 51a68: 240e0007 */ li $t6,0x7
|
||||
/* 51a6c: 3c018009 */ lui $at,0x8009
|
||||
/* 51a70: a02e07f4 */ sb $t6,0x7f4($at)
|
||||
/* 51a74: 3c0fa460 */ lui $t7,0xa460
|
||||
/* 51a78: 8df80014 */ lw $t8,0x14($t7)
|
||||
/* 51a7c: 3c018009 */ lui $at,0x8009
|
||||
/* 51a80: 3c19a460 */ lui $t9,0xa460
|
||||
/* 51a84: a03807f5 */ sb $t8,0x7f5($at)
|
||||
/* 51a88: 8f280018 */ lw $t0,0x18($t9)
|
||||
/* 51a8c: 3c018009 */ lui $at,0x8009
|
||||
/* 51a90: 3c09a460 */ lui $t1,0xa460
|
||||
/* 51a94: a02807f8 */ sb $t0,0x7f8($at)
|
||||
/* 51a98: 8d2a001c */ lw $t2,0x1c($t1)
|
||||
/* 51a9c: 3c018009 */ lui $at,0x8009
|
||||
/* 51aa0: 3c0ba460 */ lui $t3,0xa460
|
||||
/* 51aa4: a02a07f6 */ sb $t2,0x7f6($at)
|
||||
/* 51aa8: 8d6c0020 */ lw $t4,0x20($t3)
|
||||
/* 51aac: 3c018009 */ lui $at,0x8009
|
||||
/* 51ab0: 240d0007 */ li $t5,0x7
|
||||
/* 51ab4: a02c07f7 */ sb $t4,0x7f7($at)
|
||||
/* 51ab8: 3c018009 */ lui $at,0x8009
|
||||
/* 51abc: a02d086c */ sb $t5,0x86c($at)
|
||||
/* 51ac0: 3c0ea460 */ lui $t6,0xa460
|
||||
/* 51ac4: 8dcf0024 */ lw $t7,0x24($t6)
|
||||
/* 51ac8: 3c018009 */ lui $at,0x8009
|
||||
/* 51acc: 3c18a460 */ lui $t8,0xa460
|
||||
/* 51ad0: a02f086d */ sb $t7,0x86d($at)
|
||||
/* 51ad4: 8f190028 */ lw $t9,0x28($t8)
|
||||
/* 51ad8: 3c018009 */ lui $at,0x8009
|
||||
/* 51adc: 3c08a460 */ lui $t0,0xa460
|
||||
/* 51ae0: a0390870 */ sb $t9,0x870($at)
|
||||
/* 51ae4: 8d09002c */ lw $t1,0x2c($t0)
|
||||
/* 51ae8: 3c018009 */ lui $at,0x8009
|
||||
/* 51aec: 3c0aa460 */ lui $t2,0xa460
|
||||
/* 51af0: a029086e */ sb $t1,0x86e($at)
|
||||
/* 51af4: 8d4b0030 */ lw $t3,0x30($t2)
|
||||
/* 51af8: 3c018009 */ lui $at,0x8009
|
||||
/* 51afc: 03e00008 */ jr $ra
|
||||
/* 51b00: a02b086f */ sb $t3,0x86f($at)
|
||||
);
|
||||
@@ -0,0 +1,24 @@
|
||||
#include <libultra_internal.h>
|
||||
#include "data.h"
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel osUnmapTLBAll
|
||||
/* 52080: 40085000 */ mfc0 $t0,$10
|
||||
/* 52084: 2409001e */ li $t1,0x1e
|
||||
/* 52088: 3c0a8000 */ lui $t2,0x8000
|
||||
/* 5208c: 408a5000 */ mtc0 $t2,$10
|
||||
/* 52090: 40801000 */ mtc0 $zero,$2
|
||||
/* 52094: 40801800 */ mtc0 $zero,$3
|
||||
.PF00052098:
|
||||
/* 52098: 40890000 */ mtc0 $t1,$0
|
||||
/* 5209c: 00000000 */ nop
|
||||
/* 520a0: 42000002 */ tlbwi
|
||||
/* 520a4: 00000000 */ nop
|
||||
/* 520a8: 00000000 */ nop
|
||||
/* 520ac: 2129ffff */ addi $t1,$t1,-1
|
||||
/* 520b0: 0521fff9 */ bgez $t1,.PF00052098
|
||||
/* 520b4: 00000000 */ nop
|
||||
/* 520b8: 40885000 */ mtc0 $t0,$10
|
||||
/* 520bc: 03e00008 */ jr $ra
|
||||
/* 520c0: 00000000 */ nop
|
||||
);
|
||||
Reference in New Issue
Block a user