Difference between revisions of "45 Dmg (TarMaxHP-TarCurHP)"
Jump to navigation
Jump to search
(Created page with " [45] 00186e78: 3c028019 lui r2,0x8019 00186e7c: 8c422d98 lw r2,0x2d98(r2) 00186e80: 3c058019 lui r5,0x8019 00186e84: 8ca52d90 lw r5,0x2d90(r5) 00186e88: 9443002a...") |
m |
||
Line 1: | Line 1: | ||
[45] | [45] | ||
− | 00186e78: 3c028019 lui r2,0x8019 | + | 00186e78: 3c028019 lui r2,0x8019 | |
− | 00186e7c: 8c422d98 lw r2,0x2d98(r2) | + | 00186e7c: 8c422d98 lw r2,0x2d98(r2) |{{f/adr|<nowiki>r2 = Target data pointer</nowiki>}} |
− | 00186e80: 3c058019 lui r5,0x8019 | + | 00186e80: 3c058019 lui r5,0x8019 | |
− | 00186e84: 8ca52d90 lw r5,0x2d90(r5) | + | 00186e84: 8ca52d90 lw r5,0x2d90(r5) |{{f/adr|<nowiki>r5 = Target Current Action (TCA) data pointer</nowiki>}} |
− | 00186e88: 9443002a lhu r3,0x002a(r2) | + | 00186e88: 9443002a lhu r3,0x002a(r2) |{{f/load|<nowiki>r3 = Target's Max HP</nowiki>}} |
− | 00186e8c: 94440028 lhu r4,0x0028(r2) | + | 00186e8c: 94440028 lhu r4,0x0028(r2) |{{f/load|<nowiki>r4 = Target's current HP</nowiki>}} |
− | 00186e90: 34020080 ori r2,r0,0x0080 | + | 00186e90: 34020080 ori r2,r0,0x0080 |{{f/std|<nowiki>r2 = 0x80</nowiki>}} |
− | 00186e94: a0a20025 sb r2,0x0025(r5) | + | 00186e94: a0a20025 sb r2,0x0025(r5) |{{f/store|Set TCA Attack type to HP damage}} |
− | 00186e98: 00641823 subu r3,r3,r4 | + | 00186e98: 00641823 subu r3,r3,r4 |{{f/std|<nowiki>r3 = Target missing HP (Max - Current)</nowiki>}} |
− | 00186e9c: 03e00008 jr r31 | + | 00186e9c: 03e00008 jr r31 | |
− | 00186ea0: a4a30004 sh r3,0x0004(r5) | + | 00186ea0: a4a30004 sh r3,0x0004(r5) |{{f/store|Store Target missing HP as TCA HP damage}} |
+ | === Return location === | ||
+ | '''Battle.bin''' | ||
+ | 0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]] |
Latest revision as of 20:13, 24 April 2022
[45] 00186e78: 3c028019 lui r2,0x8019 | 00186e7c: 8c422d98 lw r2,0x2d98(r2) |r2 = Target data pointer 00186e80: 3c058019 lui r5,0x8019 | 00186e84: 8ca52d90 lw r5,0x2d90(r5) |r5 = Target Current Action (TCA) data pointer 00186e88: 9443002a lhu r3,0x002a(r2) |r3 = Target's Max HP 00186e8c: 94440028 lhu r4,0x0028(r2) |r4 = Target's current HP 00186e90: 34020080 ori r2,r0,0x0080 |r2 = 0x80 00186e94: a0a20025 sb r2,0x0025(r5) |Set TCA Attack type to HP damage 00186e98: 00641823 subu r3,r3,r4 |r3 = Target missing HP (Max - Current) 00186e9c: 03e00008 jr r31 | 00186ea0: a4a30004 sh r3,0x0004(r5) |Store Target missing HP as TCA HP damage
Return location
Battle.bin 0018b97c - Pre Formula Setup