Some Tile - map rotation interaction

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00070820: 27bdffe8 addiu r29,r29,0xffe8
00070824: 00801021 addu r2,r4,r0
00070828: afbf0010 sw r31,0x0010(r29)
0007082c: 9044007c lbu r4,0x007c(r2)
00070830: 9045007d lbu r5,0x007d(r2)
00070834: 9046007e lbu r6,0x007e(r2)
00070838: 0c060fed jal 0x00183fb4			get tile data
0007083c: 00000000 nop
00070840: 3c03800a lui r3,0x800a
00070844: 84637786 lh r3,0x7786(r3)			load map rotation
00070848: 00000000 nop
0007084c: 00031823 subu r3,r0,r3
00070850: 30630fff andi r3,r3,0x0fff
00070854: 04610002 bgez r3,0x00070860
00070858: 00402021 addu r4,r2,r0
0007085c: 246303ff addiu r3,r3,0x03ff
00070860: 3c02800a lui r2,0x800a
00070864: 84427784 lh r2,0x7784(r2)			load map tilt
00070868: 00000000 nop
0007086c: 28420178 slti r2,r2,0x0178
00070870: 14400004 bne r2,r0,0x00070884
00070874: 00031a83 sra r3,r3,0x0a
00070878: 90820007 lbu r2,0x0007(r4)
0007087c: 0801c224 j 0x00070890
00070880: 00022102 srl r4,r2,0x04
00070884: 90820007 lbu r2,0x0007(r4)		load byte 7
00070888: 00000000 nop
0007088c: 3044000f andi r4,r2,0x000f
00070890: 34020001 ori r2,r0,0x0001
00070894: 10620018 beq r3,r2,0x000708f8		map rotation = tile flag?
00070898: 28620002 slti r2,r3,0x0002
0007089c: 10400005 beq r2,r0,0x000708b4
000708a0: 00000000 nop
000708a4: 1060000a beq r3,r0,0x000708d0
000708a8: 30820001 andi r2,r4,0x0001
000708ac: 0801c262 j 0x00070988
000708b0: 00000000 nop
000708b4: 34020002 ori r2,r0,0x0002
000708b8: 1062001a beq r3,r2,0x00070924
000708bc: 34020003 ori r2,r0,0x0003
000708c0: 10620023 beq r3,r2,0x00070950
000708c4: 30820008 andi r2,r4,0x0008
000708c8: 0801c262 j 0x00070988
000708cc: 00000000 nop
000708d0: 1040002d beq r2,r0,0x00070988
000708d4: 30820008 andi r2,r4,0x0008
000708d8: 14400003 bne r2,r0,0x000708e8
000708dc: 30820002 andi r2,r4,0x0002
000708e0: 0801c260 j 0x00070980
000708e4: 34040400 ori r4,r0,0x0400
000708e8: 14400023 bne r2,r0,0x00070978
000708ec: 30820004 andi r2,r4,0x0004
000708f0: 0801c260 j 0x00070980
000708f4: 2404fc00 addiu r4,r0,0xfc00
000708f8: 30820002 andi r2,r4,0x0002
000708fc: 10400022 beq r2,r0,0x00070988
00070900: 30820001 andi r2,r4,0x0001
00070904: 14400003 bne r2,r0,0x00070914
00070908: 30820004 andi r2,r4,0x0004
0007090c: 0801c260 j 0x00070980
00070910: 34040400 ori r4,r0,0x0400
00070914: 14400018 bne r2,r0,0x00070978
00070918: 30820008 andi r2,r4,0x0008
0007091c: 0801c260 j 0x00070980
00070920: 2404fc00 addiu r4,r0,0xfc00
00070924: 30820004 andi r2,r4,0x0004
00070928: 10400017 beq r2,r0,0x00070988
0007092c: 30820002 andi r2,r4,0x0002
00070930: 14400003 bne r2,r0,0x00070940
00070934: 30820008 andi r2,r4,0x0008
00070938: 0801c260 j 0x00070980
0007093c: 34040400 ori r4,r0,0x0400
00070940: 1440000d bne r2,r0,0x00070978
00070944: 30820001 andi r2,r4,0x0001
00070948: 0801c260 j 0x00070980
0007094c: 2404fc00 addiu r4,r0,0xfc00
00070950: 1040000d beq r2,r0,0x00070988
00070954: 30820004 andi r2,r4,0x0004
00070958: 14400003 bne r2,r0,0x00070968
0007095c: 30820001 andi r2,r4,0x0001
00070960: 0801c260 j 0x00070980
00070964: 34040400 ori r4,r0,0x0400
00070968: 14400003 bne r2,r0,0x00070978
0007096c: 30820002 andi r2,r4,0x0002
00070970: 0801c260 j 0x00070980
00070974: 2404fc00 addiu r4,r0,0xfc00
00070978: 14400003 bne r2,r0,0x00070988
0007097c: 34040800 ori r4,r0,0x0800
00070980: 0c01bc86 jal 0x0006f218
00070984: 00000000 nop
00070988: 8fbf0010 lw r31,0x0010(r29)
0007098c: 27bd0018 addiu r29,r29,0x0018
00070990: 03e00008 jr r31
00070994: 00000000 nop