Difference between revisions of "Store Sprite Display Data"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 
   
 
   
  0007b4ec: 000510c0 sll r2,r5,0x03 Section Counter * 8
+
  0007b4ec: 000510c0 sll r2,r5,0x03 graphic Counter * 8
  0007b4f0: 00451023 subu r2,r2,r5 Counter * 7
+
  0007b4f0: 00451023 subu r2,r2,r5 graphic Counter * 7
  0007b4f4: 2442000e addiu r2,r2,0x000e Starting Location = Counter * 7 + e
+
  0007b4f4: 2442000e addiu r2,r2,0x000e graphic Counter * 7 + e
 
  0007b4f8: 97a30010 lhu r3,0x0010(r29) Load X Load Location
 
  0007b4f8: 97a30010 lhu r3,0x0010(r29) Load X Load Location
 
  0007b4fc: 97a50014 lhu r5,0x0014(r29) Load Y Load Location
 
  0007b4fc: 97a50014 lhu r5,0x0014(r29) Load Y Load Location
 
  0007b500: 97a80018 lhu r8,0x0018(r29) Load Image Width
 
  0007b500: 97a80018 lhu r8,0x0018(r29) Load Image Width
 
  0007b504: 97a9001c lhu r9,0x001c(r29) Load Image Height
 
  0007b504: 97a9001c lhu r9,0x001c(r29) Load Image Height
  0007b508: 97aa0020 lhu r10,0x0020(r29) Load Y Load Location byte 2?
+
  0007b508: 97aa0020 lhu r10,0x0020(r29) Load Y Load Location byte 2? (reversal bytes?)
 
  0007b50c: 00822021 addu r4,r4,r2 Display Data Pointer + Starting Location
 
  0007b50c: 00822021 addu r4,r4,r2 Display Data Pointer + Starting Location
 
  0007b510: a0860000 sb r6,0x0000(r4) Store X Shift
 
  0007b510: a0860000 sb r6,0x0000(r4) Store X Shift
Line 17: Line 17:
 
  0007b524: a0890003 sb r9,0x0003(r4) Store Image Height
 
  0007b524: a0890003 sb r9,0x0003(r4) Store Image Height
 
  0007b528: 03e00008 jr r31
 
  0007b528: 03e00008 jr r31
  0007b52c: a08a0006 sb r10,0x0006(r4) Store Y Load Location byte 2?
+
  0007b52c: a08a0006 sb r10,0x0006(r4) Store Y Load Location byte 2? (reversal bytes?)
 
</font>
 
</font>

Latest revision as of 13:02, 7 October 2022

0007b4ec: 000510c0 sll r2,r5,0x03		graphic Counter * 8
0007b4f0: 00451023 subu r2,r2,r5		graphic Counter * 7
0007b4f4: 2442000e addiu r2,r2,0x000e		graphic Counter * 7 + e
0007b4f8: 97a30010 lhu r3,0x0010(r29)		Load X Load Location
0007b4fc: 97a50014 lhu r5,0x0014(r29)		Load Y Load Location
0007b500: 97a80018 lhu r8,0x0018(r29)		Load Image Width
0007b504: 97a9001c lhu r9,0x001c(r29)		Load Image Height
0007b508: 97aa0020 lhu r10,0x0020(r29)		Load Y Load Location byte 2? (reversal bytes?)
0007b50c: 00822021 addu r4,r4,r2		Display Data Pointer + Starting Location
0007b510: a0860000 sb r6,0x0000(r4)		Store X Shift
0007b514: a0870001 sb r7,0x0001(r4)		Store Y Shift
0007b518: a0830004 sb r3,0x0004(r4)		Store X Load Location
0007b51c: a0850005 sb r5,0x0005(r4)		Store Y Load Location
0007b520: a0880002 sb r8,0x0002(r4)		Store Image Width
0007b524: a0890003 sb r9,0x0003(r4)		Store Image Height
0007b528: 03e00008 jr r31
0007b52c: a08a0006 sb r10,0x0006(r4)		Store Y Load Location byte 2? (reversal bytes?)