Difference between revisions of "43 Dmg (CasMaxHP-CasCurHP)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
  [43]
 
  [43]
  00186e28: 3c028019 lui r2,0x8019
+
  00186e28: 3c028019 lui r2,0x8019           |
  00186e2c: 8c422d94 lw r2,0x2d94(r2)         Attacker's Data Pointer
+
  00186e2c: 8c422d94 lw r2,0x2d94(r2)        |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}} {{f/adr|Attacker's Data Pointer}}
  00186e30: 3c058019 lui r5,0x8019
+
  00186e30: 3c058019 lui r5,0x8019           |
  00186e34: 8ca52d90 lw r5,0x2d90(r5) Target Current Action Data Pointer
+
  00186e34: 8ca52d90 lw r5,0x2d90(r5)         |{{f/adr|<nowiki>r5 = Target Current Action (TCA) data pointer</nowiki>}} {{f/adr|Target Current Action Data Pointer}}
  00186e38: 9443002a lhu r3,0x002a(r2) Load Attacker's Max HP
+
  00186e38: 9443002a lhu r3,0x002a(r2)       |{{f/load|<nowiki>r3 = Attacker's max HP</nowiki>}} {{f/load|Load Attacker's Max HP}}
  00186e3c: 94440028 lhu r4,0x0028(r2) Load Attacker's current HP
+
  00186e3c: 94440028 lhu r4,0x0028(r2)       |{{f/load|<nowiki>r4 = Attacker Current HP</nowiki>}} {{f/load|Load Attacker's current HP}}
  00186e40: 34020080 ori r2,r0,0x0080
+
  00186e40: 34020080 ori r2,r0,0x0080         |{{f/std|<nowiki>r2 = 0x80</nowiki>}}
  00186e44: a0a20025 sb r2,0x0025(r5)     Set as HP Damage
+
  00186e44: a0a20025 sb r2,0x0025(r5)         |{{f/store|Set TCA attack type to HP damage}} {{f/store|Set as HP Damage}}
  00186e48: 00641823 subu r3,r3,r4     Damage is Self maxHP - curHP
+
  00186e48: 00641823 subu r3,r3,r4           |{{f/std|<nowiki>r3 = Max HP - Current HP (missing HP)</nowiki>}}
  00186e4c: 03e00008 jr r31
+
  00186e4c: 03e00008 jr r31                   |
  00186e50: a4a30004 sh r3,0x0004(r5)     Store Damage
+
  00186e50: a4a30004 sh r3,0x0004(r5)         |{{f/store|Store Attacker's missing HP as TCA HP damage}}
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Revision as of 20:09, 24 April 2022

[43]
00186e28: 3c028019 lui r2,0x8019            |
00186e2c: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer Attacker's Data Pointer
00186e30: 3c058019 lui r5,0x8019            |
00186e34: 8ca52d90 lw r5,0x2d90(r5)         |r5 = Target Current Action (TCA) data pointer Target Current Action Data Pointer
00186e38: 9443002a lhu r3,0x002a(r2)        |r3 = Attacker's max HP Load Attacker's Max HP
00186e3c: 94440028 lhu r4,0x0028(r2)        |r4 = Attacker Current HP Load Attacker's current HP
00186e40: 34020080 ori r2,r0,0x0080         |r2 = 0x80
00186e44: a0a20025 sb r2,0x0025(r5)         |Set TCA attack type to HP damage Set as HP Damage
00186e48: 00641823 subu r3,r3,r4            |r3 = Max HP - Current HP (missing HP)
00186e4c: 03e00008 jr r31                   |
00186e50: a4a30004 sh r3,0x0004(r5)         |Store Attacker's missing HP as TCA HP damage

Return location

Battle.bin
0018b97c - Pre Formula Setup