Difference between revisions of "Transfer Tiles Height Halves and Slope in Scratch Pad"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
Returns - Nothing | Returns - Nothing | ||
− | Store Tile's Height Halves and Slope Type in Scratch Pad at 0x1f800180 (Adress loaded at 8018FE44) | + | Store Tile's Height Halves and Slope Type in Scratch Pad at [[1f800180|<span style=color:blue>0x1f800180</span>]] (Adress loaded at 8018FE44) |
Used In AI moving process, while looping through all tiles | Used In AI moving process, while looping through all tiles | ||
---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
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