Difference between revisions of "Transfer Tiles Height Halves and Slope in Scratch Pad"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 001755a8: 3c038019 lui r3,0x8019 001755ac: 8c63f4e4 lw r3,-0x0b1c(r3) 001755b0: 00000000 nop 001755b4: 8c620000 lw r2,0x0000(r3) 001755b8: 000...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<font face='Courier New'>
+
'''BATTLE.BIN''' : Transfer Tiles Height Halves and Slope in Scratch Pad
 +
----------------------------------------------------------------------------------------------
 +
Parameters - Nothing
 
   
 
   
  001755a8: 3c038019 lui r3,0x8019
+
Returns - Nothing
  001755ac: 8c63f4e4 lw r3,-0x0b1c(r3)
+
  001755b0: 00000000 nop
+
Store Tile's Height Halves and Slope Type in Scratch Pad at [[1f800180|<span style=color:blue>0x1f800180</span>]] (Adress loaded at 8018FE44)
  001755b4: 8c620000 lw r2,0x0000(r3)
+
Used In AI moving process, while looping through all tiles
  001755b8: 00000000 nop
+
----------------------------------------------------------------------------------------------
  001755bc: 90420002 lbu r2,0x0002(r2)
+
  001755a8: 3c038019 lui r3,0x8019           |
  001755c0: 8c640000 lw r4,0x0000(r3)
+
  001755ac: 8c63f4e4 lw r3,-0x0b1c(r3)       |{{f/adr|Pointer to Scratch Pad (0x1f800180)}}
  001755c4: 00021040 sll r2,r2,0x01
+
  001755b0: 00000000 nop                     |
  001755c8: a062004c sb r2,0x004c(r3)
+
  001755b4: 8c620000 lw r2,0x0000(r3)         |{{f/adr|Pointer : Tile's data ( 8019f8cc )}}
  001755cc: 90820003 lbu r2,0x0003(r4)
+
  001755b8: 00000000 nop                     |
  001755d0: 8c640000 lw r4,0x0000(r3)
+
  001755bc: 90420002 lbu r2,0x0002(r2)       |{{f/load|Load Tile's Height}}
  001755d4: 3042001f andi r2,r2,0x001f
+
  001755c0: 8c640000 lw r4,0x0000(r3)         |{{f/adr|Pointer : Tile's data ( 8019f8cc )}}
  001755d8: a0620056 sb r2,0x0056(r3)
+
  001755c4: 00021040 sll r2,r2,0x01           |
  001755dc: 90820004 lbu r2,0x0004(r4)
+
  001755c8: a062004c sb r2,0x004c(r3)         |{{f/store|Store Tile's Height in S-Pad}}
  001755e0: 03e00008 jr r31
+
  001755cc: 90820003 lbu r2,0x0003(r4)       |{{f/load|Load Tile's Halves + Depht}}
  001755e4: a0620058 sb r2,0x0058(r3)
+
  001755d0: 8c640000 lw r4,0x0000(r3)         |{{f/adr|Pointer : Tile's data ( 8019f8cc )}}
</font>
+
  001755d4: 3042001f andi r2,r2,0x001f       |{{f/std|Keep Halves}}
 +
  001755d8: a0620056 sb r2,0x0056(r3)         |{{f/store|Store Tile's Halves in S-Pad }}
 +
  001755dc: 90820004 lbu r2,0x0004(r4)       |{{f/load|Tile's Slope Type}}
 +
  001755e0: 03e00008 jr r31                   |
 +
  001755e4: a0620058 sb r2,0x0058(r3)         |{{f/store|Store Tile's Slope Type in S-Pad }}
 +
=== Return Location ===
 +
'''BATTLE.BIN'''
 +
001752c4: [[00175288_-_001754cc]]
 +
00175eb4: [[00175ea0_-_00175fa0]]
 +
001779fc: [[001779dc_-_00177b60]]

Latest revision as of 12:27, 25 May 2023

BATTLE.BIN : Transfer Tiles Height Halves and Slope in Scratch Pad
----------------------------------------------------------------------------------------------
Parameters - Nothing

Returns - Nothing

Store Tile's Height Halves and Slope Type in Scratch Pad at 0x1f800180 (Adress loaded at 8018FE44)
Used In AI moving process, while looping through all tiles
----------------------------------------------------------------------------------------------
001755a8: 3c038019 lui r3,0x8019            |
001755ac: 8c63f4e4 lw r3,-0x0b1c(r3)        |Pointer to Scratch Pad (0x1f800180)
001755b0: 00000000 nop                      |
001755b4: 8c620000 lw r2,0x0000(r3)         |Pointer : Tile's data ( 8019f8cc )
001755b8: 00000000 nop                      |
001755bc: 90420002 lbu r2,0x0002(r2)        |Load Tile's Height
001755c0: 8c640000 lw r4,0x0000(r3)         |Pointer : Tile's data ( 8019f8cc )
001755c4: 00021040 sll r2,r2,0x01           |
001755c8: a062004c sb r2,0x004c(r3)         |Store Tile's Height in S-Pad
001755cc: 90820003 lbu r2,0x0003(r4)        |Load Tile's Halves + Depht
001755d0: 8c640000 lw r4,0x0000(r3)         |Pointer : Tile's data ( 8019f8cc )
001755d4: 3042001f andi r2,r2,0x001f        |Keep Halves
001755d8: a0620056 sb r2,0x0056(r3)         |Store Tile's Halves in S-Pad 
001755dc: 90820004 lbu r2,0x0004(r4)        |Tile's Slope Type
001755e0: 03e00008 jr r31                   |
001755e4: a0620058 sb r2,0x0058(r3)         |Store Tile's Slope Type in S-Pad 

Return Location

BATTLE.BIN
001752c4: 00175288_-_001754cc
00175eb4: 00175ea0_-_00175fa0
001779fc: 001779dc_-_00177b60