Difference between revisions of "Store some coordinate data"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00081af0: 3084ffff andi r4,r4,0xffff 00081af4: 00042080 sll r4,r4,0x02 00081af8: 3c018009 lui r1,0x8009 00081afc: 00240821 addu r1,r1,r4 00081...")
 
 
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 
   
 
   
  00081af0: 3084ffff andi r4,r4,0xffff
+
  00081b0c: 27bdffe8 addiu r29,r29,0xffe8
  00081af4: 00042080 sll r4,r4,0x02
+
00081b10: afb00010 sw r16,0x0010(r29)
  00081af8: 3c018009 lui r1,0x8009
+
00081b14: 00808021 addu r16,r4,r0 r16 = Misc Unit Data Pointer
  00081afc: 00240821 addu r1,r1,r4
+
00081b18: afbf0014 sw r31,0x0014(r29)
  00081b00: 9022474a lbu r2,0x474a(r1)
+
00081b1c: 9202007c lbu r2,0x007c(r16) Load Unit's X
  00081b04: 03e00008 jr r31
+
00081b20: 9205007d lbu r5,0x007d(r16) Load Unit's Y
  00081b08: 00000000 nop
+
00081b24: 9206007e lbu r6,0x007e(r16) Load Unit's Map Level
 +
00081b28: 9203007c lbu r3,0x007c(r16) Load Unit's X (again)
 +
00081b2c: a2020080 sb r2,0x0080(r16) Store Unit's X
 +
00081b30: 000310c0 sll r2,r3,0x03 X * 8
 +
00081b34: 00431023 subu r2,r2,r3 X * 7
 +
00081b38: 00021080 sll r2,r2,0x02 X * 28
 +
00081b3c: 9203007d lbu r3,0x007d(r16) Load Unit's Y (again)
 +
00081b40: 2442000e addiu r2,r2,0x000e X * 14 + 14
 +
00081b44: a2050081 sb r5,0x0081(r16) Store Unit's Y
 +
00081b48: a2060082 sb r6,0x0082(r16) Store Unit's Map Level
 +
00081b4c: a6020040 sh r2,0x0040(r16) Store X Mod?
 +
00081b50: 000310c0 sll r2,r3,0x03 Y * 8
 +
00081b54: 00431023 subu r2,r2,r3 Y * 7
 +
  00081b58: 00021080 sll r2,r2,0x02 Y * 28
 +
00081b5c: 2442000e addiu r2,r2,0x000e Y * 28 + 14
 +
00081b60: 0c01f4fd jal 0x0007d3f4              [[0007d3f4 - 0007d474]]
 +
  00081b64: a6020044 sh r2,0x0044(r16) Store Y Mod?
 +
  00081b68: 02002021 addu r4,r16,r0
 +
00081b6c: 0c022555 jal 0x00089554              [[00089554 - 00089578]]
 +
00081b70: a4820042 sh r2,0x0042(r4)
 +
  00081b74: 8fbf0014 lw r31,0x0014(r29)
 +
00081b78: 8fb00010 lw r16,0x0010(r29)
 +
  00081b7c: 27bd0018 addiu r29,r29,0x0018
 +
00081b80: 03e00008 jr r31
 +
  00081b84: 00000000 nop
 
</font>
 
</font>

Latest revision as of 17:25, 11 June 2016

00081b0c: 27bdffe8 addiu r29,r29,0xffe8
00081b10: afb00010 sw r16,0x0010(r29)
00081b14: 00808021 addu r16,r4,r0		r16 = Misc Unit Data Pointer
00081b18: afbf0014 sw r31,0x0014(r29)
00081b1c: 9202007c lbu r2,0x007c(r16)		Load Unit's X
00081b20: 9205007d lbu r5,0x007d(r16)		Load Unit's Y
00081b24: 9206007e lbu r6,0x007e(r16)		Load Unit's Map Level 
00081b28: 9203007c lbu r3,0x007c(r16)		Load Unit's X (again)
00081b2c: a2020080 sb r2,0x0080(r16)		Store Unit's X
00081b30: 000310c0 sll r2,r3,0x03		X * 8
00081b34: 00431023 subu r2,r2,r3		X * 7
00081b38: 00021080 sll r2,r2,0x02		X * 28
00081b3c: 9203007d lbu r3,0x007d(r16)		Load Unit's Y (again)
00081b40: 2442000e addiu r2,r2,0x000e		X * 14 + 14
00081b44: a2050081 sb r5,0x0081(r16)		Store Unit's Y
00081b48: a2060082 sb r6,0x0082(r16)		Store Unit's Map Level
00081b4c: a6020040 sh r2,0x0040(r16)		Store X Mod?
00081b50: 000310c0 sll r2,r3,0x03		Y * 8
00081b54: 00431023 subu r2,r2,r3		Y * 7
00081b58: 00021080 sll r2,r2,0x02		Y * 28
00081b5c: 2442000e addiu r2,r2,0x000e		Y * 28 + 14
00081b60: 0c01f4fd jal 0x0007d3f4              0007d3f4 - 0007d474
00081b64: a6020044 sh r2,0x0044(r16)		Store Y Mod?
00081b68: 02002021 addu r4,r16,r0
00081b6c: 0c022555 jal 0x00089554              00089554 - 00089578
00081b70: a4820042 sh r2,0x0042(r4)
00081b74: 8fbf0014 lw r31,0x0014(r29)
00081b78: 8fb00010 lw r16,0x0010(r29)
00081b7c: 27bd0018 addiu r29,r29,0x0018
00081b80: 03e00008 jr r31
00081b84: 00000000 nop