Data setting from menu selections

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

0013f520: 3c02801a lui r2,0x801a
0013f524: 8c42f3ac lw r2,-0x0c54(r2)
0013f528: 3c038016 lui r3,0x8016
0013f52c: 94635ff6 lhu r3,0x5ff6(r3)
0013f530: 27bdffe0 addiu r29,r29,0xffe0
0013f534: afb10014 sw r17,0x0014(r29)
0013f538: 00808821 addu r17,r4,r0
0013f53c: afb00010 sw r16,0x0010(r29)
0013f540: afbf0018 sw r31,0x0018(r29)
0013f544: 3c018017 lui r1,0x8017
0013f548: ac224048 sw r2,0x4048(r1)				load skillset data
0013f54c: 10600003 beq r3,r0,0x0013f55c                        branch if no tutorial
0013f550: 00a08021 addu r16,r5,r0                              use p2
0013f554: 3c108017 lui r16,0x8017
0013f558: 8e10d9b4 lw r16,-0x264c(r16)                         otherwise use 0x8017d9b4
0013f55c: 0c04fd9a jal 0x0013f668                              Store Selected Tile Data
0013f560: 00000000 nop
0013f564: 2404fffe addiu r4,r0,0xfffe
0013f568: 34030003 ori r3,r0,0x0003
0013f56c: 3c028016 lui r2,0x8016
0013f570: 24425eea addiu r2,r2,0x5eea
0013f574: a4440000 sh r4,0x0000(r2)
0013f578: 2463ffff addiu r3,r3,0xffff
0013f57c: 0461fffd bgez r3,0x0013f574
0013f580: 2442fffe addiu r2,r2,0xfffe
0013f584: 02202021 addu r4,r17,r0
0013f588: 0c050b56 jal 0x00142d58                              0x142d58
0013f58c: 02002821 addu r5,r16,r0
0013f590: 0c04ee26 jal 0x0013b898
0013f594: 00000000 nop
0013f598: 0c05046d jal 0x001411b4				set used item based on menu selections
0013f59c: 00000000 nop
0013f5a0: 34040008 ori r4,r0,0x0008
0013f5a4: 0c053325 jal 0x0014cc94
0013f5a8: 00408021 addu r16,r2,r0
0013f5ac: 10400006 beq r2,r0,0x0013f5c8
0013f5b0: 34020042 ori r2,r0,0x0042
0013f5b4: 3c038017 lui r3,0x8017
0013f5b8: 8c63b8b8 lw r3,-0x4748(r3)
0013f5bc: 00000000 nop
0013f5c0: 14620009 bne r3,r2,0x0013f5e8
0013f5c4: 00000000 nop
0013f5c8: 0c053325 jal 0x0014cc94
0013f5cc: 34040007 ori r4,r0,0x0007
0013f5d0: 14400005 bne r2,r0,0x0013f5e8
0013f5d4: 00000000 nop
0013f5d8: 0c053325 jal 0x0014cc94
0013f5dc: 34040006 ori r4,r0,0x0006
0013f5e0: 1040000f beq r2,r0,0x0013f620
0013f5e4: 34020001 ori r2,r0,0x0001
0013f5e8: 3c028017 lui r2,0x8017
0013f5ec: 9442922a lhu r2,-0x6dd6(r2)
0013f5f0: 00000000 nop
0013f5f4: 14400016 bne r2,r0,0x0013f650
0013f5f8: 02001021 addu r2,r16,r0
0013f5fc: 34020001 ori r2,r0,0x0001
0013f600: 3c018017 lui r1,0x8017
0013f604: a422922a sh r2,-0x6dd6(r1)
0013f608: 0c0237b6 jal 0x0008ded8
0013f60c: 00000000 nop
0013f610: 3c018017 lui r1,0x8017
0013f614: a4229228 sh r2,-0x6dd8(r1)
0013f618: 0804fd91 j 0x0013f644
0013f61c: 34040002 ori r4,r0,0x0002
0013f620: 3c038017 lui r3,0x8017
0013f624: 9463922a lhu r3,-0x6dd6(r3)
0013f628: 00000000 nop
0013f62c: 14620008 bne r3,r2,0x0013f650
0013f630: 02001021 addu r2,r16,r0
0013f634: 3c048017 lui r4,0x8017
0013f638: 94849228 lhu r4,-0x6dd8(r4)
0013f63c: 3c018017 lui r1,0x8017
0013f640: a420922a sh r0,-0x6dd6(r1)
0013f644: 0c04f680 jal 0x0013da00
0013f648: 00000000 nop
0013f64c: 02001021 addu r2,r16,r0
0013f650: 8fbf0018 lw r31,0x0018(r29)
0013f654: 8fb10014 lw r17,0x0014(r29)
0013f658: 8fb00010 lw r16,0x0010(r29)
0013f65c: 27bd0020 addiu r29,r29,0x0020
0013f660: 03e00008 jr r31
0013f664: 00000000 nop

Return Locations

Battle.bin 
0007533c: Set move/act based on skillset