Difference between revisions of "00140b04 - 00140cd0"
Jump to navigation
Jump to search
(jal links) |
m (A few quick notes. Was breakpointing the check of a unit's Charging status to prevent the "unit is charging, to cancel select a new action" message.) |
||
Line 34: | Line 34: | ||
00140b80: 080502f9 j 0x00140be4 | 00140b80: 080502f9 j 0x00140be4 | ||
00140b84: 34111003 ori r17,r0,0x1003 | 00140b84: 34111003 ori r17,r0,0x1003 | ||
− | 00140b88: 90830058 lbu r3,0x0058(r4) | + | 00140b88: 90830058 lbu r3,0x0058(r4) Load unit's Current Statuses Set 1 |
00140b8c: 00000000 nop | 00140b8c: 00000000 nop | ||
− | 00140b90: 30620008 andi r2,r3,0x0008 | + | 00140b90: 30620008 andi r2,r3,0x0008 r2 = 0x08 (Charging) |
− | 00140b94: 1040000f beq r2,r0,0x00140bd4 | + | 00140b94: 1040000f beq r2,r0,0x00140bd4 Branch if not charging |
− | 00140b98: 3402000a ori r2,r0,0x000a | + | 00140b98: 3402000a ori r2,r0,0x000a r2 = 0x0A |
− | 00140b9c: 9085016f lbu r5,0x016f(r4) | + | 00140b9c: 9085016f lbu r5,0x016f(r4) r5 = Skillset of last attack used |
00140ba0: 3c018006 lui r1,0x8006 | 00140ba0: 3c018006 lui r1,0x8006 | ||
00140ba4: 00250821 addu r1,r1,r5 | 00140ba4: 00250821 addu r1,r1,r5 | ||
− | 00140ba8: 90235cb4 lbu r3,0x5cb4(r1) | + | 00140ba8: 90235cb4 lbu r3,0x5cb4(r1) r3 = Action menu for the skillset of the last attack used |
00140bac: 00000000 nop | 00140bac: 00000000 nop | ||
− | 00140bb0: 10620004 beq r3,r2,0x00140bc4 | + | 00140bb0: 10620004 beq r3,r2,0x00140bc4 Branch if skillset's action menu type is 0x0A - Charge |
− | 00140bb4: 34a2b000 ori r2,r5,0xb000 | + | 00140bb4: 34a2b000 ori r2,r5,0xb000 r2 = 0xB000 + skillset of last attack used - text formatting for skillset's name |
− | 00140bb8: 84820170 lh r2,0x0170(r4) | + | 00140bb8: 84820170 lh r2,0x0170(r4) r2 = Last Attack Used ID |
00140bbc: 00000000 nop | 00140bbc: 00000000 nop | ||
− | 00140bc0: 24427000 addiu r2,r2,0x7000 | + | 00140bc0: 24427000 addiu r2,r2,0x7000 r2 = Last Attack Used ID + 0x7000 - text formatting for ability's name |
00140bc4: 3c018016 lui r1,0x8016 | 00140bc4: 3c018016 lui r1,0x8016 | ||
− | 00140bc8: ac225ef4 sw r2,0x5ef4(r1) | + | 00140bc8: ac225ef4 sw r2,0x5ef4(r1) 0x80165ef4 - currently skillset/ability name to display? |
00140bcc: 080502f9 j 0x00140be4 | 00140bcc: 080502f9 j 0x00140be4 | ||
00140bd0: 34118001 ori r17,r0,0x8001 | 00140bd0: 34118001 ori r17,r0,0x8001 |
Revision as of 02:15, 11 May 2024
00140b04: 27bdffe0 addiu r29,r29,0xffe0 00140b08: afb10014 sw r17,0x0014(r29) 00140b0c: 00008821 addu r17,r0,r0 00140b10: afbf0018 sw r31,0x0018(r29) 00140b14: 0c04b7d0 jal 0x0012df40 0012df40 - 0012df64 00140b18: afb00010 sw r16,0x0010(r29) 00140b1c: 3c038016 lui r3,0x8016 00140b20: 8c635f84 lw r3,0x5f84(r3) 00140b24: 00402021 addu r4,r2,r0 00140b28: 2462ffed addiu r2,r3,0xffed 00140b2c: 2c420002 sltiu r2,r2,0x0002 00140b30: 14400004 bne r2,r0,0x00140b44 00140b34: 2462ffd0 addiu r2,r3,0xffd0 00140b38: 2c420002 sltiu r2,r2,0x0002 00140b3c: 10400012 beq r2,r0,0x00140b88 00140b40: 00000000 nop 00140b44: 0c0604c3 jal 0x0018130c Check If Unit Can React 00140b48: 00000000 nop 00140b4c: 00408021 addu r16,r2,r0 00140b50: 16000006 bne r16,r0,0x00140b6c 00140b54: 34020001 ori r2,r0,0x0001 00140b58: 0c04b756 jal 0x0012dd58 0012dd58 - 0012dd68 00140b5c: 00000000 nop 00140b60: 0c053256 jal 0x0014c958 Stop Current Thread 00140b64: 00000000 nop 00140b68: 34020001 ori r2,r0,0x0001 00140b6c: 16020002 bne r16,r2,0x00140b78 00140b70: 34020002 ori r2,r0,0x0002 00140b74: 34111002 ori r17,r0,0x1002 00140b78: 1602001a bne r16,r2,0x00140be4 00140b7c: 00000000 nop 00140b80: 080502f9 j 0x00140be4 00140b84: 34111003 ori r17,r0,0x1003 00140b88: 90830058 lbu r3,0x0058(r4) Load unit's Current Statuses Set 1 00140b8c: 00000000 nop 00140b90: 30620008 andi r2,r3,0x0008 r2 = 0x08 (Charging) 00140b94: 1040000f beq r2,r0,0x00140bd4 Branch if not charging 00140b98: 3402000a ori r2,r0,0x000a r2 = 0x0A 00140b9c: 9085016f lbu r5,0x016f(r4) r5 = Skillset of last attack used 00140ba0: 3c018006 lui r1,0x8006 00140ba4: 00250821 addu r1,r1,r5 00140ba8: 90235cb4 lbu r3,0x5cb4(r1) r3 = Action menu for the skillset of the last attack used 00140bac: 00000000 nop 00140bb0: 10620004 beq r3,r2,0x00140bc4 Branch if skillset's action menu type is 0x0A - Charge 00140bb4: 34a2b000 ori r2,r5,0xb000 r2 = 0xB000 + skillset of last attack used - text formatting for skillset's name 00140bb8: 84820170 lh r2,0x0170(r4) r2 = Last Attack Used ID 00140bbc: 00000000 nop 00140bc0: 24427000 addiu r2,r2,0x7000 r2 = Last Attack Used ID + 0x7000 - text formatting for ability's name 00140bc4: 3c018016 lui r1,0x8016 00140bc8: ac225ef4 sw r2,0x5ef4(r1) 0x80165ef4 - currently skillset/ability name to display? 00140bcc: 080502f9 j 0x00140be4 00140bd0: 34118001 ori r17,r0,0x8001 00140bd4: 30620001 andi r2,r3,0x0001 00140bd8: 10400002 beq r2,r0,0x00140be4 00140bdc: 00000000 nop 00140be0: 34118002 ori r17,r0,0x8002 00140be4: 12200033 beq r17,r0,0x00140cb4 00140be8: 3c030001 lui r3,0x0001 00140bec: 3c028004 lui r2,0x8004 00140bf0: 8c4273ac lw r2,0x73ac(r2) 00140bf4: 34638000 ori r3,r3,0x8000 00140bf8: 00431824 and r3,r2,r3 00140bfc: 34028000 ori r2,r0,0x8000 00140c00: 14620007 bne r3,r2,0x00140c20 00140c04: 3222ff00 andi r2,r17,0xff00 00140c08: 14430005 bne r2,r3,0x00140c20 00140c0c: 00000000 nop 00140c10: 0c050260 jal 0x00140980 00140980 - 001409a0 00140c14: 00000000 nop 00140c18: 08050326 j 0x00140c98 00140c1c: 2622effe addiu r2,r17,0xeffe 00140c20: 3c028015 lui r2,0x8015 00140c24: 9042d324 lbu r2,-0x2cdc(r2) 00140c28: 00000000 nop 00140c2c: 1440001a bne r2,r0,0x00140c98 00140c30: 2622effe addiu r2,r17,0xeffe 00140c34: 0c04b756 jal 0x0012dd58 0012dd58 - 0012dd68 00140c38: 00000000 nop 00140c3c: 3c058014 lui r5,0x8014 00140c40: 24a5b280 addiu r5,r5,0xb280 00140c44: 3c048017 lui r4,0x8017 00140c48: 8c844038 lw r4,0x4038(r4) 00140c4c: 3c028017 lui r2,0x8017 00140c50: 8c423cb8 lw r2,0x3cb8(r2) 00140c54: 2484ffff addiu r4,r4,0xffff 00140c58: 0c053228 jal 0x0014c8a0 Initialize Thread 00140c5c: a4510850 sh r17,0x0850(r2) 00140c60: 00003021 addu r6,r0,r0 00140c64: 00003821 addu r7,r0,r0 00140c68: 3c048017 lui r4,0x8017 00140c6c: 8c844038 lw r4,0x4038(r4) 00140c70: 3c058017 lui r5,0x8017 00140c74: 8ca53cb8 lw r5,0x3cb8(r5) 00140c78: 2484ffff addiu r4,r4,0xffff 00140c7c: 0c05328e jal 0x0014ca38 Store Thread Function Parameters 00140c80: 24a50834 addiu r5,r5,0x0834 00140c84: 3c048017 lui r4,0x8017 00140c88: 8c844038 lw r4,0x4038(r4) 00140c8c: 0c053274 jal 0x0014c9d0 Wait For Thread 00140c90: 2484ffff addiu r4,r4,0xffff 00140c94: 2622effe addiu r2,r17,0xeffe 00140c98: 2c420002 sltiu r2,r2,0x0002 00140c9c: 10400007 beq r2,r0,0x00140cbc 00140ca0: 00000000 nop 00140ca4: 0c053256 jal 0x0014c958 Stop Current Thread 00140ca8: 00000000 nop 00140cac: 0805032f j 0x00140cbc 00140cb0: 00000000 nop 00140cb4: 0c050260 jal 0x00140980 00140980 - 001409a0 00140cb8: 00000000 nop 00140cbc: 8fbf0018 lw r31,0x0018(r29) 00140cc0: 8fb10014 lw r17,0x0014(r29) 00140cc4: 8fb00010 lw r16,0x0010(r29) 00140cc8: 27bd0020 addiu r29,r29,0x0020 00140ccc: 03e00008 jr r31 00140cd0: 00000000 nop