Return Various Tile Data

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Return panel data
0018401c: 3c02800e lui r2,0x800e
00184020: 90424e9c lbu r2,0x4e9c(r2)          load map max
00184024: 00000000 nop
00184028: 00c20018 mult r6,r2
0018402c: 00073a00 sll r7,r7,0x08
00184030: 00001012 mflo r2
00184034: 00e23821 addu r7,r7,r2
00184038: 00e53821 addu r7,r7,r5
0018403c: 000738c0 sll r7,r7,0x03
00184040: 3c028019 lui r2,0x8019
00184044: 2442f8cc addiu r2,r2,0xf8cc          load panel data
00184048: 00e23821 addu r7,r7,r2
0018404c: 2c82000e sltiu r2,r4,0x000e
00184050: 1040003b beq r2,r0,0x00184140
00184054: 00041080 sll r2,r4,0x02
00184058: 3c018017 lui r1,0x8017
0018405c: 00220821 addu r1,r1,r2
00184060: 8c2241c4 lw r2,0x41c4(r1)            load return address
00184064: 00000000 nop
00184068: 00400008 jr r2
0018406c: 00000000 nop
00184070: 90e20000 lbu r2,0x0000(r7)
00184074: 08061051 j 0x00184144                return Tile Type
00184078: 3042003f andi r2,r2,0x003f
0018407c: 90e20001 lbu r2,0x0001(r7)
00184080: 08061051 j 0x00184144                return ???
00184084: 00000000 nop
00184088: 90e20002 lbu r2,0x0002(r7)
0018408c: 08061051 j 0x00184144                return height (whole numbers)
00184090: 00000000 nop
00184094: 90e20003 lbu r2,0x0003(r7)
00184098: 08061051 j 0x00184144                return height (halves) + depth
0018409c: 3042001f andi r2,r2,0x001f
001840a0: 90e20003 lbu r2,0x0003(r7)
001840a4: 08061051 j 0x00184144                return ??
001840a8: 00021142 srl r2,r2,0x05
001840ac: 90e20004 lbu r2,0x0004(r7)
001840b0: 08061051 j 0x00184144                return slope height
001840b4: 00000000 nop
001840b8: 90e20005 lbu r2,0x0005(r7)
001840bc: 08061051 j 0x00184144                return ??? flags
001840c0: 3042001f andi r2,r2,0x001f
001840c4: 90e20006 lbu r2,0x0006(r7)
001840c8: 08061051 j 0x00184144                return panel selectable or not
001840cc: 30420001 andi r2,r2,0x0001
001840d0: 90e20006 lbu r2,0x0006(r7)
001840d4: 00000000 nop
001840d8: 00021042 srl r2,r2,0x01
001840dc: 08061051 j 0x00184144                return cannot target 
001840e0: 30420001 andi r2,r2,0x0001
001840e4: 90e20006 lbu r2,0x0006(r7)
001840e8: 00000000 nop
001840ec: 00021082 srl r2,r2,0x02
001840f0: 08061051 j 0x00184144               return sprite shadow
001840f4: 30420003 andi r2,r2,0x0003
001840f8: 90e20006 lbu r2,0x0006(r7)
001840fc: 00000000 nop
00184100: 00021102 srl r2,r2,0x04
00184104: 08061051 j 0x00184144              
00184108: 30420007 andi r2,r2,0x0007
0018410c: 90e20007 lbu r2,0x0007(r7)
00184110: 08061051 j 0x00184144
00184114: 3042000f andi r2,r2,0x000f
00184118: 90e20005 lbu r2,0x0005(r7)
0018411c: 00000000 nop
00184120: 00021142 srl r2,r2,0x05
00184124: 08061051 j 0x00184144
00184128: 30420001 andi r2,r2,0x0001
0018412c: 90e20005 lbu r2,0x0005(r7)
00184130: 00000000 nop
00184134: 00021182 srl r2,r2,0x06
00184138: 08061051 j 0x00184144
0018413c: 30420001 andi r2,r2,0x0001
00184140: 340200ff ori r2,r0,0x00ff
00184144: 03e00008 jr r31
00184148: 00000000 nop