Difference between revisions of "Get Ability's Range"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Get Ability's Range 0005e018: 3084ffff andi r4,r4,0xffff r4 = Ability ID 0005e01c: 2c820170 sltiu r2,r4,0x0170 0005e020: 10400008 beq r2,r0,0x0005e044 Branch if Ability ...")
 
Line 14: Line 14:
 
  0005e048: 03e00008 jr r31
 
  0005e048: 03e00008 jr r31
 
  0005e04c: 00000000 nop
 
  0005e04c: 00000000 nop
 +
 +
 +
== Return Locations ==
 +
 +
Never called by SCUS or Battle.bin... may be dead routines.

Revision as of 01:38, 2 March 2012

Get Ability's Range
0005e018: 3084ffff andi r4,r4,0xffff		r4 = Ability ID
0005e01c: 2c820170 sltiu r2,r4,0x0170
0005e020: 10400008 beq r2,r0,0x0005e044		Branch if Ability isn't a Normal Ability
0005e024: 000410c0 sll r2,r4,0x03		ID * 8
0005e028: 00441023 subu r2,r2,r4		ID * 7
0005e02c: 00021040 sll r2,r2,0x01		ID * 14
0005e030: 3c018006 lui r1,0x8006
0005e034: 00220821 addu r1,r1,r2
0005e038: 9022fbf0 lbu r2,-0x0410(r1)		Load Ability's Range
0005e03c: 08017812 j 0x0005e048
0005e040: 00000000 nop
0005e044: 00001021 addu r2,r0,r0		Range = 0
0005e048: 03e00008 jr r31
0005e04c: 00000000 nop


Return Locations

Never called by SCUS or Battle.bin... may be dead routines.