mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
File split and some decomp
This commit is contained in:
parent
318b373db9
commit
4cff1ee468
@ -1,14 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel cancel_message
|
||||
/* BC208 80125B08 8C8304FC */ lw $v1, 0x4fc($a0)
|
||||
/* BC20C 80125B0C 30620002 */ andi $v0, $v1, 2
|
||||
/* BC210 80125B10 10400004 */ beqz $v0, .L80125B24
|
||||
/* BC214 80125B14 34620001 */ ori $v0, $v1, 1
|
||||
/* BC218 80125B18 AC8204FC */ sw $v0, 0x4fc($a0)
|
||||
/* BC21C 80125B1C 03E00008 */ jr $ra
|
||||
/* BC220 80125B20 24020001 */ addiu $v0, $zero, 1
|
||||
.L80125B24:
|
||||
/* BC224 80125B24 03E00008 */ jr $ra
|
||||
/* BC228 80125B28 0000102D */ daddu $v0, $zero, $zero
|
@ -1,9 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel clear_character_set
|
||||
/* B9D60 80123660 2402FFFF */ addiu $v0, $zero, -1
|
||||
/* B9D64 80123664 3C018015 */ lui $at, %hi(D_80155C98)
|
||||
/* B9D68 80123668 A4225C98 */ sh $v0, %lo(D_80155C98)($at)
|
||||
/* B9D6C 8012366C 03E00008 */ jr $ra
|
||||
/* B9D70 80123670 00000000 */ nop
|
@ -1,9 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel close_message
|
||||
/* BC370 80125C70 8C8204FC */ lw $v0, 0x4fc($a0)
|
||||
/* BC374 80125C74 2403FFBF */ addiu $v1, $zero, -0x41
|
||||
/* BC378 80125C78 00431024 */ and $v0, $v0, $v1
|
||||
/* BC37C 80125C7C 03E00008 */ jr $ra
|
||||
/* BC380 80125C80 AC8204FC */ sw $v0, 0x4fc($a0)
|
@ -1,8 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel disable_entity_fog
|
||||
/* B9700 80123000 3C018015 */ lui $at, %hi(D_80154378)
|
||||
/* B9704 80123004 AC204378 */ sw $zero, %lo(D_80154378)($at)
|
||||
/* B9708 80123008 03E00008 */ jr $ra
|
||||
/* B970C 8012300C 00000000 */ nop
|
@ -1,9 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel enable_entity_fog
|
||||
/* B96EC 80122FEC 24020001 */ addiu $v0, $zero, 1
|
||||
/* B96F0 80122FF0 3C018015 */ lui $at, %hi(D_80154378)
|
||||
/* B96F4 80122FF4 AC224378 */ sw $v0, %lo(D_80154378)($at)
|
||||
/* B96F8 80122FF8 03E00008 */ jr $ra
|
||||
/* B96FC 80122FFC 00000000 */ nop
|
@ -1,21 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_80121140
|
||||
/* B7840 80121140 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* B7844 80121144 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* B7848 80121148 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* B784C 8012114C 0C019D28 */ jal guMtxIdentF
|
||||
/* B7850 80121150 0080802D */ daddu $s0, $a0, $zero
|
||||
/* B7854 80121154 3C013F80 */ lui $at, 0x3f80
|
||||
/* B7858 80121158 44810000 */ mtc1 $at, $f0
|
||||
/* B785C 8012115C 3C01BF80 */ lui $at, 0xbf80
|
||||
/* B7860 80121160 44811000 */ mtc1 $at, $f2
|
||||
/* B7864 80121164 E6000000 */ swc1 $f0, ($s0)
|
||||
/* B7868 80121168 E6000014 */ swc1 $f0, 0x14($s0)
|
||||
/* B786C 8012116C E6020028 */ swc1 $f2, 0x28($s0)
|
||||
/* B7870 80121170 E600003C */ swc1 $f0, 0x3c($s0)
|
||||
/* B7874 80121174 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* B7878 80121178 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* B787C 8012117C 03E00008 */ jr $ra
|
||||
/* B7880 80121180 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,12 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_80122DDC
|
||||
/* B94DC 80122DDC 2402F7FF */ addiu $v0, $zero, -0x801
|
||||
/* B94E0 80122DE0 00822024 */ and $a0, $a0, $v0
|
||||
/* B94E4 80122DE4 3C028015 */ lui $v0, %hi(D_80154370)
|
||||
/* B94E8 80122DE8 8C424370 */ lw $v0, %lo(D_80154370)($v0)
|
||||
/* B94EC 80122DEC 00042080 */ sll $a0, $a0, 2
|
||||
/* B94F0 80122DF0 00822021 */ addu $a0, $a0, $v0
|
||||
/* B94F4 80122DF4 03E00008 */ jr $ra
|
||||
/* B94F8 80122DF8 8C820000 */ lw $v0, ($a0)
|
@ -1,14 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_801341E8
|
||||
/* CA8E8 801341E8 3C028015 */ lui $v0, %hi(D_801565A8)
|
||||
/* CA8EC 801341EC 844265A8 */ lh $v0, %lo(D_801565A8)($v0)
|
||||
/* CA8F0 801341F0 3C038015 */ lui $v1, %hi(D_801565A4)
|
||||
/* CA8F4 801341F4 846365A4 */ lh $v1, %lo(D_801565A4)($v1)
|
||||
/* CA8F8 801341F8 10600002 */ beqz $v1, .L80134204
|
||||
/* CA8FC 801341FC 0002102B */ sltu $v0, $zero, $v0
|
||||
/* CA900 80134200 24020001 */ addiu $v0, $zero, 1
|
||||
.L80134204:
|
||||
/* CA904 80134204 03E00008 */ jr $ra
|
||||
/* CA908 80134208 00000000 */ nop
|
@ -1,8 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_80134230
|
||||
/* CA930 80134230 3C018015 */ lui $at, %hi(D_80155D88)
|
||||
/* CA934 80134234 AC245D88 */ sw $a0, %lo(D_80155D88)($at)
|
||||
/* CA938 80134238 03E00008 */ jr $ra
|
||||
/* CA93C 8013423C 00000000 */ nop
|
@ -1,8 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_80134240
|
||||
/* CA940 80134240 3C028015 */ lui $v0, %hi(D_80155D88)
|
||||
/* CA944 80134244 8C425D88 */ lw $v0, %lo(D_80155D88)($v0)
|
||||
/* CA948 80134248 03E00008 */ jr $ra
|
||||
/* CA94C 8013424C 00000000 */ nop
|
@ -1,13 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel get_dynamic_entity
|
||||
/* B9D3C 8012363C 2402F7FF */ addiu $v0, $zero, -0x801
|
||||
/* B9D40 80123640 00822024 */ and $a0, $a0, $v0
|
||||
/* B9D44 80123644 3C028015 */ lui $v0, %hi(gCurrentDynamicEntityListPtr)
|
||||
/* B9D48 80123648 8C424420 */ lw $v0, %lo(gCurrentDynamicEntityListPtr)($v0)
|
||||
/* B9D4C 8012364C 00042080 */ sll $a0, $a0, 2
|
||||
/* B9D50 80123650 00822021 */ addu $a0, $a0, $v0
|
||||
/* B9D54 80123654 03E00008 */ jr $ra
|
||||
/* B9D58 80123658 8C820000 */ lw $v0, ($a0)
|
||||
/* B9D5C 8012365C 00000000 */ nop
|
@ -1,17 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel get_entity_fog_color
|
||||
/* B977C 8012307C 3C028015 */ lui $v0, %hi(D_8015437C)
|
||||
/* B9780 80123080 8C42437C */ lw $v0, %lo(D_8015437C)($v0)
|
||||
/* B9784 80123084 AC820000 */ sw $v0, ($a0)
|
||||
/* B9788 80123088 3C028015 */ lui $v0, %hi(D_80154380)
|
||||
/* B978C 8012308C 8C424380 */ lw $v0, %lo(D_80154380)($v0)
|
||||
/* B9790 80123090 ACA20000 */ sw $v0, ($a1)
|
||||
/* B9794 80123094 3C028015 */ lui $v0, %hi(D_80154384)
|
||||
/* B9798 80123098 8C424384 */ lw $v0, %lo(D_80154384)($v0)
|
||||
/* B979C 8012309C ACC20000 */ sw $v0, ($a2)
|
||||
/* B97A0 801230A0 3C028015 */ lui $v0, %hi(D_80154388)
|
||||
/* B97A4 801230A4 8C424388 */ lw $v0, %lo(D_80154388)($v0)
|
||||
/* B97A8 801230A8 03E00008 */ jr $ra
|
||||
/* B97AC 801230AC ACE20000 */ sw $v0, ($a3)
|
@ -1,11 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel get_entity_fog_distance
|
||||
/* B9760 80123060 3C028015 */ lui $v0, %hi(D_8015438C)
|
||||
/* B9764 80123064 8C42438C */ lw $v0, %lo(D_8015438C)($v0)
|
||||
/* B9768 80123068 AC820000 */ sw $v0, ($a0)
|
||||
/* B976C 8012306C 3C028015 */ lui $v0, %hi(D_80154390)
|
||||
/* B9770 80123070 8C424390 */ lw $v0, %lo(D_80154390)($v0)
|
||||
/* B9774 80123074 03E00008 */ jr $ra
|
||||
/* B9778 80123078 ACA20000 */ sw $v0, ($a1)
|
@ -1,10 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel get_item_entity
|
||||
/* C7658 80130F58 3C028015 */ lui $v0, %hi(D_801565A0)
|
||||
/* C765C 80130F5C 8C4265A0 */ lw $v0, %lo(D_801565A0)($v0)
|
||||
/* C7660 80130F60 00042080 */ sll $a0, $a0, 2
|
||||
/* C7664 80130F64 00822021 */ addu $a0, $a0, $v0
|
||||
/* C7668 80130F68 03E00008 */ jr $ra
|
||||
/* C766C 80130F6C 8C820000 */ lw $v0, ($a0)
|
@ -1,22 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel init_dynamic_entity_list
|
||||
/* B9814 80123114 3C028007 */ lui $v0, %hi(gGameStatusPtr)
|
||||
/* B9818 80123118 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
|
||||
/* B981C 8012311C 80420070 */ lb $v0, 0x70($v0)
|
||||
/* B9820 80123120 14400007 */ bnez $v0, .L80123140
|
||||
/* B9824 80123124 00000000 */ nop
|
||||
/* B9828 80123128 3C028015 */ lui $v0, %hi(gWorldDynamicEntityList)
|
||||
/* B982C 8012312C 244243A0 */ addiu $v0, $v0, %lo(gWorldDynamicEntityList)
|
||||
/* B9830 80123130 3C018015 */ lui $at, %hi(gCurrentDynamicEntityListPtr)
|
||||
/* B9834 80123134 AC224420 */ sw $v0, %lo(gCurrentDynamicEntityListPtr)($at)
|
||||
/* B9838 80123138 03E00008 */ jr $ra
|
||||
/* B983C 8012313C 00000000 */ nop
|
||||
.L80123140:
|
||||
/* B9840 80123140 3C028015 */ lui $v0, %hi(gBattleDynamicEntityList)
|
||||
/* B9844 80123144 244243E0 */ addiu $v0, $v0, %lo(gBattleDynamicEntityList)
|
||||
/* B9848 80123148 3C018015 */ lui $at, %hi(gCurrentDynamicEntityListPtr)
|
||||
/* B984C 8012314C AC224420 */ sw $v0, %lo(gCurrentDynamicEntityListPtr)($at)
|
||||
/* B9850 80123150 03E00008 */ jr $ra
|
||||
/* B9854 80123154 00000000 */ nop
|
@ -1,8 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel is_entity_fog_enabled
|
||||
/* B9750 80123050 3C028015 */ lui $v0, %hi(D_80154378)
|
||||
/* B9754 80123054 8C424378 */ lw $v0, %lo(D_80154378)($v0)
|
||||
/* B9758 80123058 03E00008 */ jr $ra
|
||||
/* B975C 8012305C 00000000 */ nop
|
@ -1,11 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel load_string
|
||||
/* BC000 80125900 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* BC004 80125904 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* BC008 80125908 0C049647 */ jal _load_string
|
||||
/* BC00C 8012590C 0000302D */ daddu $a2, $zero, $zero
|
||||
/* BC010 80125910 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* BC014 80125914 03E00008 */ jr $ra
|
||||
/* BC018 80125918 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,14 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel set_entity_fog_color
|
||||
/* B9728 80123028 3C018015 */ lui $at, %hi(D_8015437C)
|
||||
/* B972C 8012302C AC24437C */ sw $a0, %lo(D_8015437C)($at)
|
||||
/* B9730 80123030 3C018015 */ lui $at, %hi(D_80154380)
|
||||
/* B9734 80123034 AC254380 */ sw $a1, %lo(D_80154380)($at)
|
||||
/* B9738 80123038 3C018015 */ lui $at, %hi(D_80154384)
|
||||
/* B973C 8012303C AC264384 */ sw $a2, %lo(D_80154384)($at)
|
||||
/* B9740 80123040 3C018015 */ lui $at, %hi(D_80154388)
|
||||
/* B9744 80123044 AC274388 */ sw $a3, %lo(D_80154388)($at)
|
||||
/* B9748 80123048 03E00008 */ jr $ra
|
||||
/* B974C 8012304C 00000000 */ nop
|
@ -1,10 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel set_entity_fog_dist
|
||||
/* B9710 80123010 3C018015 */ lui $at, %hi(D_8015438C)
|
||||
/* B9714 80123014 AC24438C */ sw $a0, %lo(D_8015438C)($at)
|
||||
/* B9718 80123018 3C018015 */ lui $at, %hi(D_80154390)
|
||||
/* B971C 8012301C AC254390 */ sw $a1, %lo(D_80154390)($at)
|
||||
/* B9720 80123020 03E00008 */ jr $ra
|
||||
/* B9724 80123024 00000000 */ nop
|
@ -1,13 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel set_item_entity_position
|
||||
/* CA90C 8013420C 3C028015 */ lui $v0, %hi(D_801565A0)
|
||||
/* CA910 80134210 8C4265A0 */ lw $v0, %lo(D_801565A0)($v0)
|
||||
/* CA914 80134214 00042080 */ sll $a0, $a0, 2
|
||||
/* CA918 80134218 00822021 */ addu $a0, $a0, $v0
|
||||
/* CA91C 8013421C 8C820000 */ lw $v0, ($a0)
|
||||
/* CA920 80134220 AC450008 */ sw $a1, 8($v0)
|
||||
/* CA924 80134224 AC46000C */ sw $a2, 0xc($v0)
|
||||
/* CA928 80134228 03E00008 */ jr $ra
|
||||
/* CA92C 8013422C AC470010 */ sw $a3, 0x10($v0)
|
@ -1,8 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel set_message_images
|
||||
/* BC22C 80125B2C 3C018015 */ lui $at, %hi(D_801512F4)
|
||||
/* BC230 80125B30 AC2412F4 */ sw $a0, %lo(D_801512F4)($at)
|
||||
/* BC234 80125B34 03E00008 */ jr $ra
|
||||
/* BC238 80125B38 00000000 */ nop
|
@ -33,7 +33,8 @@ INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DD8FC);
|
||||
|
||||
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DDAE4);
|
||||
|
||||
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DDC44, s32 arg0, f32* arg1, f32* arg2, f32* arg3, f32 arg4, f32 arg5, f32 arg6, f32 arg7);
|
||||
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DDC44, s32 arg0, f32* arg1, f32* arg2, f32* arg3, f32 arg4, f32 arg5,
|
||||
f32 arg6, f32 arg7);
|
||||
|
||||
INCLUDE_ASM(s32, "code_759b0_len_61b0", func_800DDCEC);
|
||||
|
||||
@ -94,7 +95,8 @@ void func_800DFC74(void) {
|
||||
mem_clear(playerStatus, sizeof(PlayerStatus));
|
||||
playerStatus->flags = 1;
|
||||
func_800E205C();
|
||||
playerStatus->shadowID = create_shadow_type(0, playerStatus->position.x, playerStatus->position.y, playerStatus->position.z);
|
||||
playerStatus->shadowID = create_shadow_type(0, playerStatus->position.x, playerStatus->position.y,
|
||||
playerStatus->position.z);
|
||||
func_800E6B68();
|
||||
func_800E0B14();
|
||||
func_800E069C();
|
||||
@ -104,7 +106,8 @@ void func_800DFC74(void) {
|
||||
}
|
||||
|
||||
s32 func_800DFCF4(void) {
|
||||
if (D_8010EBB0[0] == 1 && (D_8010EBB0[3] == 6 || D_8010EBB0[3] == 9 || D_8010EBB0[3] == 7 || D_8010EBB0[3] == 4 || D_8010EBB0[3] == 8)) {
|
||||
if (D_8010EBB0[0] == 1 && (D_8010EBB0[3] == 6 || D_8010EBB0[3] == 9 || D_8010EBB0[3] == 7 || D_8010EBB0[3] == 4
|
||||
|| D_8010EBB0[3] == 8)) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user