Set target coordinates for ability

From Final Fantasy Hacktics Wiki
Revision as of 14:50, 8 February 2015 by Choto (talk | contribs) (Created page with "<font face='Courier New'> 0017d350: a0a00012 sb r0,0x0012(r5) 0017d354: 3c028019 lui r2,0x8019 0017d358: 9042390f lbu r2,0x390f(r2) load ability X 0017d35c: 00000000 no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0017d350: a0a00012 sb r0,0x0012(r5)
0017d354: 3c028019 lui r2,0x8019
0017d358: 9042390f lbu r2,0x390f(r2)		load ability X
0017d35c: 00000000 nop
0017d360: 1040000d beq r2,r0,0x0017d398		branch if X = 0
0017d364: 34020006 ori r2,r0,0x0006		
0017d368: 3c028019 lui r2,0x8019
0017d36c: 904238ca lbu r2,0x38ca(r2)		load target X coordinate?
0017d370: 00000000 nop
0017d374: a0a2001c sb r2,0x001c(r5)		store target X coordinate?
0017d378: 3c028019 lui r2,0x8019
0017d37c: 904238cb lbu r2,0x38cb(r2)		load target Y coordinate
0017d380: 00000000 nop
0017d384: a0a2001d sb r2,0x001d(r5)		store target y coordinate
0017d388: 3c028019 lui r2,0x8019
0017d38c: 904238cc lbu r2,0x38cc(r2)		load target elevation?
0017d390: 0805f502 j 0x0017d408
0017d394: 00000000 nop
0017d398: 90830178 lbu r3,0x0178(r4)		load attacker reaction ID
0017d39c: 00000000 nop
0017d3a0: 14620012 bne r3,r2,0x0017d3ec		branch if not 06 (regenerator?)
0017d3a4: 00000000 nop
0017d3a8: 90830179 lbu r3,0x0179(r4)		load Target ID
0017d3ac: 00000000 nop
0017d3b0: 000310c0 sll r2,r3,0x03
0017d3b4: 00431023 subu r2,r2,r3
0017d3b8: 00021180 sll r2,r2,0x06
0017d3bc: 3c038019 lui r3,0x8019
0017d3c0: 246308cc addiu r3,r3,0x08cc		r3 = target unit data?
0017d3c4: 00431021 addu r2,r2,r3
0017d3c8: 90430047 lbu r3,0x0047(r2)		load unit X coordinate
0017d3cc: 00000000 nop
0017d3d0: a0a3001c sb r3,0x001c(r5)		store X coordinate of target
0017d3d4: 90430048 lbu r3,0x0048(r2)		load Y coordinate
0017d3d8: 00000000 nop
0017d3dc: a0a3001d sb r3,0x001d(r5)		Store Y coordinate of target
0017d3e0: 94420048 lhu r2,0x0048(r2)		load elevation
0017d3e4: 0805f502 j 0x0017d408
0017d3e8: 000213c2 srl r2,r2,0x0f
knockback goes here
0017d3ec: 9082017a lbu r2,0x017a(r4)		load target X coordinate
0017d3f0: 00000000 nop
0017d3f4: a0a2001c sb r2,0x001c(r5)		store target X coordinate
0017d3f8: 9082017e lbu r2,0x017e(r4)		load target Y coordinate
0017d3fc: 00000000 nop
0017d400: a0a2001d sb r2,0x001d(r5)		store target Y
0017d404: 9082017c lbu r2,0x017c(r4)		load elevation?
0017d408: 03e00008 jr r31
0017d40c: a0a2001e sb r2,0x001e(r5)		store elevation?