mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 20:12:30 +01:00
Merge pull request #21 from Rainchus/master
Match functions in code_ebd0_len_6a0.c & code_dc470_len_14c0.c
This commit is contained in:
commit
b57252efde
@ -1,19 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_80145DF8
|
|
||||||
/* 0DC4F8 80145DF8 3C028007 */ lui $v0, 0x8007
|
|
||||||
/* 0DC4FC 80145DFC 8C42419C */ lw $v0, 0x419c($v0)
|
|
||||||
/* 0DC500 80145E00 94430148 */ lhu $v1, 0x148($v0)
|
|
||||||
/* 0DC504 80145E04 240400B4 */ addiu $a0, $zero, 0xb4
|
|
||||||
/* 0DC508 80145E08 3C018016 */ lui $at, 0x8016
|
|
||||||
/* 0DC50C 80145E0C AC2095A0 */ sw $zero, -0x6a60($at)
|
|
||||||
/* 0DC510 80145E10 3C018015 */ lui $at, 0x8015
|
|
||||||
/* 0DC514 80145E14 A020F12F */ sb $zero, -0xed1($at)
|
|
||||||
/* 0DC518 80145E18 A444015C */ sh $a0, 0x15c($v0)
|
|
||||||
/* 0DC51C 80145E1C 306300F0 */ andi $v1, $v1, 0xf0
|
|
||||||
/* 0DC520 80145E20 03E00008 */ jr $ra
|
|
||||||
/* 0DC524 80145E24 A4430148 */ sh $v1, 0x148($v0)
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_80145E98
|
|
||||||
/* 0DC598 80145E98 3082FFFF */ andi $v0, $a0, 0xffff
|
|
||||||
/* 0DC59C 80145E9C 00A22823 */ subu $a1, $a1, $v0
|
|
||||||
/* 0DC5A0 80145EA0 00A60018 */ mult $a1, $a2
|
|
||||||
/* 0DC5A4 80145EA4 00001012 */ mflo $v0
|
|
||||||
/* 0DC5A8 80145EA8 04420001 */ bltzl $v0, .L80145EB0
|
|
||||||
/* 0DC5AC 80145EAC 244200FF */ addiu $v0, $v0, 0xff
|
|
||||||
.L80145EB0:
|
|
||||||
/* 0DC5B0 80145EB0 00021203 */ sra $v0, $v0, 8
|
|
||||||
/* 0DC5B4 80145EB4 00821021 */ addu $v0, $a0, $v0
|
|
||||||
/* 0DC5B8 80145EB8 03E00008 */ jr $ra
|
|
||||||
/* 0DC5BC 80145EBC 3042FFFF */ andi $v0, $v0, 0xffff
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel read_background_size
|
|
||||||
/* 0DC528 80145E28 3C038007 */ lui $v1, 0x8007
|
|
||||||
/* 0DC52C 80145E2C 8C63419C */ lw $v1, 0x419c($v1)
|
|
||||||
/* 0DC530 80145E30 9482000C */ lhu $v0, 0xc($a0)
|
|
||||||
/* 0DC534 80145E34 A462014E */ sh $v0, 0x14e($v1)
|
|
||||||
/* 0DC538 80145E38 9482000E */ lhu $v0, 0xe($a0)
|
|
||||||
/* 0DC53C 80145E3C A4620150 */ sh $v0, 0x150($v1)
|
|
||||||
/* 0DC540 80145E40 94820008 */ lhu $v0, 8($a0)
|
|
||||||
/* 0DC544 80145E44 A462014A */ sh $v0, 0x14a($v1)
|
|
||||||
/* 0DC548 80145E48 9482000A */ lhu $v0, 0xa($a0)
|
|
||||||
/* 0DC54C 80145E4C A462014C */ sh $v0, 0x14c($v1)
|
|
||||||
/* 0DC550 80145E50 8C820000 */ lw $v0, ($a0)
|
|
||||||
/* 0DC554 80145E54 AC620154 */ sw $v0, 0x154($v1)
|
|
||||||
/* 0DC558 80145E58 94620148 */ lhu $v0, 0x148($v1)
|
|
||||||
/* 0DC55C 80145E5C 8C840004 */ lw $a0, 4($a0)
|
|
||||||
/* 0DC560 80145E60 34420001 */ ori $v0, $v0, 1
|
|
||||||
/* 0DC564 80145E64 A4620148 */ sh $v0, 0x148($v1)
|
|
||||||
/* 0DC568 80145E68 03E00008 */ jr $ra
|
|
||||||
/* 0DC56C 80145E6C AC640158 */ sw $a0, 0x158($v1)
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel set_background_size
|
|
||||||
/* 0DC570 80145E70 3C028007 */ lui $v0, 0x8007
|
|
||||||
/* 0DC574 80145E74 8C42419C */ lw $v0, 0x419c($v0)
|
|
||||||
/* 0DC578 80145E78 94430148 */ lhu $v1, 0x148($v0)
|
|
||||||
/* 0DC57C 80145E7C A444014E */ sh $a0, 0x14e($v0)
|
|
||||||
/* 0DC580 80145E80 A4450150 */ sh $a1, 0x150($v0)
|
|
||||||
/* 0DC584 80145E84 A446014A */ sh $a2, 0x14a($v0)
|
|
||||||
/* 0DC588 80145E88 A447014C */ sh $a3, 0x14c($v0)
|
|
||||||
/* 0DC58C 80145E8C 3063FFFE */ andi $v1, $v1, 0xfffe
|
|
||||||
/* 0DC590 80145E90 03E00008 */ jr $ra
|
|
||||||
/* 0DC594 80145E94 A4430148 */ sh $v1, 0x148($v0)
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_800337D0
|
|
||||||
/* 00EBD0 800337D0 3C028007 */ lui $v0, 0x8007
|
|
||||||
/* 00EBD4 800337D4 8C42419C */ lw $v0, 0x419c($v0)
|
|
||||||
/* 00EBD8 800337D8 03E00008 */ jr $ra
|
|
||||||
/* 00EBDC 800337DC A44400B6 */ sh $a0, 0xb6($v0)
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_800337E0
|
|
||||||
/* 00EBE0 800337E0 3C028007 */ lui $v0, 0x8007
|
|
||||||
/* 00EBE4 800337E4 8C42419C */ lw $v0, 0x419c($v0)
|
|
||||||
/* 00EBE8 800337E8 A44400BC */ sh $a0, 0xbc($v0)
|
|
||||||
/* 00EBEC 800337EC A44400BA */ sh $a0, 0xba($v0)
|
|
||||||
/* 00EBF0 800337F0 03E00008 */ jr $ra
|
|
||||||
/* 00EBF4 800337F4 A44400B8 */ sh $a0, 0xb8($v0)
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_800337F8
|
|
||||||
/* 00EBF8 800337F8 3C058007 */ lui $a1, 0x8007
|
|
||||||
/* 00EBFC 800337FC 8CA5419C */ lw $a1, 0x419c($a1)
|
|
||||||
/* 00EC00 80033800 84A200B6 */ lh $v0, 0xb6($a1)
|
|
||||||
/* 00EC04 80033804 94A300B6 */ lhu $v1, 0xb6($a1)
|
|
||||||
/* 00EC08 80033808 14400003 */ bnez $v0, .L80033818
|
|
||||||
/* 00EC0C 8003380C 00641023 */ subu $v0, $v1, $a0
|
|
||||||
/* 00EC10 80033810 03E00008 */ jr $ra
|
|
||||||
/* 00EC14 80033814 24020001 */ addiu $v0, $zero, 1
|
|
||||||
|
|
||||||
.L80033818:
|
|
||||||
/* 00EC18 80033818 A4A200B6 */ sh $v0, 0xb6($a1)
|
|
||||||
/* 00EC1C 8003381C 00021400 */ sll $v0, $v0, 0x10
|
|
||||||
/* 00EC20 80033820 04420001 */ bltzl $v0, .L80033828
|
|
||||||
/* 00EC24 80033824 A4A000B6 */ sh $zero, 0xb6($a1)
|
|
||||||
.L80033828:
|
|
||||||
/* 00EC28 80033828 03E00008 */ jr $ra
|
|
||||||
/* 00EC2C 8003382C 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_80033830
|
|
||||||
/* 00EC30 80033830 3C058007 */ lui $a1, 0x8007
|
|
||||||
/* 00EC34 80033834 8CA5419C */ lw $a1, 0x419c($a1)
|
|
||||||
/* 00EC38 80033838 240600FF */ addiu $a2, $zero, 0xff
|
|
||||||
/* 00EC3C 8003383C 84A200B6 */ lh $v0, 0xb6($a1)
|
|
||||||
/* 00EC40 80033840 94A300B6 */ lhu $v1, 0xb6($a1)
|
|
||||||
/* 00EC44 80033844 14460003 */ bne $v0, $a2, .L80033854
|
|
||||||
/* 00EC48 80033848 00641021 */ addu $v0, $v1, $a0
|
|
||||||
/* 00EC4C 8003384C 03E00008 */ jr $ra
|
|
||||||
/* 00EC50 80033850 24020001 */ addiu $v0, $zero, 1
|
|
||||||
|
|
||||||
.L80033854:
|
|
||||||
/* 00EC54 80033854 A4A200B6 */ sh $v0, 0xb6($a1)
|
|
||||||
/* 00EC58 80033858 00021400 */ sll $v0, $v0, 0x10
|
|
||||||
/* 00EC5C 8003385C 00021403 */ sra $v0, $v0, 0x10
|
|
||||||
/* 00EC60 80033860 28420100 */ slti $v0, $v0, 0x100
|
|
||||||
/* 00EC64 80033864 50400001 */ beql $v0, $zero, .L8003386C
|
|
||||||
/* 00EC68 80033868 A4A600B6 */ sh $a2, 0xb6($a1)
|
|
||||||
.L8003386C:
|
|
||||||
/* 00EC6C 8003386C 03E00008 */ jr $ra
|
|
||||||
/* 00EC70 80033870 0000102D */ daddu $v0, $zero, $zero
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel func_80033874
|
|
||||||
/* 00EC74 80033874 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 00EC78 80033878 AFB00010 */ sw $s0, 0x10($sp)
|
|
||||||
/* 00EC7C 8003387C 3C108007 */ lui $s0, 0x8007
|
|
||||||
/* 00EC80 80033880 2610419C */ addiu $s0, $s0, 0x419c
|
|
||||||
/* 00EC84 80033884 AFBF0014 */ sw $ra, 0x14($sp)
|
|
||||||
/* 00EC88 80033888 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 00EC8C 8003388C 844200B6 */ lh $v0, 0xb6($v0)
|
|
||||||
/* 00EC90 80033890 44820000 */ mtc1 $v0, $f0
|
|
||||||
/* 00EC94 80033894 00000000 */ nop
|
|
||||||
/* 00EC98 80033898 46800020 */ cvt.s.w $f0, $f0
|
|
||||||
/* 00EC9C 8003389C 44050000 */ mfc1 $a1, $f0
|
|
||||||
/* 00ECA0 800338A0 0C04DF62 */ jal func_80137D88
|
|
||||||
/* 00ECA4 800338A4 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 00ECA8 800338A8 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 00ECAC 800338AC 904500B9 */ lbu $a1, 0xb9($v0)
|
|
||||||
/* 00ECB0 800338B0 904600BB */ lbu $a2, 0xbb($v0)
|
|
||||||
/* 00ECB4 800338B4 904700BD */ lbu $a3, 0xbd($v0)
|
|
||||||
/* 00ECB8 800338B8 0C04DF84 */ jal func_80137E10
|
|
||||||
/* 00ECBC 800338BC 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 00ECC0 800338C0 8FBF0014 */ lw $ra, 0x14($sp)
|
|
||||||
/* 00ECC4 800338C4 8FB00010 */ lw $s0, 0x10($sp)
|
|
||||||
/* 00ECC8 800338C8 03E00008 */ jr $ra
|
|
||||||
/* 00ECCC 800338CC 27BD0018 */ addiu $sp, $sp, 0x18
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
.set noat # allow manual use of $at
|
||||||
|
.set noreorder # don't insert nops after branches
|
||||||
|
|
||||||
|
.include "include/macro.inc"
|
||||||
|
glabel func_80033B54
|
||||||
|
/* 00EF54 80033B54 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||||
|
/* 00EF58 80033B58 AFBF0010 */ sw $ra, 0x10($sp)
|
||||||
|
/* 00EF5C 80033B5C 0C00F96C */ jal func_8003E5B0
|
||||||
|
/* 00EF60 80033B60 00000000 */ nop
|
||||||
|
/* 00EF64 80033B64 3C02800A */ lui $v0, 0x800a
|
||||||
|
/* 00EF68 80033B68 80420900 */ lb $v0, 0x900($v0)
|
||||||
|
/* 00EF6C 80033B6C 04410003 */ bgez $v0, .L80033B7C
|
||||||
|
/* 00EF70 80033B70 00000000 */ nop
|
||||||
|
/* 00EF74 80033B74 0C08FA9F */ jal draw_main_battle_ui
|
||||||
|
/* 00EF78 80033B78 00000000 */ nop
|
||||||
|
.L80033B7C:
|
||||||
|
/* 00EF7C 80033B7C 8FBF0010 */ lw $ra, 0x10($sp)
|
||||||
|
/* 00EF80 80033B80 03E00008 */ jr $ra
|
||||||
|
/* 00EF84 80033B84 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -0,0 +1,19 @@
|
|||||||
|
.set noat # allow manual use of $at
|
||||||
|
.set noreorder # don't insert nops after branches
|
||||||
|
|
||||||
|
.include "include/macro.inc"
|
||||||
|
glabel func_80033B88
|
||||||
|
/* 00EF88 80033B88 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||||
|
/* 00EF8C 80033B8C 3C02800A */ lui $v0, 0x800a
|
||||||
|
/* 00EF90 80033B90 2442A650 */ addiu $v0, $v0, -0x59b0
|
||||||
|
/* 00EF94 80033B94 AFBF0010 */ sw $ra, 0x10($sp)
|
||||||
|
/* 00EF98 80033B98 8C430000 */ lw $v1, ($v0)
|
||||||
|
/* 00EF9C 80033B9C 34630008 */ ori $v1, $v1, 8
|
||||||
|
/* 00EFA0 80033BA0 0C018028 */ jal nuContRmbForceStop
|
||||||
|
/* 00EFA4 80033BA4 AC430000 */ sw $v1, ($v0)
|
||||||
|
/* 00EFA8 80033BA8 8FBF0010 */ lw $ra, 0x10($sp)
|
||||||
|
/* 00EFAC 80033BAC 24020005 */ addiu $v0, $zero, 5
|
||||||
|
/* 00EFB0 80033BB0 3C01800A */ lui $at, 0x800a
|
||||||
|
/* 00EFB4 80033BB4 A0220900 */ sb $v0, 0x900($at)
|
||||||
|
/* 00EFB8 80033BB8 03E00008 */ jr $ra
|
||||||
|
/* 00EFBC 80033BBC 27BD0018 */ addiu $sp, $sp, 0x18
|
184
papermario/asm/nonmatchings/code_ebd0_len_6a0/func_80033BC0.s
Normal file
184
papermario/asm/nonmatchings/code_ebd0_len_6a0/func_80033BC0.s
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
.set noat # allow manual use of $at
|
||||||
|
.set noreorder # don't insert nops after branches
|
||||||
|
|
||||||
|
.include "include/macro.inc"
|
||||||
|
|
||||||
|
glabel func_80033BC0
|
||||||
|
/* 00EFC0 80033BC0 27BDFFD0 */ addiu $sp, $sp, -0x30
|
||||||
|
/* 00EFC4 80033BC4 AFB30024 */ sw $s3, 0x24($sp)
|
||||||
|
/* 00EFC8 80033BC8 3C138011 */ lui $s3, 0x8011
|
||||||
|
/* 00EFCC 80033BCC 2673EFC8 */ addiu $s3, $s3, -0x1038
|
||||||
|
/* 00EFD0 80033BD0 3C06800A */ lui $a2, 0x800a
|
||||||
|
/* 00EFD4 80033BD4 24C60900 */ addiu $a2, $a2, 0x900
|
||||||
|
/* 00EFD8 80033BD8 AFBF0028 */ sw $ra, 0x28($sp)
|
||||||
|
/* 00EFDC 80033BDC AFB20020 */ sw $s2, 0x20($sp)
|
||||||
|
/* 00EFE0 80033BE0 AFB1001C */ sw $s1, 0x1c($sp)
|
||||||
|
/* 00EFE4 80033BE4 AFB00018 */ sw $s0, 0x18($sp)
|
||||||
|
/* 00EFE8 80033BE8 80C20000 */ lb $v0, ($a2)
|
||||||
|
/* 00EFEC 80033BEC 90C30000 */ lbu $v1, ($a2)
|
||||||
|
/* 00EFF0 80033BF0 04400095 */ bltz $v0, .L80033E48
|
||||||
|
/* 00EFF4 80033BF4 2462FFFF */ addiu $v0, $v1, -1
|
||||||
|
/* 00EFF8 80033BF8 A0C20000 */ sb $v0, ($a2)
|
||||||
|
/* 00EFFC 80033BFC 00021600 */ sll $v0, $v0, 0x18
|
||||||
|
/* 00F000 80033C00 14400091 */ bnez $v0, .L80033E48
|
||||||
|
/* 00F004 80033C04 24050003 */ addiu $a1, $zero, 3
|
||||||
|
/* 00F008 80033C08 3C048007 */ lui $a0, 0x8007
|
||||||
|
/* 00F00C 80033C0C 248478A0 */ addiu $a0, $a0, 0x78a0
|
||||||
|
/* 00F010 80033C10 2402FFFF */ addiu $v0, $zero, -1
|
||||||
|
/* 00F014 80033C14 0C017CBC */ jal nuGfxSetCfb
|
||||||
|
/* 00F018 80033C18 A0C20000 */ sb $v0, ($a2)
|
||||||
|
/* 00F01C 80033C1C 3C04800A */ lui $a0, 0x800a
|
||||||
|
/* 00F020 80033C20 2484A650 */ addiu $a0, $a0, -0x59b0
|
||||||
|
/* 00F024 80033C24 8C820000 */ lw $v0, ($a0)
|
||||||
|
/* 00F028 80033C28 2403FFF7 */ addiu $v1, $zero, -9
|
||||||
|
/* 00F02C 80033C2C 00431024 */ and $v0, $v0, $v1
|
||||||
|
/* 00F030 80033C30 0C018030 */ jal nuContRmbForceStopEnd
|
||||||
|
/* 00F034 80033C34 AC820000 */ sw $v0, ($a0)
|
||||||
|
/* 00F038 80033C38 0C05260E */ jal func_80149838
|
||||||
|
/* 00F03C 80033C3C 00000000 */ nop
|
||||||
|
/* 00F040 80033C40 0C016AFA */ jal get_current_map_header
|
||||||
|
/* 00F044 80033C44 00000000 */ nop
|
||||||
|
/* 00F048 80033C48 3C108007 */ lui $s0, 0x8007
|
||||||
|
/* 00F04C 80033C4C 2610419C */ addiu $s0, $s0, 0x419c
|
||||||
|
/* 00F050 80033C50 8E040000 */ lw $a0, ($s0)
|
||||||
|
/* 00F054 80033C54 0040902D */ daddu $s2, $v0, $zero
|
||||||
|
/* 00F058 80033C58 84830086 */ lh $v1, 0x86($a0)
|
||||||
|
/* 00F05C 80033C5C 8482008C */ lh $v0, 0x8c($a0)
|
||||||
|
/* 00F060 80033C60 00031900 */ sll $v1, $v1, 4
|
||||||
|
/* 00F064 80033C64 3C018009 */ lui $at, 0x8009
|
||||||
|
/* 00F068 80033C68 00230821 */ addu $at, $at, $v1
|
||||||
|
/* 00F06C 80033C6C 8C2334F4 */ lw $v1, 0x34f4($at)
|
||||||
|
/* 00F070 80033C70 00021140 */ sll $v0, $v0, 5
|
||||||
|
/* 00F074 80033C74 0C0902AA */ jal func_80240AA8
|
||||||
|
/* 00F078 80033C78 00628821 */ addu $s1, $v1, $v0
|
||||||
|
/* 00F07C 80033C7C 8E020000 */ lw $v0, ($s0)
|
||||||
|
/* 00F080 80033C80 0C016BE1 */ jal func_8005AF84
|
||||||
|
/* 00F084 80033C84 A0400070 */ sb $zero, 0x70($v0)
|
||||||
|
/* 00F088 80033C88 0C00AB37 */ jal func_8002ACDC
|
||||||
|
/* 00F08C 80033C8C 00000000 */ nop
|
||||||
|
/* 00F090 80033C90 0C05259C */ jal func_80149670
|
||||||
|
/* 00F094 80033C94 24040001 */ addiu $a0, $zero, 1
|
||||||
|
/* 00F098 80033C98 8E030000 */ lw $v1, ($s0)
|
||||||
|
/* 00F09C 80033C9C 9062007E */ lbu $v0, 0x7e($v1)
|
||||||
|
/* 00F0A0 80033CA0 304200FE */ andi $v0, $v0, 0xfe
|
||||||
|
/* 00F0A4 80033CA4 0C00AB28 */ jal battle_heap_create
|
||||||
|
/* 00F0A8 80033CA8 A062007E */ sb $v0, 0x7e($v1)
|
||||||
|
/* 00F0AC 80033CAC 8E020000 */ lw $v0, ($s0)
|
||||||
|
/* 00F0B0 80033CB0 0C0B763E */ jal func_802DD8F8
|
||||||
|
/* 00F0B4 80033CB4 80440084 */ lb $a0, 0x84($v0)
|
||||||
|
/* 00F0B8 80033CB8 0C0457FA */ jal init_model_data
|
||||||
|
/* 00F0BC 80033CBC 00000000 */ nop
|
||||||
|
/* 00F0C0 80033CC0 0C05203C */ jal func_801480F0
|
||||||
|
/* 00F0C4 80033CC4 00000000 */ nop
|
||||||
|
/* 00F0C8 80033CC8 0C048316 */ jal func_80120C58
|
||||||
|
/* 00F0CC 80033CCC 00000000 */ nop
|
||||||
|
/* 00F0D0 80033CD0 0C0478C4 */ jal func_8011E310
|
||||||
|
/* 00F0D4 80033CD4 00000000 */ nop
|
||||||
|
/* 00F0D8 80033CD8 0C048C45 */ jal func_80123114
|
||||||
|
/* 00F0DC 80033CDC 00000000 */ nop
|
||||||
|
/* 00F0E0 80033CE0 0000202D */ daddu $a0, $zero, $zero
|
||||||
|
/* 00F0E4 80033CE4 0C0514BA */ jal func_801452E8
|
||||||
|
/* 00F0E8 80033CE8 0080282D */ daddu $a1, $a0, $zero
|
||||||
|
/* 00F0EC 80033CEC 0C0504C0 */ jal init_menu_icon_list
|
||||||
|
/* 00F0F0 80033CF0 00000000 */ nop
|
||||||
|
/* 00F0F4 80033CF4 0C04C433 */ jal init_item_entity_list
|
||||||
|
/* 00F0F8 80033CF8 00000000 */ nop
|
||||||
|
/* 00F0FC 80033CFC 0C0B0CBB */ jal init_script_list
|
||||||
|
/* 00F100 80033D00 00000000 */ nop
|
||||||
|
/* 00F104 80033D04 0C00E14B */ jal init_npc_list
|
||||||
|
/* 00F108 80033D08 00000000 */ nop
|
||||||
|
/* 00F10C 80033D0C 0C044396 */ jal func_80110E58
|
||||||
|
/* 00F110 80033D10 00000000 */ nop
|
||||||
|
/* 00F114 80033D14 0C0515CA */ jal init_trigger_list
|
||||||
|
/* 00F118 80033D18 00000000 */ nop
|
||||||
|
/* 00F11C 80033D1C 8E020000 */ lw $v0, ($s0)
|
||||||
|
/* 00F120 80033D20 904200AA */ lbu $v0, 0xaa($v0)
|
||||||
|
/* 00F124 80033D24 30420001 */ andi $v0, $v0, 1
|
||||||
|
/* 00F128 80033D28 10400008 */ beqz $v0, .L80033D4C
|
||||||
|
/* 00F12C 80033D2C 00000000 */ nop
|
||||||
|
/* 00F130 80033D30 0C00EC6C */ jal func_8003B1B0
|
||||||
|
/* 00F134 80033D34 00000000 */ nop
|
||||||
|
/* 00F138 80033D38 3C02800A */ lui $v0, 0x800a
|
||||||
|
/* 00F13C 80033D3C 8C420904 */ lw $v0, 0x904($v0)
|
||||||
|
/* 00F140 80033D40 24040011 */ addiu $a0, $zero, 0x11
|
||||||
|
/* 00F144 80033D44 0800CF90 */ j .L80033E40
|
||||||
|
/* 00F148 80033D48 AE620004 */ sw $v0, 4($s3)
|
||||||
|
|
||||||
|
.L80033D4C:
|
||||||
|
/* 00F14C 80033D4C 3C028011 */ lui $v0, 0x8011
|
||||||
|
/* 00F150 80033D50 2442F290 */ addiu $v0, $v0, -0xd70
|
||||||
|
/* 00F154 80033D54 0C03AC80 */ jal func_800EB200
|
||||||
|
/* 00F158 80033D58 80440012 */ lb $a0, 0x12($v0)
|
||||||
|
/* 00F15C 80033D5C 0C0169B0 */ jal load_map_script_lib
|
||||||
|
/* 00F160 80033D60 00000000 */ nop
|
||||||
|
/* 00F164 80033D64 3C04800E */ lui $a0, 0x800e
|
||||||
|
/* 00F168 80033D68 24849230 */ addiu $a0, $a0, -0x6dd0
|
||||||
|
/* 00F16C 80033D6C 0C016B3A */ jal load_asset_by_name
|
||||||
|
/* 00F170 80033D70 27A50010 */ addiu $a1, $sp, 0x10
|
||||||
|
/* 00F174 80033D74 0040802D */ daddu $s0, $v0, $zero
|
||||||
|
/* 00F178 80033D78 3C058021 */ lui $a1, 0x8021
|
||||||
|
/* 00F17C 80033D7C 24A50000 */ addiu $a1, $a1, 0
|
||||||
|
/* 00F180 80033D80 0C01BB7C */ jal decode_yay0
|
||||||
|
/* 00F184 80033D84 0200202D */ daddu $a0, $s0, $zero
|
||||||
|
/* 00F188 80033D88 0C00AB1E */ jal general_heap_free
|
||||||
|
/* 00F18C 80033D8C 0200202D */ daddu $a0, $s0, $zero
|
||||||
|
/* 00F190 80033D90 0C016BE5 */ jal initialize_collision
|
||||||
|
/* 00F194 80033D94 00000000 */ nop
|
||||||
|
/* 00F198 80033D98 0C016C16 */ jal load_collision
|
||||||
|
/* 00F19C 80033D9C 00000000 */ nop
|
||||||
|
/* 00F1A0 80033DA0 8E240008 */ lw $a0, 8($s1)
|
||||||
|
/* 00F1A4 80033DA4 10800004 */ beqz $a0, .L80033DB8
|
||||||
|
/* 00F1A8 80033DA8 00000000 */ nop
|
||||||
|
/* 00F1AC 80033DAC 8E25000C */ lw $a1, 0xc($s1)
|
||||||
|
/* 00F1B0 80033DB0 0C00A5CF */ jal dma_copy
|
||||||
|
/* 00F1B4 80033DB4 8E260010 */ lw $a2, 0x10($s1)
|
||||||
|
.L80033DB8:
|
||||||
|
/* 00F1B8 80033DB8 0C05175C */ jal load_map_bg
|
||||||
|
/* 00F1BC 80033DBC 8E240014 */ lw $a0, 0x14($s1)
|
||||||
|
/* 00F1C0 80033DC0 8E440038 */ lw $a0, 0x38($s2)
|
||||||
|
/* 00F1C4 80033DC4 50800005 */ beql $a0, $zero, .L80033DDC
|
||||||
|
/* 00F1C8 80033DC8 24040128 */ addiu $a0, $zero, 0x128
|
||||||
|
/* 00F1CC 80033DCC 0C05178A */ jal read_background_size
|
||||||
|
/* 00F1D0 80033DD0 00000000 */ nop
|
||||||
|
/* 00F1D4 80033DD4 0800CF7B */ j .L80033DEC
|
||||||
|
/* 00F1D8 80033DD8 00000000 */ nop
|
||||||
|
|
||||||
|
.L80033DDC:
|
||||||
|
/* 00F1DC 80033DDC 240500C8 */ addiu $a1, $zero, 0xc8
|
||||||
|
/* 00F1E0 80033DE0 2406000C */ addiu $a2, $zero, 0xc
|
||||||
|
/* 00F1E4 80033DE4 0C05179C */ jal set_background_size
|
||||||
|
/* 00F1E8 80033DE8 24070014 */ addiu $a3, $zero, 0x14
|
||||||
|
.L80033DEC:
|
||||||
|
/* 00F1EC 80033DEC 3C04800B */ lui $a0, 0x800b
|
||||||
|
/* 00F1F0 80033DF0 24840CF0 */ addiu $a0, $a0, 0xcf0
|
||||||
|
/* 00F1F4 80033DF4 0C016B74 */ jal get_asset_offset
|
||||||
|
/* 00F1F8 80033DF8 27A50010 */ addiu $a1, $sp, 0x10
|
||||||
|
/* 00F1FC 80033DFC 8E440000 */ lw $a0, ($s2)
|
||||||
|
/* 00F200 80033E00 8FA60010 */ lw $a2, 0x10($sp)
|
||||||
|
/* 00F204 80033E04 0C045709 */ jal load_model_textures
|
||||||
|
/* 00F208 80033E08 0040282D */ daddu $a1, $v0, $zero
|
||||||
|
/* 00F20C 80033E0C 0C04584B */ jal calculate_model_sizes
|
||||||
|
/* 00F210 80033E10 00000000 */ nop
|
||||||
|
/* 00F214 80033E14 0C00EC6C */ jal func_8003B1B0
|
||||||
|
/* 00F218 80033E18 00000000 */ nop
|
||||||
|
/* 00F21C 80033E1C 3C02800A */ lui $v0, 0x800a
|
||||||
|
/* 00F220 80033E20 8C420904 */ lw $v0, 0x904($v0)
|
||||||
|
/* 00F224 80033E24 3C04800A */ lui $a0, 0x800a
|
||||||
|
/* 00F228 80033E28 8C840908 */ lw $a0, 0x908($a0)
|
||||||
|
/* 00F22C 80033E2C 10800003 */ beqz $a0, .L80033E3C
|
||||||
|
/* 00F230 80033E30 AE620004 */ sw $v0, 4($s3)
|
||||||
|
/* 00F234 80033E34 0C009C22 */ jal func_80027088
|
||||||
|
/* 00F238 80033E38 00000000 */ nop
|
||||||
|
.L80033E3C:
|
||||||
|
/* 00F23C 80033E3C 24040004 */ addiu $a0, $zero, 4
|
||||||
|
.L80033E40:
|
||||||
|
/* 00F240 80033E40 0C00CD3C */ jal set_game_mode
|
||||||
|
/* 00F244 80033E44 00000000 */ nop
|
||||||
|
.L80033E48:
|
||||||
|
/* 00F248 80033E48 8FBF0028 */ lw $ra, 0x28($sp)
|
||||||
|
/* 00F24C 80033E4C 8FB30024 */ lw $s3, 0x24($sp)
|
||||||
|
/* 00F250 80033E50 8FB20020 */ lw $s2, 0x20($sp)
|
||||||
|
/* 00F254 80033E54 8FB1001C */ lw $s1, 0x1c($sp)
|
||||||
|
/* 00F258 80033E58 8FB00018 */ lw $s0, 0x18($sp)
|
||||||
|
/* 00F25C 80033E5C 03E00008 */ jr $ra
|
||||||
|
/* 00F260 80033E60 27BD0030 */ addiu $sp, $sp, 0x30
|
@ -0,0 +1,9 @@
|
|||||||
|
.set noat # allow manual use of $at
|
||||||
|
.set noreorder # don't insert nops after branches
|
||||||
|
|
||||||
|
.include "include/macro.inc"
|
||||||
|
glabel func_80033E64
|
||||||
|
/* 00F264 80033E64 03E00008 */ jr $ra
|
||||||
|
/* 00F268 80033E68 00000000 */ nop
|
||||||
|
|
||||||
|
/* 00F26C 80033E6C 00000000 */ nop
|
@ -1,12 +0,0 @@
|
|||||||
.set noat # allow manual use of $at
|
|
||||||
.set noreorder # don't insert nops after branches
|
|
||||||
|
|
||||||
.include "include/macro.inc"
|
|
||||||
|
|
||||||
glabel start_battle_countdown
|
|
||||||
/* 00ECD0 800338D0 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 00ECD4 800338D4 3C01800A */ lui $at, 0x800a
|
|
||||||
/* 00ECD8 800338D8 A0220900 */ sb $v0, 0x900($at)
|
|
||||||
/* 00ECDC 800338DC 03E00008 */ jr $ra
|
|
||||||
/* 00ECE0 800338E0 00000000 */ nop
|
|
||||||
|
|
@ -167,219 +167,3 @@ glabel step_battle
|
|||||||
/* 00EF48 80033B48 8FB00010 */ lw $s0, 0x10($sp)
|
/* 00EF48 80033B48 8FB00010 */ lw $s0, 0x10($sp)
|
||||||
/* 00EF4C 80033B4C 03E00008 */ jr $ra
|
/* 00EF4C 80033B4C 03E00008 */ jr $ra
|
||||||
/* 00EF50 80033B50 27BD0018 */ addiu $sp, $sp, 0x18
|
/* 00EF50 80033B50 27BD0018 */ addiu $sp, $sp, 0x18
|
||||||
|
|
||||||
/* 00EF54 80033B54 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 00EF58 80033B58 AFBF0010 */ sw $ra, 0x10($sp)
|
|
||||||
/* 00EF5C 80033B5C 0C00F96C */ jal func_8003E5B0
|
|
||||||
/* 00EF60 80033B60 00000000 */ nop
|
|
||||||
/* 00EF64 80033B64 3C02800A */ lui $v0, 0x800a
|
|
||||||
/* 00EF68 80033B68 80420900 */ lb $v0, 0x900($v0)
|
|
||||||
/* 00EF6C 80033B6C 04410003 */ bgez $v0, .L80033B7C
|
|
||||||
/* 00EF70 80033B70 00000000 */ nop
|
|
||||||
/* 00EF74 80033B74 0C08FA9F */ jal draw_main_battle_ui
|
|
||||||
/* 00EF78 80033B78 00000000 */ nop
|
|
||||||
.L80033B7C:
|
|
||||||
/* 00EF7C 80033B7C 8FBF0010 */ lw $ra, 0x10($sp)
|
|
||||||
/* 00EF80 80033B80 03E00008 */ jr $ra
|
|
||||||
/* 00EF84 80033B84 27BD0018 */ addiu $sp, $sp, 0x18
|
|
||||||
|
|
||||||
/* 00EF88 80033B88 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
||||||
/* 00EF8C 80033B8C 3C02800A */ lui $v0, 0x800a
|
|
||||||
/* 00EF90 80033B90 2442A650 */ addiu $v0, $v0, -0x59b0
|
|
||||||
/* 00EF94 80033B94 AFBF0010 */ sw $ra, 0x10($sp)
|
|
||||||
/* 00EF98 80033B98 8C430000 */ lw $v1, ($v0)
|
|
||||||
/* 00EF9C 80033B9C 34630008 */ ori $v1, $v1, 8
|
|
||||||
/* 00EFA0 80033BA0 0C018028 */ jal nuContRmbForceStop
|
|
||||||
/* 00EFA4 80033BA4 AC430000 */ sw $v1, ($v0)
|
|
||||||
/* 00EFA8 80033BA8 8FBF0010 */ lw $ra, 0x10($sp)
|
|
||||||
/* 00EFAC 80033BAC 24020005 */ addiu $v0, $zero, 5
|
|
||||||
/* 00EFB0 80033BB0 3C01800A */ lui $at, 0x800a
|
|
||||||
/* 00EFB4 80033BB4 A0220900 */ sb $v0, 0x900($at)
|
|
||||||
/* 00EFB8 80033BB8 03E00008 */ jr $ra
|
|
||||||
/* 00EFBC 80033BBC 27BD0018 */ addiu $sp, $sp, 0x18
|
|
||||||
|
|
||||||
/* 00EFC0 80033BC0 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
||||||
/* 00EFC4 80033BC4 AFB30024 */ sw $s3, 0x24($sp)
|
|
||||||
/* 00EFC8 80033BC8 3C138011 */ lui $s3, 0x8011
|
|
||||||
/* 00EFCC 80033BCC 2673EFC8 */ addiu $s3, $s3, -0x1038
|
|
||||||
/* 00EFD0 80033BD0 3C06800A */ lui $a2, 0x800a
|
|
||||||
/* 00EFD4 80033BD4 24C60900 */ addiu $a2, $a2, 0x900
|
|
||||||
/* 00EFD8 80033BD8 AFBF0028 */ sw $ra, 0x28($sp)
|
|
||||||
/* 00EFDC 80033BDC AFB20020 */ sw $s2, 0x20($sp)
|
|
||||||
/* 00EFE0 80033BE0 AFB1001C */ sw $s1, 0x1c($sp)
|
|
||||||
/* 00EFE4 80033BE4 AFB00018 */ sw $s0, 0x18($sp)
|
|
||||||
/* 00EFE8 80033BE8 80C20000 */ lb $v0, ($a2)
|
|
||||||
/* 00EFEC 80033BEC 90C30000 */ lbu $v1, ($a2)
|
|
||||||
/* 00EFF0 80033BF0 04400095 */ bltz $v0, .L80033E48
|
|
||||||
/* 00EFF4 80033BF4 2462FFFF */ addiu $v0, $v1, -1
|
|
||||||
/* 00EFF8 80033BF8 A0C20000 */ sb $v0, ($a2)
|
|
||||||
/* 00EFFC 80033BFC 00021600 */ sll $v0, $v0, 0x18
|
|
||||||
/* 00F000 80033C00 14400091 */ bnez $v0, .L80033E48
|
|
||||||
/* 00F004 80033C04 24050003 */ addiu $a1, $zero, 3
|
|
||||||
/* 00F008 80033C08 3C048007 */ lui $a0, 0x8007
|
|
||||||
/* 00F00C 80033C0C 248478A0 */ addiu $a0, $a0, 0x78a0
|
|
||||||
/* 00F010 80033C10 2402FFFF */ addiu $v0, $zero, -1
|
|
||||||
/* 00F014 80033C14 0C017CBC */ jal nuGfxSetCfb
|
|
||||||
/* 00F018 80033C18 A0C20000 */ sb $v0, ($a2)
|
|
||||||
/* 00F01C 80033C1C 3C04800A */ lui $a0, 0x800a
|
|
||||||
/* 00F020 80033C20 2484A650 */ addiu $a0, $a0, -0x59b0
|
|
||||||
/* 00F024 80033C24 8C820000 */ lw $v0, ($a0)
|
|
||||||
/* 00F028 80033C28 2403FFF7 */ addiu $v1, $zero, -9
|
|
||||||
/* 00F02C 80033C2C 00431024 */ and $v0, $v0, $v1
|
|
||||||
/* 00F030 80033C30 0C018030 */ jal nuContRmbForceStopEnd
|
|
||||||
/* 00F034 80033C34 AC820000 */ sw $v0, ($a0)
|
|
||||||
/* 00F038 80033C38 0C05260E */ jal func_80149838
|
|
||||||
/* 00F03C 80033C3C 00000000 */ nop
|
|
||||||
/* 00F040 80033C40 0C016AFA */ jal get_current_map_header
|
|
||||||
/* 00F044 80033C44 00000000 */ nop
|
|
||||||
/* 00F048 80033C48 3C108007 */ lui $s0, 0x8007
|
|
||||||
/* 00F04C 80033C4C 2610419C */ addiu $s0, $s0, 0x419c
|
|
||||||
/* 00F050 80033C50 8E040000 */ lw $a0, ($s0)
|
|
||||||
/* 00F054 80033C54 0040902D */ daddu $s2, $v0, $zero
|
|
||||||
/* 00F058 80033C58 84830086 */ lh $v1, 0x86($a0)
|
|
||||||
/* 00F05C 80033C5C 8482008C */ lh $v0, 0x8c($a0)
|
|
||||||
/* 00F060 80033C60 00031900 */ sll $v1, $v1, 4
|
|
||||||
/* 00F064 80033C64 3C018009 */ lui $at, 0x8009
|
|
||||||
/* 00F068 80033C68 00230821 */ addu $at, $at, $v1
|
|
||||||
/* 00F06C 80033C6C 8C2334F4 */ lw $v1, 0x34f4($at)
|
|
||||||
/* 00F070 80033C70 00021140 */ sll $v0, $v0, 5
|
|
||||||
/* 00F074 80033C74 0C0902AA */ jal func_80240AA8
|
|
||||||
/* 00F078 80033C78 00628821 */ addu $s1, $v1, $v0
|
|
||||||
/* 00F07C 80033C7C 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 00F080 80033C80 0C016BE1 */ jal func_8005AF84
|
|
||||||
/* 00F084 80033C84 A0400070 */ sb $zero, 0x70($v0)
|
|
||||||
/* 00F088 80033C88 0C00AB37 */ jal func_8002ACDC
|
|
||||||
/* 00F08C 80033C8C 00000000 */ nop
|
|
||||||
/* 00F090 80033C90 0C05259C */ jal func_80149670
|
|
||||||
/* 00F094 80033C94 24040001 */ addiu $a0, $zero, 1
|
|
||||||
/* 00F098 80033C98 8E030000 */ lw $v1, ($s0)
|
|
||||||
/* 00F09C 80033C9C 9062007E */ lbu $v0, 0x7e($v1)
|
|
||||||
/* 00F0A0 80033CA0 304200FE */ andi $v0, $v0, 0xfe
|
|
||||||
/* 00F0A4 80033CA4 0C00AB28 */ jal battle_heap_create
|
|
||||||
/* 00F0A8 80033CA8 A062007E */ sb $v0, 0x7e($v1)
|
|
||||||
/* 00F0AC 80033CAC 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 00F0B0 80033CB0 0C0B763E */ jal func_802DD8F8
|
|
||||||
/* 00F0B4 80033CB4 80440084 */ lb $a0, 0x84($v0)
|
|
||||||
/* 00F0B8 80033CB8 0C0457FA */ jal init_model_data
|
|
||||||
/* 00F0BC 80033CBC 00000000 */ nop
|
|
||||||
/* 00F0C0 80033CC0 0C05203C */ jal func_801480F0
|
|
||||||
/* 00F0C4 80033CC4 00000000 */ nop
|
|
||||||
/* 00F0C8 80033CC8 0C048316 */ jal func_80120C58
|
|
||||||
/* 00F0CC 80033CCC 00000000 */ nop
|
|
||||||
/* 00F0D0 80033CD0 0C0478C4 */ jal func_8011E310
|
|
||||||
/* 00F0D4 80033CD4 00000000 */ nop
|
|
||||||
/* 00F0D8 80033CD8 0C048C45 */ jal func_80123114
|
|
||||||
/* 00F0DC 80033CDC 00000000 */ nop
|
|
||||||
/* 00F0E0 80033CE0 0000202D */ daddu $a0, $zero, $zero
|
|
||||||
/* 00F0E4 80033CE4 0C0514BA */ jal func_801452E8
|
|
||||||
/* 00F0E8 80033CE8 0080282D */ daddu $a1, $a0, $zero
|
|
||||||
/* 00F0EC 80033CEC 0C0504C0 */ jal init_menu_icon_list
|
|
||||||
/* 00F0F0 80033CF0 00000000 */ nop
|
|
||||||
/* 00F0F4 80033CF4 0C04C433 */ jal init_item_entity_list
|
|
||||||
/* 00F0F8 80033CF8 00000000 */ nop
|
|
||||||
/* 00F0FC 80033CFC 0C0B0CBB */ jal init_script_list
|
|
||||||
/* 00F100 80033D00 00000000 */ nop
|
|
||||||
/* 00F104 80033D04 0C00E14B */ jal init_npc_list
|
|
||||||
/* 00F108 80033D08 00000000 */ nop
|
|
||||||
/* 00F10C 80033D0C 0C044396 */ jal func_80110E58
|
|
||||||
/* 00F110 80033D10 00000000 */ nop
|
|
||||||
/* 00F114 80033D14 0C0515CA */ jal init_trigger_list
|
|
||||||
/* 00F118 80033D18 00000000 */ nop
|
|
||||||
/* 00F11C 80033D1C 8E020000 */ lw $v0, ($s0)
|
|
||||||
/* 00F120 80033D20 904200AA */ lbu $v0, 0xaa($v0)
|
|
||||||
/* 00F124 80033D24 30420001 */ andi $v0, $v0, 1
|
|
||||||
/* 00F128 80033D28 10400008 */ beqz $v0, .L80033D4C
|
|
||||||
/* 00F12C 80033D2C 00000000 */ nop
|
|
||||||
/* 00F130 80033D30 0C00EC6C */ jal func_8003B1B0
|
|
||||||
/* 00F134 80033D34 00000000 */ nop
|
|
||||||
/* 00F138 80033D38 3C02800A */ lui $v0, 0x800a
|
|
||||||
/* 00F13C 80033D3C 8C420904 */ lw $v0, 0x904($v0)
|
|
||||||
/* 00F140 80033D40 24040011 */ addiu $a0, $zero, 0x11
|
|
||||||
/* 00F144 80033D44 0800CF90 */ j .L80033E40
|
|
||||||
/* 00F148 80033D48 AE620004 */ sw $v0, 4($s3)
|
|
||||||
|
|
||||||
.L80033D4C:
|
|
||||||
/* 00F14C 80033D4C 3C028011 */ lui $v0, 0x8011
|
|
||||||
/* 00F150 80033D50 2442F290 */ addiu $v0, $v0, -0xd70
|
|
||||||
/* 00F154 80033D54 0C03AC80 */ jal func_800EB200
|
|
||||||
/* 00F158 80033D58 80440012 */ lb $a0, 0x12($v0)
|
|
||||||
/* 00F15C 80033D5C 0C0169B0 */ jal load_map_script_lib
|
|
||||||
/* 00F160 80033D60 00000000 */ nop
|
|
||||||
/* 00F164 80033D64 3C04800E */ lui $a0, 0x800e
|
|
||||||
/* 00F168 80033D68 24849230 */ addiu $a0, $a0, -0x6dd0
|
|
||||||
/* 00F16C 80033D6C 0C016B3A */ jal load_asset_by_name
|
|
||||||
/* 00F170 80033D70 27A50010 */ addiu $a1, $sp, 0x10
|
|
||||||
/* 00F174 80033D74 0040802D */ daddu $s0, $v0, $zero
|
|
||||||
/* 00F178 80033D78 3C058021 */ lui $a1, 0x8021
|
|
||||||
/* 00F17C 80033D7C 24A50000 */ addiu $a1, $a1, 0
|
|
||||||
/* 00F180 80033D80 0C01BB7C */ jal decode_yay0
|
|
||||||
/* 00F184 80033D84 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 00F188 80033D88 0C00AB1E */ jal general_heap_free
|
|
||||||
/* 00F18C 80033D8C 0200202D */ daddu $a0, $s0, $zero
|
|
||||||
/* 00F190 80033D90 0C016BE5 */ jal initialize_collision
|
|
||||||
/* 00F194 80033D94 00000000 */ nop
|
|
||||||
/* 00F198 80033D98 0C016C16 */ jal load_collision
|
|
||||||
/* 00F19C 80033D9C 00000000 */ nop
|
|
||||||
/* 00F1A0 80033DA0 8E240008 */ lw $a0, 8($s1)
|
|
||||||
/* 00F1A4 80033DA4 10800004 */ beqz $a0, .L80033DB8
|
|
||||||
/* 00F1A8 80033DA8 00000000 */ nop
|
|
||||||
/* 00F1AC 80033DAC 8E25000C */ lw $a1, 0xc($s1)
|
|
||||||
/* 00F1B0 80033DB0 0C00A5CF */ jal dma_copy
|
|
||||||
/* 00F1B4 80033DB4 8E260010 */ lw $a2, 0x10($s1)
|
|
||||||
.L80033DB8:
|
|
||||||
/* 00F1B8 80033DB8 0C05175C */ jal load_map_bg
|
|
||||||
/* 00F1BC 80033DBC 8E240014 */ lw $a0, 0x14($s1)
|
|
||||||
/* 00F1C0 80033DC0 8E440038 */ lw $a0, 0x38($s2)
|
|
||||||
/* 00F1C4 80033DC4 50800005 */ beql $a0, $zero, .L80033DDC
|
|
||||||
/* 00F1C8 80033DC8 24040128 */ addiu $a0, $zero, 0x128
|
|
||||||
/* 00F1CC 80033DCC 0C05178A */ jal read_background_size
|
|
||||||
/* 00F1D0 80033DD0 00000000 */ nop
|
|
||||||
/* 00F1D4 80033DD4 0800CF7B */ j .L80033DEC
|
|
||||||
/* 00F1D8 80033DD8 00000000 */ nop
|
|
||||||
|
|
||||||
.L80033DDC:
|
|
||||||
/* 00F1DC 80033DDC 240500C8 */ addiu $a1, $zero, 0xc8
|
|
||||||
/* 00F1E0 80033DE0 2406000C */ addiu $a2, $zero, 0xc
|
|
||||||
/* 00F1E4 80033DE4 0C05179C */ jal set_background_size
|
|
||||||
/* 00F1E8 80033DE8 24070014 */ addiu $a3, $zero, 0x14
|
|
||||||
.L80033DEC:
|
|
||||||
/* 00F1EC 80033DEC 3C04800B */ lui $a0, 0x800b
|
|
||||||
/* 00F1F0 80033DF0 24840CF0 */ addiu $a0, $a0, 0xcf0
|
|
||||||
/* 00F1F4 80033DF4 0C016B74 */ jal get_asset_offset
|
|
||||||
/* 00F1F8 80033DF8 27A50010 */ addiu $a1, $sp, 0x10
|
|
||||||
/* 00F1FC 80033DFC 8E440000 */ lw $a0, ($s2)
|
|
||||||
/* 00F200 80033E00 8FA60010 */ lw $a2, 0x10($sp)
|
|
||||||
/* 00F204 80033E04 0C045709 */ jal load_model_textures
|
|
||||||
/* 00F208 80033E08 0040282D */ daddu $a1, $v0, $zero
|
|
||||||
/* 00F20C 80033E0C 0C04584B */ jal calculate_model_sizes
|
|
||||||
/* 00F210 80033E10 00000000 */ nop
|
|
||||||
/* 00F214 80033E14 0C00EC6C */ jal func_8003B1B0
|
|
||||||
/* 00F218 80033E18 00000000 */ nop
|
|
||||||
/* 00F21C 80033E1C 3C02800A */ lui $v0, 0x800a
|
|
||||||
/* 00F220 80033E20 8C420904 */ lw $v0, 0x904($v0)
|
|
||||||
/* 00F224 80033E24 3C04800A */ lui $a0, 0x800a
|
|
||||||
/* 00F228 80033E28 8C840908 */ lw $a0, 0x908($a0)
|
|
||||||
/* 00F22C 80033E2C 10800003 */ beqz $a0, .L80033E3C
|
|
||||||
/* 00F230 80033E30 AE620004 */ sw $v0, 4($s3)
|
|
||||||
/* 00F234 80033E34 0C009C22 */ jal func_80027088
|
|
||||||
/* 00F238 80033E38 00000000 */ nop
|
|
||||||
.L80033E3C:
|
|
||||||
/* 00F23C 80033E3C 24040004 */ addiu $a0, $zero, 4
|
|
||||||
.L80033E40:
|
|
||||||
/* 00F240 80033E40 0C00CD3C */ jal set_game_mode
|
|
||||||
/* 00F244 80033E44 00000000 */ nop
|
|
||||||
.L80033E48:
|
|
||||||
/* 00F248 80033E48 8FBF0028 */ lw $ra, 0x28($sp)
|
|
||||||
/* 00F24C 80033E4C 8FB30024 */ lw $s3, 0x24($sp)
|
|
||||||
/* 00F250 80033E50 8FB20020 */ lw $s2, 0x20($sp)
|
|
||||||
/* 00F254 80033E54 8FB1001C */ lw $s1, 0x1c($sp)
|
|
||||||
/* 00F258 80033E58 8FB00018 */ lw $s0, 0x18($sp)
|
|
||||||
/* 00F25C 80033E5C 03E00008 */ jr $ra
|
|
||||||
/* 00F260 80033E60 27BD0030 */ addiu $sp, $sp, 0x30
|
|
||||||
|
|
||||||
/* 00F264 80033E64 03E00008 */ jr $ra
|
|
||||||
/* 00F268 80033E68 00000000 */ nop
|
|
||||||
|
|
||||||
/* 00F26C 80033E6C 00000000 */ nop
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ typedef struct {
|
|||||||
/* 0x06C */ char unk_6C[0x4];
|
/* 0x06C */ char unk_6C[0x4];
|
||||||
/* 0x070 */ s8 unk_70;
|
/* 0x070 */ s8 unk_70;
|
||||||
/* 0x071 */ s8 demoState;
|
/* 0x071 */ s8 demoState;
|
||||||
/* 0x072 */ char unk_72[3];
|
/* 0x072 */ s8 unk_72;
|
||||||
|
/* 0x073 */ char unk_73[2];
|
||||||
/* 0x075 */ s8 unk_75;
|
/* 0x075 */ s8 unk_75;
|
||||||
/* 0x076 */ char unk_76[3];
|
/* 0x076 */ char unk_76[3];
|
||||||
/* 0x079 */ s8 unk_79;
|
/* 0x079 */ s8 unk_79;
|
||||||
@ -39,13 +40,26 @@ typedef struct {
|
|||||||
/* 0x0AA */ s8 unk_AA;
|
/* 0x0AA */ s8 unk_AA;
|
||||||
/* 0x0AB */ char unk_AB[1];
|
/* 0x0AB */ char unk_AB[1];
|
||||||
/* 0x0AC */ s8 unk_AC;
|
/* 0x0AC */ s8 unk_AC;
|
||||||
/* 0x0AD */ char unk_AD[0x87];
|
/* 0x0AD */ char unk_AD[0x09];
|
||||||
|
/* 0x0B6 */ s16 boot_alpha;
|
||||||
|
/* 0x0B8 */ s16 boot_blue;
|
||||||
|
/* 0x0BA */ s16 boot_green;
|
||||||
|
/* 0x0BC */ s16 boot_red;
|
||||||
|
/* 0x0BE */ char unk_BE[0x76];
|
||||||
/* 0x134 */ u16 unk_134;
|
/* 0x134 */ u16 unk_134;
|
||||||
/* 0x136 */ char unk_136[0x6];
|
/* 0x136 */ char unk_136[0x6];
|
||||||
/* 0x13C */ s16 unk_13C;
|
/* 0x13C */ s16 unk_13C;
|
||||||
/* 0x13E */ char unk_13E[0xA];
|
/* 0x13E */ char unk_13E[0xA];
|
||||||
/* 0x148 */ s16 unk_148;
|
/* 0x148 */ s16 unk_148;
|
||||||
/* 0x14A */ char unk_14A[0x1E];
|
/* 0x14A */ s16 unk_14A;
|
||||||
|
/* 0x14C */ s16 unk_14C;
|
||||||
|
/* 0x14E */ s16 unk_14E;
|
||||||
|
/* 0x150 */ s16 unk_150;
|
||||||
|
/* 0x152 */ char unk_152[2];
|
||||||
|
/* 0x154 */ s32 unk_154;
|
||||||
|
/* 0x158 */ s32 unk_158;
|
||||||
|
/* 0x15C */ s16 unk_15C;
|
||||||
|
/* 0x15E */ char unk_15E[0xA];
|
||||||
/* 0x168 */ s32 unk_168;
|
/* 0x168 */ s32 unk_168;
|
||||||
} game_status;
|
} game_status;
|
||||||
|
|
||||||
@ -468,4 +482,13 @@ typedef struct {
|
|||||||
/* 0x164 */ s32* ptrCurrentLine;
|
/* 0x164 */ s32* ptrCurrentLine;
|
||||||
} script_context; // size = 0x168;
|
} script_context; // size = 0x168;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* 0x00 */ u32 palette;
|
||||||
|
/* 0x04 */ u32 raster;
|
||||||
|
/* 0x08 */ u16 startX;
|
||||||
|
/* 0x0A */ u16 startY;
|
||||||
|
/* 0x0C */ u16 width;
|
||||||
|
/* 0x0E */ u16 height;
|
||||||
|
} bg_header; // size = 0x10
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,8 @@ s32 func_80055464(s32, s32);
|
|||||||
s32 func_800554A4(s32, s32);
|
s32 func_800554A4(s32, s32);
|
||||||
s32 func_800554E8(s32, s32);
|
s32 func_800554E8(s32, s32);
|
||||||
s32 func_800555E4(s32);
|
s32 func_800555E4(s32);
|
||||||
|
void func_80137D88(s32, f32);
|
||||||
|
void func_80137E10(s32, u8, u8, u8);
|
||||||
|
|
||||||
s32 play_sound_at_position(s32 soundID, s32 value2, f32 posX, f32 posY, f32 posZ);
|
s32 play_sound_at_position(s32 soundID, s32 value2, f32 posX, f32 posY, f32 posZ);
|
||||||
s32 set_music_track(s32 musicPlayer, s32 songID, s32 variation, s32 unk, s32 volume);
|
s32 set_music_track(s32 musicPlayer, s32 songID, s32 variation, s32 unk, s32 volume);
|
||||||
|
@ -10,9 +10,12 @@ extern player_data gPlayerData;
|
|||||||
extern player_status gPlayerStatus;
|
extern player_status gPlayerStatus;
|
||||||
extern game_status* gGameStatusPtr[1];
|
extern game_status* gGameStatusPtr[1];
|
||||||
extern item_table_entry gItemTable[364];
|
extern item_table_entry gItemTable[364];
|
||||||
|
extern s8 D_800A0900;
|
||||||
extern s16* D_80151328;
|
extern s16* D_80151328;
|
||||||
extern s16 D_8010CD10;
|
extern s16 D_8010CD10;
|
||||||
extern s16 D_8010CD12;
|
extern s16 D_8010CD12;
|
||||||
|
extern s32 D_801595A0;
|
||||||
|
extern s8 D_8014F12F;
|
||||||
|
|
||||||
extern u16 gMapTransitionAlpha;
|
extern u16 gMapTransitionAlpha;
|
||||||
extern u16 D_800A0942;
|
extern u16 D_800A0942;
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80136A80);
|
INCLUDE_ASM(code_cd180_len_38f0, func_80136A80);
|
||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137D88);
|
void INCLUDE_ASM(code_cd180_len_38f0, func_80137D88, s32 arg0, f32 arg1);
|
||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137DA4);
|
INCLUDE_ASM(code_cd180_len_38f0, func_80137DA4);
|
||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137DC0);
|
INCLUDE_ASM(code_cd180_len_38f0, func_80137DC0);
|
||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137E10);
|
void INCLUDE_ASM(code_cd180_len_38f0, func_80137E10, s32 arg0, u8 arg1, u8 arg2, u8 arg3);
|
||||||
|
|
||||||
INCLUDE_ASM(code_cd180_len_38f0, func_80137E4C);
|
INCLUDE_ASM(code_cd180_len_38f0, func_80137E4C);
|
||||||
|
|
||||||
|
@ -1,13 +1,66 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, load_map_bg);
|
INCLUDE_ASM(code_dc470_len_14c0, load_map_bg);
|
||||||
|
/* close match
|
||||||
|
void load_map_bg (s32 arg0) {
|
||||||
|
s32 tempvar0 = arg0;
|
||||||
|
s32 flowerfields_bg1 = 0x80140EE0;
|
||||||
|
s32 tempvar3 = get_variable(0, 0xF5DE0180);
|
||||||
|
if (tempvar0 == 0) {
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
if (tempvar3 > 0x0034) {
|
||||||
|
if (strcmp(tempvar0, 0x8014F120) == 0) {
|
||||||
|
tempvar0 = flowerfields_bg1;
|
||||||
|
}
|
||||||
|
load_asset_by_name (tempvar0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
decode_yay0(tempvar0, 0x80200000);
|
||||||
|
general_heap_free(tempvar0);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, func_80145DF8);
|
void func_80145DF8(void) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
D_801595A0 = 0;
|
||||||
|
D_8014F12F = 0;
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, read_background_size);
|
gameStatus->unk_15C = 0xB4;
|
||||||
|
gameStatus->unk_148 &= 0xF0;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, set_background_size);
|
void read_background_size(bg_header *bg) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, func_80145E98);
|
gameStatus->unk_14E = bg->width;
|
||||||
|
gameStatus->unk_150 = bg->height;
|
||||||
|
gameStatus->unk_14A = bg->startX;
|
||||||
|
gameStatus->unk_14C = bg->startY;
|
||||||
|
gameStatus->unk_154 = bg->palette;
|
||||||
|
gameStatus->unk_158 = bg->raster;
|
||||||
|
gameStatus->unk_148 |= 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_background_size(s16 startX, s16 startY, s16 sizeX, s16 sizeY) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
|
gameStatus->unk_148 &= ~1;
|
||||||
|
gameStatus->unk_14E = startX;
|
||||||
|
gameStatus->unk_150 = startY;
|
||||||
|
gameStatus->unk_14A = sizeX;
|
||||||
|
gameStatus->unk_14C = sizeY;
|
||||||
|
}
|
||||||
|
|
||||||
|
u16 func_80145E98(s32 arg0, s32 arg1, s32 arg2) {
|
||||||
|
s32 temp_lo;
|
||||||
|
|
||||||
|
temp_lo = (arg1 - (u16)(arg0)) * arg2;
|
||||||
|
if (temp_lo < 0) {
|
||||||
|
temp_lo = temp_lo + 0xFF;
|
||||||
|
}
|
||||||
|
temp_lo = arg0 + (temp_lo >> 8);
|
||||||
|
return temp_lo;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(code_dc470_len_14c0, func_80145EC0);
|
INCLUDE_ASM(code_dc470_len_14c0, func_80145EC0);
|
||||||
|
@ -1,15 +1,61 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, func_800337D0);
|
void func_800337D0(s16 new_alpha) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, func_800337E0);
|
gameStatus->boot_alpha = new_alpha;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, func_800337F8);
|
void func_800337E0(s16 arg0) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, func_80033830);
|
gameStatus->boot_red = arg0;
|
||||||
|
gameStatus->boot_green = arg0;
|
||||||
|
gameStatus->boot_blue = arg0;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, func_80033874);
|
s16 func_800337F8(subtract_val) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
|
if (gameStatus->boot_alpha != 0) {
|
||||||
|
gameStatus->boot_alpha -= subtract_val;
|
||||||
|
if (gameStatus->boot_alpha << 16 < 0) {
|
||||||
|
gameStatus->boot_alpha = 0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
s16 func_80033830(add_val) {
|
||||||
|
game_status* gameStatus = *gGameStatusPtr;
|
||||||
|
|
||||||
|
if (gameStatus->boot_alpha != 0xFF) {
|
||||||
|
gameStatus->boot_alpha += add_val;
|
||||||
|
if ((gameStatus->boot_alpha >= 0x100)) {
|
||||||
|
gameStatus->boot_alpha = 0xFF;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void func_80033874(void) {
|
||||||
|
|
||||||
|
func_80137D88(0, (*gGameStatusPtr)->boot_alpha);
|
||||||
|
func_80137E10(0, (*gGameStatusPtr)->boot_blue, (*gGameStatusPtr)->boot_green, (*gGameStatusPtr)->boot_red);
|
||||||
|
}
|
||||||
|
|
||||||
|
s8 start_battle_countdown(void) {
|
||||||
|
D_800A0900 = 5;
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, start_battle_countdown);
|
|
||||||
|
|
||||||
INCLUDE_ASM(code_ebd0_len_6a0, step_battle);
|
INCLUDE_ASM(code_ebd0_len_6a0, step_battle);
|
||||||
|
INCLUDE_ASM(code_ebd0_len_6a0, func_80033B54);
|
||||||
|
INCLUDE_ASM(code_ebd0_len_6a0, func_80033B88);
|
||||||
|
INCLUDE_ASM(code_ebd0_len_6a0, func_80033BC0);
|
||||||
|
INCLUDE_ASM(code_ebd0_len_6a0, func_80033E64);
|
||||||
|
@ -33,6 +33,7 @@ D_80074021 = 0x80074021;
|
|||||||
D_800959D4 = 0x800959D4;
|
D_800959D4 = 0x800959D4;
|
||||||
D_8009A5D8 = 0x8009A5D8;
|
D_8009A5D8 = 0x8009A5D8;
|
||||||
D_8009A650 = 0x8009A650;
|
D_8009A650 = 0x8009A650;
|
||||||
|
D_800A0900 = 0x800A0900;
|
||||||
D_800DC500 = 0x800DC500;
|
D_800DC500 = 0x800DC500;
|
||||||
D_8010F6D0 = 0x8010F6D0;
|
D_8010F6D0 = 0x8010F6D0;
|
||||||
D_8010F304 = 0x8010F304;
|
D_8010F304 = 0x8010F304;
|
||||||
@ -53,12 +54,14 @@ D_00316D90 = 0x00316D90;
|
|||||||
D_00316F30 = 0x00316F30;
|
D_00316F30 = 0x00316F30;
|
||||||
|
|
||||||
D_8010D000 = 0x8010D000;
|
D_8010D000 = 0x8010D000;
|
||||||
|
D_8014F12F = 0x8014F12F;
|
||||||
D_8014F140 = 0x8014F140;
|
D_8014F140 = 0x8014F140;
|
||||||
D_80151308 = 0x80151308;
|
D_80151308 = 0x80151308;
|
||||||
D_80151328 = 0x80151328;
|
D_80151328 = 0x80151328;
|
||||||
|
|
||||||
gCurrentDoorSoundsSet = 0x80151340;
|
gCurrentDoorSoundsSet = 0x80151340;
|
||||||
|
|
||||||
|
D_801595A0 = 0x801595A0;
|
||||||
D_8015C7C0 = 0x8015C7C0;
|
D_8015C7C0 = 0x8015C7C0;
|
||||||
|
|
||||||
func_802A91F8 = 0x802A91F8;
|
func_802A91F8 = 0x802A91F8;
|
||||||
|
Loading…
Reference in New Issue
Block a user