Difference between revisions of "3C Heal (CasMaxHP*2/5) DmgCas (CasMaxHP/5)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [3c] 00186dbc: 3c028019 lui r2,0x8019 00186dc0: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats 00186dc4: 3c03cccc lui r3,0xcccc 00186dc8: 9442002a lhu r2,0x002a(r2...")
 
m
Line 1: Line 1:
 
  [3c]
 
  [3c]
  00186dbc: 3c028019 lui r2,0x8019
+
  00186dbc: 3c028019 lui r2,0x8019           |
  00186dc0: 8c422d94 lw r2,0x2d94(r2) Load Attacker's Stats
+
  00186dc0: 8c422d94 lw r2,0x2d94(r2)         |{{f/adr|<nowiki>r2 = Attacker data pointer</nowiki>}}
  00186dc4: 3c03cccc lui r3,0xcccc
+
  00186dc4: 3c03cccc lui r3,0xcccc           |
  00186dc8: 9442002a lhu r2,0x002a(r2)     Load Attacker's Max HP
+
  00186dc8: 9442002a lhu r2,0x002a(r2)       |{{f/load|<nowiki>r2 = Attacker's Max HP</nowiki>}}
  00186dcc: 3463cccd ori r3,r3,0xcccd
+
  00186dcc: 3463cccd ori r3,r3,0xcccd         |{{f/std|<nowiki>r3 = 0xcccccccd  (0,8 * 2^32)</nowiki>}}
  00186dd0: 00430019 multu r2,r3 Max HP * 0xcccccccd (or Max HP * .8)
+
  00186dd0: 00430019 multu r2,r3             |{{f/std|Max Hp * 0,8 * 2^32}}
  00186dd4: 3c038019 lui r3,0x8019
+
  00186dd4: 3c038019 lui r3,0x8019           |
  00186dd8: 8c632d8c lw r3,0x2d8c(r3) Load Attacker Current Action Data Pointer
+
  00186dd8: 8c632d8c lw r3,0x2d8c(r3)         |{{f/adr|<nowiki>r3 = Attacker Current Action (ACA) data pointer </nowiki>}}
  00186ddc: 34020080 ori r2,r0,0x0080 R2 = 0
+
  00186ddc: 34020080 ori r2,r0,0x0080         |{{f/std|<nowiki>r2 = 0x80</nowiki>}}
  00186de0: a0620025 sb r2,0x0025(r3)     Set as HP Healing
+
  00186de0: a0620025 sb r2,0x0025(r3)         |{{f/store|Set ACA Attack type to HP damage}}
  00186de4: 00001010 mfhi r2 Move Mult total to r2
+
  00186de4: 00001010 mfhi r2                 |{{f/std|<nowiki>r2 = Attacker's max HP * 0,8</nowiki>}}
  00186de8: 00021082 srl r2,r2,0x02 Max HP * 0xcccccccd / 4
+
  00186de8: 00021082 srl r2,r2,0x02           |{{f/std|<nowiki>r2 = Max HP * 0,2</nowiki>}}
  00186dec: a4620004 sh r2,0x0004(r3)     Damage is 1/5 of maxHP
+
  00186dec: a4620004 sh r2,0x0004(r3)         |{{f/store|Store Attacker Max HP * 0,2 as ACA HP damage}}
  00186df0: 3c038019 lui r3,0x8019
+
  00186df0: 3c038019 lui r3,0x8019           |
  00186df4: 8c632d8c lw r3,0x2d8c(r3) Load Attacker Current Action Data Pointer
+
  00186df4: 8c632d8c lw r3,0x2d8c(r3)         |{{f/adr|<nowiki>r3 = ACA data pointer</nowiki>}}
  00186df8: 34020001 ori r2,r0,0x0001 R2 = 1
+
  00186df8: 34020001 ori r2,r0,0x0001         |{{f/std|<nowiki>r2 = 0x01</nowiki>}}
  00186dfc: a0620000 sb r2,0x0000(r3)     Store Guarantee Hit
+
  00186dfc: a0620000 sb r2,0x0000(r3)         |{{f/store|Set ACA hit flag to HIT}}
  00186e00: 3c028019 lui r2,0x8019
+
  00186e00: 3c028019 lui r2,0x8019           |
  00186e04: 8c422d8c lw r2,0x2d8c(r2) Load Attacker Current Action Data Pointer
+
  00186e04: 8c422d8c lw r2,0x2d8c(r2)         |{{f/adr|<nowiki>r3 = ACA data pointer</nowiki>}}
  00186e08: 3c048019 lui r4,0x8019
+
  00186e08: 3c048019 lui r4,0x8019           |
  00186e0c: 8c842d90 lw r4,0x2d90(r4) Load Target Current Action Data Pointer
+
  00186e0c: 8c842d90 lw r4,0x2d90(r4)         |{{f/adr|<nowiki>r4 = Target Current Action (TCA) data pointer</nowiki>}}
  00186e10: 84420004 lh r2,0x0004(r2) Load HP Damage from Attacker
+
  00186e10: 84420004 lh r2,0x0004(r2)         |{{f/load|<nowiki>r2 = ACA HP damage (MaxHP*0,2)</nowiki>}}
  00186e14: 34030040 ori r3,r0,0x0040 R3 = 40
+
  00186e14: 34030040 ori r3,r0,0x0040         |{{f/std|<nowiki>r3 = 0x40</nowiki>}}
  00186e18: a0830025 sb r3,0x0025(r4)     Store Attack on Target as HP Healing
+
  00186e18: a0830025 sb r3,0x0025(r4)         |{{f/store|Set TCA Attack type to HP recoveery}}
  00186e1c: 00021040 sll r2,r2,0x01     HP Damage * 2
+
  00186e1c: 00021040 sll r2,r2,0x01           |{{f/std|<nowiki>r2 = Attacker's MaxHP*0,4</nowiki>}}
  00186e20: 03e00008 jr r31
+
  00186e20: 03e00008 jr r31                   |
  00186e24: a4820006 sh r2,0x0006(r4)     Store healing is 2/5 of maxHP
+
  00186e24: a4820006 sh r2,0x0006(r4)         |{{f/store|Store Attacker's MaxHP*0,4 as TCA HP recovery}}
 +
=== Return location ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Revision as of 19:19, 24 April 2022

[3c]
00186dbc: 3c028019 lui r2,0x8019            |
00186dc0: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00186dc4: 3c03cccc lui r3,0xcccc            |
00186dc8: 9442002a lhu r2,0x002a(r2)        |r2 = Attacker's Max HP
00186dcc: 3463cccd ori r3,r3,0xcccd         |r3 = 0xcccccccd  (0,8 * 2^32)
00186dd0: 00430019 multu r2,r3              |Max Hp * 0,8 * 2^32
00186dd4: 3c038019 lui r3,0x8019            |
00186dd8: 8c632d8c lw r3,0x2d8c(r3)         |r3 = Attacker Current Action (ACA) data pointer 
00186ddc: 34020080 ori r2,r0,0x0080         |r2 = 0x80
00186de0: a0620025 sb r2,0x0025(r3)         |Set ACA Attack type to HP damage
00186de4: 00001010 mfhi r2                  |r2 = Attacker's max HP * 0,8
00186de8: 00021082 srl r2,r2,0x02           |r2 = Max HP * 0,2
00186dec: a4620004 sh r2,0x0004(r3)         |Store Attacker Max HP * 0,2 as ACA HP damage
00186df0: 3c038019 lui r3,0x8019            |
00186df4: 8c632d8c lw r3,0x2d8c(r3)         |r3 = ACA data pointer
00186df8: 34020001 ori r2,r0,0x0001         |r2 = 0x01
00186dfc: a0620000 sb r2,0x0000(r3)         |Set ACA hit flag to HIT
00186e00: 3c028019 lui r2,0x8019            |
00186e04: 8c422d8c lw r2,0x2d8c(r2)         |r3 = ACA data pointer
00186e08: 3c048019 lui r4,0x8019            |
00186e0c: 8c842d90 lw r4,0x2d90(r4)         |r4 = Target Current Action (TCA) data pointer
00186e10: 84420004 lh r2,0x0004(r2)         |r2 = ACA HP damage (MaxHP*0,2)
00186e14: 34030040 ori r3,r0,0x0040         |r3 = 0x40
00186e18: a0830025 sb r3,0x0025(r4)         |Set TCA Attack type to HP recoveery
00186e1c: 00021040 sll r2,r2,0x01           |r2 = Attacker's MaxHP*0,4
00186e20: 03e00008 jr r31                   |
00186e24: a4820006 sh r2,0x0006(r4)         |Store Attacker's MaxHP*0,4 as TCA HP recovery

Return location

Battle.bin
0018b97c - Pre Formula Setup