Disable Move/Act based on menu ID
Jump to navigation
Jump to search
00140a30: 27bdffe0 addiu r29,r29,0xffe0 00140a34: afbf0018 sw r31,0x0018(r29) 00140a38: afb10014 sw r17,0x0014(r29) 00140a3c: 0c0532f0 jal 0x0014cbc0 Get menu address? 00140a40: afb00010 sw r16,0x0010(r29) 00140a44: 3c108016 lui r16,0x8016 00140a48: 26106adc addiu r16,r16,0x6adc 00140a4c: 2403fffe addiu r3,r0,0xfffe 00140a50: 00408821 addu r17,r2,r0 00140a54: 0c04b7d0 jal 0x0012df40 0012df40 - 0012df64 00140a58: a6030000 sh r3,0x0000(r16) 00140a5c: 9042005c lbu r2,0x005c(r2) 00140a60: 00000000 nop 00140a64: 30420008 andi r2,r2,0x0008 00140a68: 10400007 beq r2,r0,0x00140a88 00140a6c: 2402ffff addiu r2,r0,0xffff 00140a70: 0c04b756 jal 0x0012dd58 0012dd58 - 0012dd68 00140a74: a6020000 sh r2,0x0000(r16) 00140a78: 0c04eca0 jal 0x0013b280 0013b280 - 0013b4f8 00140a7c: 00000000 nop 00140a80: 0c053256 jal 0x0014c958 0014c958 - 0014c990 00140a84: 00000000 nop 00140a88: 3c038016 lui r3,0x8016 00140a8c: 8c635f84 lw r3,0x5f84(r3) load menu functionality 00140a90: 3402000e ori r2,r0,0x000e 00140a94: 1062000b beq r3,r2,0x00140ac4 branch if can't move 00140a98: 34020014 ori r2,r0,0x0014 00140a9c: 10620009 beq r3,r2,0x00140ac4 branch if 00140aa0: 34020021 ori r2,r0,0x0021 00140aa4: 10620007 beq r3,r2,0x00140ac4 00140aa8: 3402002f ori r2,r0,0x002f 00140aac: 10620005 beq r3,r2,0x00140ac4 branch if can't move can act 00140ab0: 34020031 ori r2,r0,0x0031 00140ab4: 10620003 beq r3,r2,0x00140ac4 00140ab8: 34020033 ori r2,r0,0x0033 00140abc: 14620005 bne r3,r2,0x00140ad4 00140ac0: 00000000 nop 00140ac4: 0c04b756 jal 0x0012dd58 0012dd58 - 0012dd68 00140ac8: 00000000 nop 00140acc: 0c053256 jal 0x0014c958 0014c958 - 0014c990 00140ad0: 00000000 nop 00140ad4: 0c050260 jal 0x00140980 00140980 - 001409a0 00140ad8: 00000000 nop 00140adc: 0c050269 jal 0x001409a4 001409a4 - 001409e8 00140ae0: 02202021 addu r4,r17,r0 00140ae4: 0c053256 jal 0x0014c958 0014c958 - 0014c990 00140ae8: 00000000 nop 00140aec: 8fbf0018 lw r31,0x0018(r29) 00140af0: 8fb10014 lw r17,0x0014(r29) 00140af4: 8fb00010 lw r16,0x0010(r29) 00140af8: 27bd0020 addiu r29,r29,0x0020 00140afc: 03e00008 jr r31 00140b00: 00000000 nop