Difference between revisions of "Store units coordinates"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0019f258: 3c03801a lui r3,0x801a 0019f25c: 8c630bbc lw r3,0x0bbc(r3) 0019f260: 90820000 lbu r2,0x0000(r4) 0019f264: 00000000 nop 0019f268: a06...")
 
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
+
Store units coordinates <font face='Courier New'>
0019f258: 3c03801a lui r3,0x801a
+
 
0019f25c: 8c630bbc lw r3,0x0bbc(r3)
+
  0019f258: 3c03801a lui r3,0x801a
0019f260: 90820000 lbu r2,0x0000(r4)
+
  0019f25c: 8c630bbc lw r3,0x0bbc(r3)
0019f264: 00000000 nop
+
  0019f260: 90820000 lbu r2,0x0000(r4)
0019f268: a0620047 sb r2,0x0047(r3)
+
  0019f264: 00000000 nop
0019f26c: 3c03801a lui r3,0x801a
+
  0019f268: a0620047 sb r2,0x0047(r3)             store as units X coordinate
0019f270: 8c630bbc lw r3,0x0bbc(r3)
+
  0019f26c: 3c03801a lui r3,0x801a
0019f274: 90820002 lbu r2,0x0002(r4)
+
  0019f270: 8c630bbc lw r3,0x0bbc(r3)
0019f278: 00000000 nop
+
  0019f274: 90820002 lbu r2,0x0002(r4)
0019f27c: a0620048 sb r2,0x0048(r3)
+
  0019f278: 00000000 nop
0019f280: 3c05801a lui r5,0x801a
+
  0019f27c: a0620048 sb r2,0x0048(r3)             store as units Y coordinate
0019f284: 8ca50bbc lw r5,0x0bbc(r5)
+
  0019f280: 3c05801a lui r5,0x801a
0019f288: 90830001 lbu r3,0x0001(r4)
+
  0019f284: 8ca50bbc lw r5,0x0bbc(r5)
0019f28c: 94a20048 lhu r2,0x0048(r5)
+
  0019f288: 90830001 lbu r3,0x0001(r4)           load map level
0019f290: 00031bc0 sll r3,r3,0x0f
+
  0019f28c: 94a20048 lhu r2,0x0048(r5)
0019f294: 30427fff andi r2,r2,0x7fff
+
  0019f290: 00031bc0 sll r3,r3,0x0f
0019f298: 00431025 or r2,r2,r3
+
  0019f294: 30427fff andi r2,r2,0x7fff
0019f29c: 03e00008 jr r31
+
  0019f298: 00431025 or r2,r2,r3
0019f2a0: a4a20048 sh r2,0x0048(r5)
+
  0019f29c: 03e00008 jr r31
</font>
+
  0019f2a0: a4a20048 sh r2,0x0048(r5)           store map level
 +
</font></font>

Revision as of 01:03, 18 February 2015

Store units coordinates

 0019f258: 3c03801a lui r3,0x801a
 0019f25c: 8c630bbc lw r3,0x0bbc(r3)
 0019f260: 90820000 lbu r2,0x0000(r4)
 0019f264: 00000000 nop
 0019f268: a0620047 sb r2,0x0047(r3)             store as units X coordinate
 0019f26c: 3c03801a lui r3,0x801a
 0019f270: 8c630bbc lw r3,0x0bbc(r3)
 0019f274: 90820002 lbu r2,0x0002(r4)
 0019f278: 00000000 nop
 0019f27c: a0620048 sb r2,0x0048(r3)             store as units Y coordinate
 0019f280: 3c05801a lui r5,0x801a
 0019f284: 8ca50bbc lw r5,0x0bbc(r5)
 0019f288: 90830001 lbu r3,0x0001(r4)            load map level
 0019f28c: 94a20048 lhu r2,0x0048(r5)
 0019f290: 00031bc0 sll r3,r3,0x0f
 0019f294: 30427fff andi r2,r2,0x7fff
 0019f298: 00431025 or r2,r2,r3
 0019f29c: 03e00008 jr r31
 0019f2a0: a4a20048 sh r2,0x0048(r5)            store map level