Difference between revisions of "Set targeting for weapon attack 2"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0017a518: 27bdffc8 addiu r29,r29,0xffc8 0017a51c: 27a50010 addiu r5,r29,0x0010 0017a520: afbf0030 sw r31,0x0030(r29) 0017a524: afb1002c sw r17,...")
 
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 +
Set targeting for weapon attack 2 17a518: [[0017a518 - 0017a5b8]]
 
   
 
   
  0017a518: 27bdffc8 addiu r29,r29,0xffc8
+
0005e22c: [[Transfer Target ID? Through Mount Data]]
 +
0017ded0: [[Clear targeting panel data?]]
 +
00179a20: [[Set targeting for weapon attack?]]
 +
0017a5bc: [[0017a5bc - 0017a648]]
 +
 +
  0017a518: 27bdffc8 addiu r29,r29,0xffc8
 
  0017a51c: 27a50010 addiu r5,r29,0x0010
 
  0017a51c: 27a50010 addiu r5,r29,0x0010
  0017a520: afbf0030 sw r31,0x0030(r29)
+
  0017a520: afbf0030 sw r31,0x0030(r29) Store 0x0 onto Stack
  0017a524: afb1002c sw r17,0x002c(r29)
+
  0017a524: afb1002c sw r17,0x002c(r29) Store 0x0 onto Stack
  0017a528: 0c01788b jal 0x0005e22c
+
  0017a528: 0c01788b jal 0x0005e22c [[Transfer Target ID? Through Mount Data]]
  0017a52c: afb00028 sw r16,0x0028(r29)
+
  0017a52c: afb00028 sw r16,0x0028(r29) Store 0x0 onto Stack
  0017a530: 93a20010 lbu r2,0x0010(r29)
+
  0017a530: 93a20010 lbu r2,0x0010(r29) Load Stack + 0x10
 
  0017a534: 00000000 nop
 
  0017a534: 00000000 nop
  0017a538: 000280c0 sll r16,r2,0x03
+
  0017a538: 000280c0 sll r16,r2,0x03 Shift left 3 bits (*0x8) (*8)
 
  0017a53c: 02028023 subu r16,r16,r2
 
  0017a53c: 02028023 subu r16,r16,r2
  0017a540: 00108180 sll r16,r16,0x06
+
  0017a540: 00108180 sll r16,r16,0x06 ?? * 0x1C0 (* 448)
  0017a544: 3c028019 lui r2,0x8019
+
  0017a544: 3c028019 lui r2,0x8019
 
  0017a548: 244208cc addiu r2,r2,0x08cc
 
  0017a548: 244208cc addiu r2,r2,0x08cc
 
  0017a54c: 02028021 addu r16,r16,r2
 
  0017a54c: 02028021 addu r16,r16,r2
  0017a550: 92030048 lbu r3,0x0048(r16)
+
  0017a550: 92030048 lbu r3,0x0048(r16) Load Y Coordinate
  0017a554: 3c02800e lui r2,0x800e
+
  0017a554: 3c02800e lui r2,0x800e
  0017a558: 90424e9c lbu r2,0x4e9c(r2)
+
  0017a558: 90424e9c lbu r2,0x4e9c(r2) Load Map Max X coordinate
 
  0017a55c: 00000000 nop
 
  0017a55c: 00000000 nop
  0017a560: 00620018 mult r3,r2
+
  0017a560: 00620018 mult r3,r2 Y Coordinate * Map Max X coordinate
  0017a564: 92020047 lbu r2,0x0047(r16)
+
  0017a564: 92020047 lbu r2,0x0047(r16) Load X Coordinate
  0017a568: 00008812 mflo r17
+
  0017a568: 00008812 mflo r17 0x0
  0017a56c: 0c05f7b4 jal 0x0017ded0
+
  0017a56c: 0c05f7b4 jal 0x0017ded0 [[Clear targeting panel data?]]
 
  0017a570: 02228821 addu r17,r17,r2
 
  0017a570: 02228821 addu r17,r17,r2
  0017a574: 0c05e688 jal 0x00179a20
+
  0017a574: 0c05e688 jal 0x00179a20 [[Set targeting for weapon attack?]]
 
  0017a578: 02002021 addu r4,r16,r0
 
  0017a578: 02002021 addu r4,r16,r0
  0017a57c: 00111880 sll r3,r17,0x02
+
  0017a57c: 00111880 sll r3,r17,0x02 Shift left 2 bits (*0x4) (*4)
 
  0017a580: 00711821 addu r3,r3,r17
 
  0017a580: 00711821 addu r3,r3,r17
  0017a584: 3c028019 lui r2,0x8019
+
  0017a584: 3c028019 lui r2,0x8019
 
  0017a588: 24422dd8 addiu r2,r2,0x2dd8
 
  0017a588: 24422dd8 addiu r2,r2,0x2dd8
 
  0017a58c: 00622021 addu r4,r3,r2
 
  0017a58c: 00622021 addu r4,r3,r2
  0017a590: 24420500 addiu r2,r2,0x0500
+
  0017a590: 24420500 addiu r2,r2,0x0500 Exception
  0017a594: 00621821 addu r3,r3,r2
+
  0017a594: 00621821 addu r3,r3,r2 Exception
  0017a598: a0800000 sb r0,0x0000(r4)
+
  0017a598: a0800000 sb r0,0x0000(r4) Store Moveable/Targetable Panel Grid (By rows of X panels, 0x10 in each row)  
  0017a59c: 0c05e96f jal 0x0017a5bc
+
  0017a59c: 0c05e96f jal 0x0017a5bc [[0017a5bc - 0017a648]]
  0017a5a0: a0600000 sb r0,0x0000(r3)
+
  0017a5a0: a0600000 sb r0,0x0000(r3) Store Sprite Set
  0017a5a4: 8fbf0030 lw r31,0x0030(r29)
+
  0017a5a4: 8fbf0030 lw r31,0x0030(r29) Load Stack + 0x30
  0017a5a8: 8fb1002c lw r17,0x002c(r29)
+
  0017a5a8: 8fb1002c lw r17,0x002c(r29) Load Stack + 0x2C
  0017a5ac: 8fb00028 lw r16,0x0028(r29)
+
  0017a5ac: 8fb00028 lw r16,0x0028(r29) Load Stack + 0x28
  0017a5b0: 27bd0038 addiu r29,r29,0x0038
+
  0017a5b0: 27bd0038 addiu r29,r29,0x0038
  0017a5b4: 03e00008 jr r31
+
  0017a5b4: 03e00008 jr r31 Jump to Address
 
  0017a5b8: 00000000 nop
 
  0017a5b8: 00000000 nop
</font>
+
 +
 +
</font>

Revision as of 22:00, 14 February 2015

Set targeting for weapon attack 2 17a518: 0017a518 - 0017a5b8

	0005e22c: Transfer Target ID? Through Mount Data
	0017ded0: Clear targeting panel data?
	00179a20: Set targeting for weapon attack?
	0017a5bc: 0017a5bc - 0017a648

0017a518: 27bdffc8 addiu r29,r29,0xffc8			
0017a51c: 27a50010 addiu r5,r29,0x0010
0017a520: afbf0030 sw r31,0x0030(r29)			Store 0x0 onto Stack
0017a524: afb1002c sw r17,0x002c(r29)			Store 0x0 onto Stack
0017a528: 0c01788b jal 0x0005e22c			Transfer Target ID? Through Mount Data
0017a52c: afb00028 sw r16,0x0028(r29)			Store 0x0 onto Stack
0017a530: 93a20010 lbu r2,0x0010(r29)			Load Stack + 0x10
0017a534: 00000000 nop
0017a538: 000280c0 sll r16,r2,0x03			Shift left 3 bits (*0x8) (*8)
0017a53c: 02028023 subu r16,r16,r2
0017a540: 00108180 sll r16,r16,0x06			?? * 0x1C0 (* 448)
0017a544: 3c028019 lui r2,0x8019			
0017a548: 244208cc addiu r2,r2,0x08cc
0017a54c: 02028021 addu r16,r16,r2
0017a550: 92030048 lbu r3,0x0048(r16)			Load Y Coordinate
0017a554: 3c02800e lui r2,0x800e			
0017a558: 90424e9c lbu r2,0x4e9c(r2)			Load Map Max X coordinate
0017a55c: 00000000 nop
0017a560: 00620018 mult r3,r2				Y Coordinate * Map Max X coordinate
0017a564: 92020047 lbu r2,0x0047(r16)			Load X Coordinate
0017a568: 00008812 mflo r17				0x0
0017a56c: 0c05f7b4 jal 0x0017ded0			Clear targeting panel data?
0017a570: 02228821 addu r17,r17,r2
0017a574: 0c05e688 jal 0x00179a20			Set targeting for weapon attack?
0017a578: 02002021 addu r4,r16,r0
0017a57c: 00111880 sll r3,r17,0x02			Shift left 2 bits (*0x4) (*4)
0017a580: 00711821 addu r3,r3,r17
0017a584: 3c028019 lui r2,0x8019			
0017a588: 24422dd8 addiu r2,r2,0x2dd8
0017a58c: 00622021 addu r4,r3,r2
0017a590: 24420500 addiu r2,r2,0x0500			Exception
0017a594: 00621821 addu r3,r3,r2			Exception
0017a598: a0800000 sb r0,0x0000(r4)			Store Moveable/Targetable Panel Grid (By rows of X panels, 0x10 in each row) 
0017a59c: 0c05e96f jal 0x0017a5bc			0017a5bc - 0017a648
0017a5a0: a0600000 sb r0,0x0000(r3)			Store Sprite Set 
0017a5a4: 8fbf0030 lw r31,0x0030(r29)			Load Stack + 0x30
0017a5a8: 8fb1002c lw r17,0x002c(r29)			Load Stack + 0x2C
0017a5ac: 8fb00028 lw r16,0x0028(r29)			Load Stack + 0x28
0017a5b0: 27bd0038 addiu r29,r29,0x0038			
0017a5b4: 03e00008 jr r31			Jump to Address
0017a5b8: 00000000 nop