Copy caster's Target Data for Action to Misc Data

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00074204: 27bdffe8 addiu r29,r29,0xffe8
00074208: afbf0010 sw r31,0x0010(r29)
0007420c: 0c01bbbc jal 0x0006eef0            Set Game Flow Variable to 0
00074210: 00000000 nop
00074214: 3402001e ori r2,r0,0x001e
00074218: 3c018009 lui r1,0x8009
0007421c: ac2260e4 sw r2,0x60e4(r1)
00074220: 0c01e886 jal 0x0007a218            Get Caster's Misc Data
00074224: 00000000 nop
00074228: 00403821 addu r7,r2,r0             # r7 = Pointer to Caster's Misc Data
0007422c: 8ce20134 lw r2,0x0134(r7)          # r2 = Pointer to Caster's Battle Stats
00074230: 00000000 nop
00074234: 88430171 lwl r3,0x0171(r2)         # Load and save all the bytes from Battle Stats 0x016E - 0x0181 to Misc Data 0x15C - 0x16F
00074238: 9843016e lwr r3,0x016e(r2)         # ^^
0007423c: 88440175 lwl r4,0x0175(r2)         # ^^
00074240: 98440172 lwr r4,0x0172(r2)         # ^^
00074244: 88450179 lwl r5,0x0179(r2)         # ^^
00074248: 98450176 lwr r5,0x0176(r2)         # ^^
0007424c: 8846017d lwl r6,0x017d(r2)         # ^^
00074250: 9846017a lwr r6,0x017a(r2)         # ^^
00074254: a8e3015f swl r3,0x015f(r7)         # ^^
00074258: b8e3015c swr r3,0x015c(r7)         # ^^
0007425c: a8e40163 swl r4,0x0163(r7)         # ^^
00074260: b8e40160 swr r4,0x0160(r7)         # ^^
00074264: a8e50167 swl r5,0x0167(r7)         # ^^
00074268: b8e50164 swr r5,0x0164(r7)         # ^^
0007426c: a8e6016b swl r6,0x016b(r7)         # ^^
00074270: b8e60168 swr r6,0x0168(r7)         # ^^
00074274: 88430181 lwl r3,0x0181(r2)         # ^^
00074278: 9843017e lwr r3,0x017e(r2)         # ^^
0007427c: 00000000 nop
00074280: a8e3016f swl r3,0x016f(r7)         # ^^
00074284: b8e3016c swr r3,0x016c(r7)         # ^^
00074288: 8ce20134 lw r2,0x0134(r7)          # r2 = Overwrite Pointer to Caster's Battle Stats with... Pointer to Caster's Battle Stats.
0007428c: 00000000 nop
00074290: 94420170 lhu r2,0x0170(r2)         # r2 = Last Attack Used ID
00074294: 00000000 nop
00074298: a4e20138 sh r2,0x0138(r7)          # Save Last Attack Used to Misc Data
0007429c: 90e2013c lbu r2,0x013c(r7)         # r2 = From Misc Data: "set to 0 when ability CT resolves/mimic ability used"
000742a0: 94e30138 lhu r3,0x0138(r7)         # Load Last Attack Used from Misc Data... even though it was just saved to Misc Data and could have been kept in the registers.
000742a4: 34420002 ori r2,r2,0x0002          # r2 = 2
000742a8: 10600003 beq r3,r0,0x000742b8      # Branch if r3 = 0 - no Last Attack Used?
000742ac: a0e2013c sb r2,0x013c(r7)          # Save 2 to "set to 0 when ability CT resolves/mimic ability used"
000742b0: 0c020ae0 jal 0x00082b80            Set attack animation flags and facing 2
000742b4: 00e02021 addu r4,r7,r0             # r4 = Pointer to Caster's Misc Data
000742b8: 8fbf0010 lw r31,0x0010(r29)
000742bc: 27bd0018 addiu r29,r29,0x0018
000742c0: 03e00008 jr r31
000742c4: 00000000 nop

Return Locations

00077088: 00076fd0 - 00077094 Finish Ability Charging