Difference between revisions of "001a8e74 - 001a8f10"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 001a8e74: 03e00008 jr r31 001a8e78: 00000000 nop 001a8e7c: 8c83000c lw r3,0x000c(r4) 001a8e80: 2482000c addiu r2,r4,0x000c 001a8e84: 3c01801c ...")
 
Line 3: Line 3:
 
  001a8e74: 03e00008 jr r31
 
  001a8e74: 03e00008 jr r31
 
  001a8e78: 00000000 nop
 
  001a8e78: 00000000 nop
  001a8e7c: 8c83000c lw r3,0x000c(r4)
+
  001a8e7c: 8c83000c lw r3,0x000c(r4) load 0xc* from secondary effect BB
  001a8e80: 2482000c addiu r2,r4,0x000c
+
  001a8e80: 2482000c addiu r2,r4,0x000c effect pointer + 0xc
 
  001a8e84: 3c01801c lui r1,0x801c
 
  001a8e84: 3c01801c lui r1,0x801c
  001a8e88: ac228a2c sw r2,-0x75d4(r1)
+
  001a8e88: ac228a2c sw r2,-0x75d4(r1) store secondary effect data pointer
  001a8e8c: 04610003 bgez r3,0x001a8e9c
+
  001a8e8c: 04610003 bgez r3,0x001a8e9c branch if 0xc* is not negative, rounding and whatever.
 
  001a8e90: 00031083 sra r2,r3,0x02
 
  001a8e90: 00031083 sra r2,r3,0x02
 
  001a8e94: 24630003 addiu r3,r3,0x0003
 
  001a8e94: 24630003 addiu r3,r3,0x0003
 
  001a8e98: 00031083 sra r2,r3,0x02
 
  001a8e98: 00031083 sra r2,r3,0x02
  001a8e9c: 00021080 sll r2,r2,0x02
+
  001a8e9c: 00021080 sll r2,r2,0x02 pointer? / 4 * 4 (rounds)
  001a8ea0: 2442000c addiu r2,r2,0x000c
+
  001a8ea0: 2442000c addiu r2,r2,0x000c + 0xc (start of proper data)
  001a8ea4: 8c850014 lw r5,0x0014(r4)
+
  001a8ea4: 8c850014 lw r5,0x0014(r4) load another thing? doesn't seem to do anything to arrows.
  001a8ea8: 00821021 addu r2,r4,r2
+
  001a8ea8: 00821021 addu r2,r4,r2 pointer to particular type of data?
 
  001a8eac: 3c01801c lui r1,0x801c
 
  001a8eac: 3c01801c lui r1,0x801c
 
  001a8eb0: ac228a30 sw r2,-0x75d0(r1)
 
  001a8eb0: ac228a30 sw r2,-0x75d0(r1)
  001a8eb4: 04a10003 bgez r5,0x001a8ec4
+
  001a8eb4: 04a10003 bgez r5,0x001a8ec4 branch if more than 0
 
  001a8eb8: 00051083 sra r2,r5,0x02
 
  001a8eb8: 00051083 sra r2,r5,0x02
 
  001a8ebc: 24a50003 addiu r5,r5,0x0003
 
  001a8ebc: 24a50003 addiu r5,r5,0x0003
 
  001a8ec0: 00051083 sra r2,r5,0x02
 
  001a8ec0: 00051083 sra r2,r5,0x02
 
  001a8ec4: 00021080 sll r2,r2,0x02
 
  001a8ec4: 00021080 sll r2,r2,0x02
  001a8ec8: 2442000c addiu r2,r2,0x000c
+
  001a8ec8: 2442000c addiu r2,r2,0x000c round off at 8 + 0xc
  001a8ecc: 8c83001c lw r3,0x001c(r4)
+
  001a8ecc: 8c83001c lw r3,0x001c(r4) pointer to More Data
  001a8ed0: 00821021 addu r2,r4,r2
+
  001a8ed0: 00821021 addu r2,r4,r2 pointer to specific data?
 
  001a8ed4: 3c01801c lui r1,0x801c
 
  001a8ed4: 3c01801c lui r1,0x801c
 
  001a8ed8: ac228a34 sw r2,-0x75cc(r1)
 
  001a8ed8: ac228a34 sw r2,-0x75cc(r1)
Line 32: Line 32:
 
  001a8ee8: 00031083 sra r2,r3,0x02
 
  001a8ee8: 00031083 sra r2,r3,0x02
 
  001a8eec: 00021080 sll r2,r2,0x02
 
  001a8eec: 00021080 sll r2,r2,0x02
  001a8ef0: 2442000c addiu r2,r2,0x000c
+
  001a8ef0: 2442000c addiu r2,r2,0x000c + c
 
  001a8ef4: 00821021 addu r2,r4,r2
 
  001a8ef4: 00821021 addu r2,r4,r2
 
  001a8ef8: 3c01801c lui r1,0x801c
 
  001a8ef8: 3c01801c lui r1,0x801c
  001a8efc: ac228a38 sw r2,-0x75c8(r1)
+
  001a8efc: ac228a38 sw r2,-0x75c8(r1) store
  001a8f00: 8c820020 lw r2,0x0020(r4)
+
  001a8f00: 8c820020 lw r2,0x0020(r4) return... pointer?
 
  001a8f04: 3c01801c lui r1,0x801c
 
  001a8f04: 3c01801c lui r1,0x801c
  001a8f08: ac208a3c sw r0,-0x75c4(r1)
+
  001a8f08: ac208a3c sw r0,-0x75c4(r1) 0
 
  001a8f0c: 03e00008 jr r31
 
  001a8f0c: 03e00008 jr r31
 
  001a8f10: 00000000 nop
 
  001a8f10: 00000000 nop
 
</font>
 
</font>

Revision as of 10:32, 3 November 2022

001a8e74: 03e00008 jr r31
001a8e78: 00000000 nop
001a8e7c: 8c83000c lw r3,0x000c(r4)			load 0xc* from secondary effect BB
001a8e80: 2482000c addiu r2,r4,0x000c			effect pointer + 0xc
001a8e84: 3c01801c lui r1,0x801c
001a8e88: ac228a2c sw r2,-0x75d4(r1)			store secondary effect data pointer
001a8e8c: 04610003 bgez r3,0x001a8e9c			branch if 0xc* is not negative, rounding and whatever.
001a8e90: 00031083 sra r2,r3,0x02
001a8e94: 24630003 addiu r3,r3,0x0003
001a8e98: 00031083 sra r2,r3,0x02
001a8e9c: 00021080 sll r2,r2,0x02			pointer? / 4 * 4 (rounds)
001a8ea0: 2442000c addiu r2,r2,0x000c			+ 0xc (start of proper data)
001a8ea4: 8c850014 lw r5,0x0014(r4)			load another thing? doesn't seem to do anything to arrows.
001a8ea8: 00821021 addu r2,r4,r2			pointer to particular type of data?
001a8eac: 3c01801c lui r1,0x801c
001a8eb0: ac228a30 sw r2,-0x75d0(r1)
001a8eb4: 04a10003 bgez r5,0x001a8ec4			branch if more than 0
001a8eb8: 00051083 sra r2,r5,0x02
001a8ebc: 24a50003 addiu r5,r5,0x0003
001a8ec0: 00051083 sra r2,r5,0x02
001a8ec4: 00021080 sll r2,r2,0x02
001a8ec8: 2442000c addiu r2,r2,0x000c			round off at 8 + 0xc
001a8ecc: 8c83001c lw r3,0x001c(r4)			pointer to More Data
001a8ed0: 00821021 addu r2,r4,r2			pointer to specific data?
001a8ed4: 3c01801c lui r1,0x801c
001a8ed8: ac228a34 sw r2,-0x75cc(r1)
001a8edc: 04610003 bgez r3,0x001a8eec
001a8ee0: 00031083 sra r2,r3,0x02
001a8ee4: 24630003 addiu r3,r3,0x0003
001a8ee8: 00031083 sra r2,r3,0x02
001a8eec: 00021080 sll r2,r2,0x02
001a8ef0: 2442000c addiu r2,r2,0x000c			+ c
001a8ef4: 00821021 addu r2,r4,r2
001a8ef8: 3c01801c lui r1,0x801c
001a8efc: ac228a38 sw r2,-0x75c8(r1)			store
001a8f00: 8c820020 lw r2,0x0020(r4)			return... pointer?
001a8f04: 3c01801c lui r1,0x801c
001a8f08: ac208a3c sw r0,-0x75c4(r1)			0
001a8f0c: 03e00008 jr r31
001a8f10: 00000000 nop