000f0c8c - 000f0e44

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

< WORLD.BIN Routines

# BATTLE.BIN: 0013d320 - 0013d4d8

000f0c8c: 27bdffe8 addiu r29,r29,0xffe8
000f0c90: afbf0014 sw r31,0x0014(r29)
000f0c94: afb00010 sw r16,0x0010(r29)
000f0c98: 3c018015 lui r1,0x8015
000f0c9c: ac203328 sw r0,0x3328(r1)
000f0ca0: 0c03ca31 jal 0x000f28c4
000f0ca4: 00000000 nop
000f0ca8: 0c03ca78 jal 0x000f29e0
000f0cac: 00000000 nop
000f0cb0: 0c03cc4b jal 0x000f312c
000f0cb4: 00000000 nop
000f0cb8: 3c038015 lui r3,0x8015
000f0cbc: 946332be lhu r3,0x32be(r3)
000f0cc0: 34020002 ori r2,r0,0x0002
000f0cc4: 14620006 bne r3,r2,0x000f0ce0
000f0cc8: 34040990 ori r4,r0,0x0990
000f0ccc: 34020003 ori r2,r0,0x0003
000f0cd0: 3c018015 lui r1,0x8015
000f0cd4: a42232be sh r2,0x32be(r1)
000f0cd8: 0803c340 j 0x000f0d00
000f0cdc: 00000000 nop
000f0ce0: 3c068001 lui r6,0x8001
000f0ce4: 8cc60008 lw r6,0x0008(r6)
000f0ce8: 3c028004 lui r2,0x8004
000f0cec: 24424954 addiu r2,r2,0x4954
000f0cf0: 3c01801d lui r1,0x801d
000f0cf4: ac22d78c sw r2,-0x2874(r1)
000f0cf8: 0c0400e1 jal 0x00100384       # Call Inner Subroutine (WORLD.BIN)
000f0cfc: 3c050002 lui r5,0x0002
000f0d00: 0c070d2d jal 0x001c34b4       # Load Scenario Conditionals
000f0d04: 00000000 nop
000f0d08: 00408021 addu r16,r2,r0
000f0d0c: 3c038015 lui r3,0x8015
000f0d10: 946332be lhu r3,0x32be(r3)
000f0d14: 34020003 ori r2,r0,0x0003
000f0d18: 10620005 beq r3,r2,0x000f0d30
000f0d1c: 00000000 nop
000f0d20: 0c071ff9 jal 0x001c7fe4       # Call Find Formation Palette Index (ATTACK.OUT)
000f0d24: 00000000 nop
000f0d28: 0c072001 jal 0x001c8004       # Call Portrait loading routine (ATTACK.OUT)
000f0d2c: 00000000 nop
000f0d30: 3c018015 lui r1,0x8015
000f0d34: ac203344 sw r0,0x3344(r1)
000f0d38: 3c018015 lui r1,0x8015
000f0d3c: ac203348 sw r0,0x3348(r1)
000f0d40: 0c03878e jal 0x000e1e38
000f0d44: 00000000 nop
000f0d48: 1040001f beq r2,r0,0x000f0dc8
000f0d4c: 3c06fffe lui r6,0xfffe
000f0d50: 34c67fff ori r6,r6,0x7fff
000f0d54: 3c04ffe7 lui r4,0xffe7
000f0d58: 3484ffff ori r4,r4,0xffff
000f0d5c: 3c08e7ff lui r8,0xe7ff
000f0d60: 3508ffff ori r8,r8,0xffff
000f0d64: 3c07fe7f lui r7,0xfe7f
000f0d68: 34e7ffff ori r7,r7,0xffff
000f0d6c: 340200ff ori r2,r0,0x00ff
000f0d70: 3c058004 lui r5,0x8004
000f0d74: 24a573ac addiu r5,r5,0x73ac
000f0d78: 3c018015 lui r1,0x8015
000f0d7c: ac223320 sw r2,0x3320(r1)
000f0d80: 8ca20000 lw r2,0x0000(r5)
000f0d84: 2403fff8 addiu r3,r0,0xfff8
000f0d88: 00431024 and r2,r2,r3
000f0d8c: 2403fe3f addiu r3,r0,0xfe3f
000f0d90: 00431024 and r2,r2,r3
000f0d94: 34420040 ori r2,r2,0x0040
000f0d98: 00461024 and r2,r2,r6
000f0d9c: 00441024 and r2,r2,r4
000f0da0: 3c030008 lui r3,0x0008
000f0da4: 00431025 or r2,r2,r3
000f0da8: 00481024 and r2,r2,r8
000f0dac: 3c048004 lui r4,0x8004
000f0db0: 8c8473ac lw r4,0x73ac(r4)
000f0db4: 00471024 and r2,r2,r7
000f0db8: 3c01801a lui r1,0x801a
000f0dbc: ac24a200 sw r4,-0x5e00(r1)
000f0dc0: 0803c374 j 0x000f0dd0
000f0dc4: aca20000 sw r2,0x0000(r5)
000f0dc8: 3c018015 lui r1,0x8015
000f0dcc: ac203320 sw r0,0x3320(r1)
000f0dd0: 0c070c1e jal 0x001c3078
000f0dd4: 00000000 nop
000f0dd8: 12000007 beq r16,r0,0x000f0df8
000f0ddc: 3404002a ori r4,r0,0x002a
000f0de0: 3c05800f lui r5,0x800f
000f0de4: 24a50b64 addiu r5,r5,0x0b64
000f0de8: 0c03ff5c jal 0x000ffd70
000f0dec: 34040006 ori r4,r0,0x0006
000f0df0: 0803c38d j 0x000f0e34
000f0df4: 34020001 ori r2,r0,0x0001
000f0df8: 3c018015 lui r1,0x8015
000f0dfc: a42032b8 sh r0,0x32b8(r1)
000f0e00: 3c018015 lui r1,0x8015
000f0e04: a42032ba sh r0,0x32ba(r1)
000f0e08: 0c03c2f9 jal 0x000f0be4
000f0e0c: 00002821 addu r5,r0,r0
000f0e10: 0c072522 jal 0x001c9488
000f0e14: 00000000 nop
000f0e18: 0c0727b0 jal 0x001c9ec0
000f0e1c: 00000000 nop
000f0e20: 3c05801c lui r5,0x801c
000f0e24: 24a53f44 addiu r5,r5,0x3f44
000f0e28: 0c03ff5c jal 0x000ffd70
000f0e2c: 34040006 ori r4,r0,0x0006
000f0e30: 00001021 addu r2,r0,r0
000f0e34: 8fbf0014 lw r31,0x0014(r29)
000f0e38: 8fb00010 lw r16,0x0010(r29)
000f0e3c: 27bd0018 addiu r29,r29,0x0018
000f0e40: 03e00008 jr r31
000f0e44: 00000000 nop