Game Flow Control routine

From Final Fantasy Hacktics Wiki
Revision as of 21:45, 1 February 2014 by Choto (talk | contribs)
Jump to navigation Jump to search
00079a98: 27bdffe0 addiu r29,r29,0xffe0
00079a9c: afbf001c sw r31,0x001c(r29)
00079aa0: afb20018 sw r18,0x0018(r29)
00079aa4: afb10014 sw r17,0x0014(r29)
00079aa8: 0c03b841 jal 0x000ee104
00079aac: afb00010 sw r16,0x0010(r29)
00079ab0: 0c01eaf4 jal 0x0007abd0			initialize a bunch of data
00079ab4: 00000000 nop
00079ab8: 0c06b58b jal 0x001ad62c			initialize data
00079abc: 00000000 nop
00079ac0: 3c020001 lui r2,0x0001
00079ac4: 344296b0 ori r2,r2,0x96b0
00079ac8: 3c01800c lui r1,0x800c
00079acc: 00220821 addu r1,r1,r2
00079ad0: a0207ce9 sb r0,0x7ce9(r1)
00079ad4: 2442cd2a addiu r2,r2,0xcd2a
00079ad8: 0441fffb bgez r2,0x 00079ac8
00079adc: 00000000 nop
00079ae0: 3c12800f lui r18,0x800f
00079ae4: 26525b9c addiu r18,r18,0x5b9c
00079ae8: 3c11800e lui r17,0x800e
00079aec: 26314e74 addiu r17,r17,0x4e74
00079af0: 0c01e4a8 jal 0x 000792a0			panel/tile initialization
00079af4: 00000000 nop
00079af8: 3c028004 lui r2,0x8004
00079afc: 8c4273ac lw r2,0x73ac(r2)
00079b00: 3c01800e lui r1,0x800e
00079b04: ac204e8c sw r0,0x4e8c(r1)
00079b08: 30420007 andi r2,r2,0x0007
00079b0c: 3c018009 lui r1,0x8009
00079b10: ac2260c0 sw r2,0x60c0(r1)
00079b14: 0c024d95 jal 0x00093654
00079b18: 00000000 nop
00079b1c: 0c01ebb5 jal 0x0007aed4
00079b20: 00000000 nop
00079b24: 0c007472 jal 0x0001d1c8
00079b28: 34040200 ori r4,r0,0x0200
00079b2c: 0c01129f jal 0x00044a7c
00079b30: 00000000 nop
00079b34: 0c01c0b9 jal 0x000702e4
00079b38: 00000000 nop
00079b3c: 8e220000 lw r2,0x0000(r17)
00079b40: 00000000 nop
00079b44: 00021023 subu r2,r0,r2
00079b48: 04410002 bgez r2,0x 00079b54
00079b4c: 00000000 nop
00079b50: 24420fff addiu r2,r2,0x0fff
00079b54: 8e230004 lw r3,0x0004(r17)
00079b58: 00021303 sra r2,r2,0x0c
00079b5c: a6420000 sh r2,0x0000(r18)
00079b60: 00031023 subu r2,r0,r3
00079b64: 04410002 bgez r2,0x 00079b70
00079b68: 00000000 nop
00079b6c: 24420fff addiu r2,r2,0x0fff
00079b70: 8e230008 lw r3,0x0008(r17)
00079b74: 00021303 sra r2,r2,0x0c
00079b78: a6420002 sh r2,0x0002(r18)
00079b7c: 00031023 subu r2,r0,r3
00079b80: 04410002 bgez r2,0x 00079b8c
00079b84: 00000000 nop
00079b88: 24420fff addiu r2,r2,0x0fff
00079b8c: 00021303 sra r2,r2,0x0c
00079b90: a6420004 sh r2,0x0004(r18)
00079b94: 3c10800a lui r16,0x800a
00079b98: 26108a24 addiu r16,r16,0x8a24
00079b9c: 3c05800a lui r5,0x800a
00079ba0: 24a57784 addiu r5,r5,0x7784
00079ba4: 3c06800a lui r6,0x800a
00079ba8: 24c677b0 addiu r6,r6,0x77b0
00079bac: 3c07800c lui r7,0x800c
00079bb0: 24e77ca0 addiu r7,r7,0x7ca0
00079bb4: 0c03ba57 jal 0x000ee95c
00079bb8: 02002021 addu r4,r16,r0
00079bbc: 0c03a103 jal 0x000e840c
00079bc0: 02002021 addu r4,r16,r0
00079bc4: 0c068710 jal 0x001a1c40
00079bc8: 00000000 nop
00079bcc: 10400005 beq r2,r0,0x 00079be4
00079bd0: 34020002 ori r2,r0,0x0002
00079bd4: 3c018009 lui r1,0x8009
00079bd8: ac22612c sw r2,0x612c(r1)
00079bdc: 0801e6fb j 0x 00079bec
00079be0: 00000000 nop
00079be4: 3c018009 lui r1,0x8009
00079be8: ac20612c sw r0,0x612c(r1)
00079bec: 3c038009 lui r3,0x8009
00079bf0: 8c6360e4 lw r3,0x60e4(r3)			load display byte
00079bf4: 00000000 nop
00079bf8: 2c62003c sltiu r2,r3,0x003c
00079bfc: 10400007 beq r2,r0,0x 00079c1c
00079c00: 00031080 sll r2,r3,0x02
00079c04: 3c018006 lui r1,0x8006
00079c08: 00220821 addu r1,r1,r2
00079c0c: 8c2276a8 lw r2,0x76a8(r1)			
00079c10: 00000000 nop
00079c14: 00400008 jr r2
00079c18: 00000000 nop


000676a8: 80079c1c lb r7,-0x63e4(r0)	Free Cursor
000676ac: 80079c2c lb r7,-0x63d4(r0)
000676b0: 80079c3c lb r7,-0x63c4(r0)
000676b4: 80079c4c lb r7,-0x63b4(r0)	Action menus
000676b8: 80079c5c lb r7,-0x63a4(r0)
000676bc: 80079c6c lb r7,-0x6394(r0)
000676c0: 80079c7c lb r7,-0x6384(r0)
000676c4: 80079c8c lb r7,-0x6374(r0)	AT/Options/Unit list
000676c8: 80079c9c lb r7,-0x6364(r0)
000676cc: 80079cac lb r7,-0x6354(r0)
000676d0: 80079cbc lb r7,-0x6344(r0)
000676d4: 80079cfc lb r7,-0x6304(r0)
000676d8: 80079d0c lb r7,-0x62f4(r0)
000676dc: 80079d1c lb r7,-0x62e4(r0)
000676e0: 80079d2c lb r7,-0x62d4(r0)
000676e4: 80079d3c lb r7,-0x62c4(r0)
000676e8: 80079d4c lb r7,-0x62b4(r0)
000676ec: 80079d5c lb r7,-0x62a4(r0)
000676f0: 80079d6c lb r7,-0x6294(r0)	selecting direction for wait
000676f4: 80079d7c lb r7,-0x6284(r0)	specify direction for wait message
000676f8: 80079d8c lb r7,-0x6274(r0)
000676fc: 80079d9c lb r7,-0x6264(r0)	specify target with cursor message / can't execute action
00067700: 80079dac lb r7,-0x6254(r0)	Targeting, no target selected
00067704: 80079dbc lb r7,-0x6244(r0)	Select target within firing range message
00067708: 80079dcc lb r7,-0x6234(r0)	Targeting, target selected
0006770c: 80079ddc lb r7,-0x6224(r0)
00067710: 80079dec lb r7,-0x6214(r0)	Confirm action
00067714: 80079dfc lb r7,-0x6204(r0)
00067718: 80079e0c lb r7,-0x61f4(r0)
0006771c: 80079e1c lb r7,-0x61e4(r0)
00067720: 80079e2c lb r7,-0x61d4(r0)	0x29 - Action being taken
00067724: 80079edc lb r7,-0x6124(r0)
00067728: 80079eec lb r7,-0x6114(r0)	0x2B - ability effect?
0006772c: 80079efc lb r7,-0x6104(r0)
00067730: 80079f0c lb r7,-0x60f4(r0)
00067734: 80079f1c lb r7,-0x60e4(r0)
00067738: 80079f2c lb r7,-0x60d4(r0)
0006773c: 80079ccc lb r7,-0x6334(r0)
00067740: 80079cdc lb r7,-0x6324(r0)
00067744: 80079cec lb r7,-0x6314(r0)	JP/Exp gain
00067748: 80079eac lb r7,-0x6154(r0)
0006774c: 80079e3c lb r7,-0x61c4(r0)
00067750: 80079e4c lb r7,-0x61b4(r0)	Ability effect 1
00067754: 80079e5c lb r7,-0x61a4(r0)	ability effect 2
00067758: 80079e6c lb r7,-0x6194(r0)	ability effect 3
0006775c: 80079e7c lb r7,-0x6184(r0)
00067760: 80079e8c lb r7,-0x6174(r0)
00067764: 80079e9c lb r7,-0x6164(r0)
00067768: 80079ebc lb r7,-0x6144(r0)
0006776c: 80079ecc lb r7,-0x6134(r0)
00067770: 80079c1c lb r7,-0x63e4(r0)
00067774: 80079f3c lb r7,-0x60c4(r0)
00067778: 80079f4c lb r7,-0x60b4(r0)
0006777c: 80079f5c lb r7,-0x60a4(r0)
00067780: 80079f6c lb r7,-0x6094(r0)
00067784: 80079f7c lb r7,-0x6084(r0)
00067788: 80079f8c lb r7,-0x6074(r0)
0006778c: 80079f9c lb r7,-0x6064(r0)
00067790: 80079fac lb r7,-0x6054(r0)
00067794: 80079fbc lb r7,-0x6044(r0)