Difference between revisions of "Transfer Last Ability Used CT"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 15: Line 15:
  
 
== Return Locations ==
 
== Return Locations ==
 
+
 +
SCUS_942.21
 
  0005e838:
 
  0005e838:
 
  00182c4c:
 
  00182c4c:
 
  0018389c:
 
  0018389c:
 +
Could be moved exclusively to BATTLE.BIN

Revision as of 03:24, 25 September 2021

Transfer Last Ability Used CT
0005e778: 84830170 lh r3,0x0170(r4)		Load Unit's Last Attack Used ID
0005e77c: 00000000 nop
0005e780: 000310c0 sll r2,r3,0x03		ID * 8
0005e784: 00431023 subu r2,r2,r3		ID * 7
0005e788: 00021040 sll r2,r2,0x01		ID * 14
0005e78c: 3c018006 lui r1,0x8006
0005e790: 00220821 addu r1,r1,r2
0005e794: 9022fbfc lbu r2,-0x0404(r1)		Load Ability's CT
0005e798: 00000000 nop
0005e79c: 3042007f andi r2,r2,0x007f
0005e7a0: 03e00008 jr r31
0005e7a4: a082018b sb r2,0x018b(r4)		Store Ability's CT


Return Locations

SCUS_942.21
0005e838:
00182c4c:
0018389c:
Could be moved exclusively to BATTLE.BIN