Proposition resolution

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search


Proposition rewards?
00078bb8: 27bdffc0 addiu r29,r29,0xffc0
00078bbc: afb40030 sw r20,0x0030(r29)
00078bc0: 0080a021 addu r20,r4,r0
00078bc4: afbf0038 sw r31,0x0038(r29)
00078bc8: afb50034 sw r21,0x0034(r29)
00078bcc: afb3002c sw r19,0x002c(r29)
00078bd0: afb20028 sw r18,0x0028(r29)
00078bd4: afb10024 sw r17,0x0024(r29)
00078bd8: afb00020 sw r16,0x0020(r29)
00078bdc: 8e820000 lw r2,0x0000(r20)
00078be0: 00000000 nop
00078be4: 00021840 sll r3,r2,0x01
00078be8: 00621821 addu r3,r3,r2
00078bec: 00031880 sll r3,r3,0x02
00078bf0: 00621821 addu r3,r3,r2
00078bf4: 00031880 sll r3,r3,0x02
00078bf8: 3c01800c lui r1,0x800c
00078bfc: 2421bc70 addiu r1,r1,0xbc70			bbc70
00078c00: 00230821 addu r1,r1,r3
00078c04: 8c220000 lw r2,0x0000(r1)				load ??
00078c08: 00000000 nop
00078c0c: 30420100 andi r2,r2,0x0100
00078c10: 14400152 bne r2,r0,0x0007915c			branch if ?? not pressed?
00078c14: 34020002 ori r2,r0,0x0002

00078c18: 8e830010 lw r3,0x0010(r20)
00078c1c: 00000000 nop
00078c20: 14620024 bne r3,r2,0x00078cb4
00078c24: 34020001 ori r2,r0,0x0001

00078c28: 3c02800d lui r2,0x800d
00078c2c: 8c42462c lw r2,0x462c(r2)
00078c30: 00000000 nop
00078c34: 14400149 bne r2,r0,0x0007915c
00078c38: 00000000 nop
00078c3c: 3c02800d lui r2,0x800d
00078c40: 8c424624 lw r2,0x4624(r2)
00078c44: 00000000 nop
00078c48: 14400144 bne r2,r0,0x0007915c
00078c4c: 00000000 nop
00078c50: 3c02800c lui r2,0x800c
00078c54: 8c42b4f0 lw r2,-0x4b10(r2)
00078c58: 00000000 nop
00078c5c: 2442ffff addiu r2,r2,0xffff			decrement counter
00078c60: 3c01800c lui r1,0x800c
00078c64: ac22b4f0 sw r2,-0x4b10(r1)
00078c68: 0c01e9cb jal 0x0007a72c
00078c6c: 00000000 nop
00078c70: 10400005 beq r2,r0,0x00078c88
00078c74: 00000000 nop
00078c78: 0c01e942 jal 0x0007a508
00078c7c: 00000000 nop
00078c80: 0801e457 j 0x0007915c
00078c84: 00000000 nop
00078c88: 3c02800a lui r2,0x800a
00078c8c: 8c42f20c lw r2,-0x0df4(r2)
00078c90: 00000000 nop
00078c94: 14400003 bne r2,r0,0x00078ca4
00078c98: 34040003 ori r4,r0,0x0003
00078c9c: 0c024354 jal 0x00090d50			play sound
00078ca0: 34050010 ori r5,r0,0x0010
00078ca4: 0c01dc5d jal 0x00077174
00078ca8: 00000000 nop
00078cac: 0801e457 j 0x0007915c
00078cb0: 00000000 nop

00078cb4: 1462001d bne r3,r2,0x00078d2c
00078cb8: 00000000 nop
00078cbc: 3c02800d lui r2,0x800d
00078cc0: 8c42462c lw r2,0x462c(r2)
00078cc4: 00000000 nop
00078cc8: 14400124 bne r2,r0,0x0007915c
00078ccc: 00000000 nop
00078cd0: 3c02800d lui r2,0x800d
00078cd4: 8c424624 lw r2,0x4624(r2)
00078cd8: 00000000 nop
00078cdc: 1440011f bne r2,r0,0x0007915c
00078ce0: 00000000 nop
00078ce4: 0c03ffbb jal 0x000ffeec
00078ce8: 3404000e ori r4,r0,0x000e
00078cec: 1440011b bne r2,r0,0x0007915c
00078cf0: 00000000 nop
00078cf4: 0c01e9cb jal 0x0007a72c
00078cf8: 00000000 nop
00078cfc: 14400116 bne r2,r0,0x00079158
00078d00: 34020002 ori r2,r0,0x0002
00078d04: 3c02800a lui r2,0x800a
00078d08: 8c42f20c lw r2,-0x0df4(r2)
00078d0c: 00000000 nop
00078d10: 14400111 bne r2,r0,0x00079158
00078d14: 34020002 ori r2,r0,0x0002
00078d18: 34040001 ori r4,r0,0x0001
00078d1c: 0c024354 jal 0x00090d50			play sound
00078d20: 34050221 ori r5,r0,0x0221
00078d24: 0801e456 j 0x00079158
00078d28: 34020002 ori r2,r0,0x0002

00078d2c: 8e820028 lw r2,0x0028(r20)
00078d30: 00000000 nop
00078d34: 10400006 beq r2,r0,0x00078d50
00078d38: 2442ffff addiu r2,r2,0xffff
00078d3c: 14400004 bne r2,r0,0x00078d50
00078d40: ae820028 sw r2,0x0028(r20)
00078d44: 3404004d ori r4,r0,0x004d
00078d48: 0c0049d2 jal 0x00012748
00078d4c: 3405004e ori r5,r0,0x004e

00078d50: 3c02800c lui r2,0x800c
00078d54: 8c42c2f0 lw r2,-0x3d10(r2)
00078d58: 00000000 nop
00078d5c: 30420060 andi r2,r2,0x0060
00078d60: 104000fe beq r2,r0,0x0007915c
00078d64: 00000000 nop
00078d68: 3c02800a lui r2,0x800a
00078d6c: 8c42f244 lw r2,-0x0dbc(r2)
00078d70: 00000000 nop
00078d74: 2442ffff addiu r2,r2,0xffff			decrement
00078d78: 3c01800a lui r1,0x800a
00078d7c: ac22f244 sw r2,-0x0dbc(r1)
00078d80: 3c02800a lui r2,0x800a
00078d84: 8c42f198 lw r2,-0x0e68(r2)
00078d88: 8e83002c lw r3,0x002c(r20)			load proposition ID?
00078d8c: 2442ffff addiu r2,r2,0xffff			decrement
00078d90: 3c01800a lui r1,0x800a
00078d94: ac22f198 sw r2,-0x0e68(r1)
00078d98: 000310c0 sll r2,r3,0x03
00078d9c: 00431021 addu r2,r2,r3
00078da0: 3c018005 lui r1,0x8005
00078da4: 24217eed addiu r1,r1,0x7eed
00078da8: 00220821 addu r1,r1,r2
00078dac: 90240000 lbu r4,0x0000(r1)			load proposition ID
00078db0: 0c03bc6a jal 0x000ef1a8				load proposition activation
00078db4: 24840360 addiu r4,r4,0x0360
00078db8: 3c15800a lui r21,0x800a
00078dbc: 26b5f1fc addiu r21,r21,0xf1fc
00078dc0: 8ea30000 lw r3,0x0000(r21)
00078dc4: 00000000 nop
00078dc8: 14600002 bne r3,r0,0x00078dd4			
00078dcc: 3045fffd andi r5,r2,0xfffd			remove 1,2 flags
00078dd0: 34a50004 ori r5,r5,0x0004				add 4 flag	(prop succeeded)
00078dd4: 8e83002c lw r3,0x002c(r20)			
00078dd8: 00000000 nop
00078ddc: 000310c0 sll r2,r3,0x03
00078de0: 00431021 addu r2,r2,r3
00078de4: 3c018005 lui r1,0x8005
00078de8: 24217eed addiu r1,r1,0x7eed
00078dec: 00220821 addu r1,r1,r2
00078df0: 90240000 lbu r4,0x0000(r1)			load prop ID
00078df4: 0c03bc97 jal 0x000ef25c				Set Proposition completed or failed
00078df8: 24840360 addiu r4,r4,0x0360
00078dfc: 0c03bc6a jal 0x000ef1a8				load gil
00078e00: 3404002c ori r4,r0,0x002c
00078e04: 3c0305f5 lui r3,0x05f5
00078e08: 3c04800d lui r4,0x800d
00078e0c: 8c840980 lw r4,0x0980(r4)
00078e10: 3463e0ff ori r3,r3,0xe0ff
00078e14: 00442821 addu r5,r2,r4				add gil
00078e18: 0065182a slt r3,r3,r5					cap gil
00078e1c: 10600003 beq r3,r0,0x00078e2c
00078e20: 00000000 nop
00078e24: 3c0505f5 lui r5,0x05f5
00078e28: 34a5e0ff ori r5,r5,0xe0ff
00078e2c: 0c03bc97 jal 0x000ef25c				store gil
00078e30: 3404002c ori r4,r0,0x002c
00078e34: 0c03bc6a jal 0x000ef1a8				load gil
00078e38: 3404002c ori r4,r0,0x002c			
00078e3c: 3c01800d lui r1,0x800d
00078e40: ac2209ac sw r2,0x09ac(r1)				store gil
00078e44: 0c03bc6a jal 0x000ef1a8				load day
00078e48: 3404002f ori r4,r0,0x002f
00078e4c: 3404002e ori r4,r0,0x002e
00078e50: 0c03bc6a jal 0x000ef1a8				load month
00078e54: 00408821 addu r17,r2,r0
00078e58: 8ea30000 lw r3,0x0000(r21)			load ??
00078e5c: 00000000 nop
00078e60: 1460000e bne r3,r0,0x00078e9c
00078e64: 00408021 addu r16,r2,r0
00078e68: a3b10011 sb r17,0x0011(r29)			store day
00078e6c: a3b00010 sb r16,0x0010(r29)			store month
00078e70: 8e83002c lw r3,0x002c(r20)
00078e74: 3c048005 lui r4,0x8005
00078e78: 24847c7c addiu r4,r4,0x7c7c			saved data address
00078e7c: 000310c0 sll r2,r3,0x03
00078e80: 00431021 addu r2,r2,r3
00078e84: 3c018005 lui r1,0x8005
00078e88: 24217eed addiu r1,r1,0x7eed			proposition data?
00078e8c: 00220821 addu r1,r1,r2
00078e90: 90250000 lbu r5,0x0000(r1)
00078e94: 0c01a796 jal 0x00069e58
00078e98: 27a60010 addiu r6,r29,0x0010
00078e9c: 3c03800a lui r3,0x800a
00078ea0: 8c63f200 lw r3,-0x0e00(r3)
00078ea4: 34020001 ori r2,r0,0x0001
00078ea8: 14620011 bne r3,r2,0x00078ef0
00078eac: 34020002 ori r2,r0,0x0002
00078eb0: 3c04800a lui r4,0x800a
00078eb4: 8c84f204 lw r4,-0x0dfc(r4)			load 
00078eb8: 34050001 ori r5,r0,0x0001
00078ebc: 0c03bc97 jal 0x000ef25c				store Treasure 
00078ec0: 24840321 addiu r4,r4,0x0321
00078ec4: 3c048005 lui r4,0x8005
00078ec8: 24847cec addiu r4,r4,0x7cec			saved data
00078ecc: 3c05800a lui r5,0x800a
00078ed0: 8ca5f204 lw r5,-0x0dfc(r5)
00078ed4: 27a60010 addiu r6,r29,0x0010
00078ed8: a3b10011 sb r17,0x0011(r29)
00078edc: 0c01a796 jal 0x00069e58
00078ee0: a3b00010 sb r16,0x0010(r29)
00078ee4: 3c03800a lui r3,0x800a
00078ee8: 8c63f200 lw r3,-0x0e00(r3)
00078eec: 34020002 ori r2,r0,0x0002
00078ef0: 1462000d bne r3,r2,0x00078f28
00078ef4: 34050001 ori r5,r0,0x0001
00078ef8: 3c04800a lui r4,0x800a
00078efc: 8c84f204 lw r4,-0x0dfc(r4)
00078f00: 0c03bc97 jal 0x000ef25c				store unexplored land
00078f04: 24840350 addiu r4,r4,0x0350
00078f08: 3c048006 lui r4,0x8006
00078f0c: 248496ac addiu r4,r4,0x96ac
00078f10: 3c05800a lui r5,0x800a
00078f14: 8ca5f204 lw r5,-0x0dfc(r5)
00078f18: 27a60010 addiu r6,r29,0x0010
00078f1c: a3b10011 sb r17,0x0011(r29)
00078f20: 0c01a796 jal 0x00069e58
00078f24: a3b00010 sb r16,0x0010(r29)
00078f28: 3c02800a lui r2,0x800a
00078f2c: 8c42f1f8 lw r2,-0x0e08(r2)
00078f30: 00000000 nop
00078f34: 000218c0 sll r3,r2,0x03
00078f38: 00621821 addu r3,r3,r2
00078f3c: 3c018005 lui r1,0x8005
00078f40: 24217ef1 addiu r1,r1,0x7ef1
00078f44: 00230821 addu r1,r1,r3
00078f48: 90220000 lbu r2,0x0000(r1)
00078f4c: 00000000 nop
00078f50: 18400024 blez r2,0x00078fe4
00078f54: 00008021 addu r16,r0,r0
00078f58: 26b2fffc addiu r18,r21,0xfffc
00078f5c: 3c138005 lui r19,0x8005
00078f60: 26737ef2 addiu r19,r19,0x7ef2
00078f64: 26b10024 addiu r17,r21,0x0024
00078f68: 8e430000 lw r3,0x0000(r18)
00078f6c: 00000000 nop
00078f70: 000310c0 sll r2,r3,0x03
00078f74: 00431021 addu r2,r2,r3
00078f78: 00531021 addu r2,r2,r19
00078f7c: 00501021 addu r2,r2,r16
00078f80: 90440000 lbu r4,0x0000(r2)
00078f84: 0c01a78e jal 0x00069e38
00078f88: 00000000 nop
00078f8c: a04000d0 sb r0,0x00d0(r2)
00078f90: 8e430000 lw r3,0x0000(r18)
00078f94: 8e250000 lw r5,0x0000(r17)
00078f98: 000310c0 sll r2,r3,0x03
00078f9c: 00431021 addu r2,r2,r3
00078fa0: 00531021 addu r2,r2,r19
00078fa4: 00501021 addu r2,r2,r16
00078fa8: 90440000 lbu r4,0x0000(r2)
00078fac: 0c017752 jal 0x0005dd48			Proposition JP gain
00078fb0: 26310004 addiu r17,r17,0x0004
00078fb4: 8e430000 lw r3,0x0000(r18)
00078fb8: 00000000 nop
00078fbc: 000310c0 sll r2,r3,0x03
00078fc0: 00431021 addu r2,r2,r3
00078fc4: 3c018005 lui r1,0x8005
00078fc8: 24217ef1 addiu r1,r1,0x7ef1
00078fcc: 00220821 addu r1,r1,r2
00078fd0: 90220000 lbu r2,0x0000(r1)
00078fd4: 26100001 addiu r16,r16,0x0001
00078fd8: 0202102a slt r2,r16,r2
00078fdc: 1440ffe5 bne r2,r0,0x00078f74
00078fe0: 000310c0 sll r2,r3,0x03
00078fe4: 3c04800a lui r4,0x800a
00078fe8: 2484f1fc addiu r4,r4,0xf1fc
00078fec: 8c830000 lw r3,0x0000(r4)
00078ff0: 34020001 ori r2,r0,0x0001
00078ff4: 14620011 bne r3,r2,0x0007903c
00078ff8: 34020002 ori r2,r0,0x0002
00078ffc: 3c03800a lui r3,0x800a
00079000: 8c63f1f8 lw r3,-0x0e08(r3)
00079004: 00000000 nop
00079008: 000310c0 sll r2,r3,0x03
0007900c: 00431021 addu r2,r2,r3
00079010: 3c018005 lui r1,0x8005
00079014: 24217eed addiu r1,r1,0x7eed
00079018: 00220821 addu r1,r1,r2
0007901c: 90230000 lbu r3,0x0000(r1)
00079020: 34020060 ori r2,r0,0x0060
00079024: 3c018005 lui r1,0x8005
00079028: 24217d24 addiu r1,r1,0x7d24
0007902c: 00230821 addu r1,r1,r3
00079030: a0220000 sb r2,0x0000(r1)
00079034: 8c830000 lw r3,0x0000(r4)
00079038: 34020002 ori r2,r0,0x0002
0007903c: 1462000f bne r3,r2,0x0007907c
00079040: 00000000 nop
00079044: 3c03800a lui r3,0x800a
00079048: 8c63f1f8 lw r3,-0x0e08(r3)
0007904c: 00000000 nop
00079050: 000310c0 sll r2,r3,0x03
00079054: 00431021 addu r2,r2,r3
00079058: 3c018005 lui r1,0x8005
0007905c: 24217eed addiu r1,r1,0x7eed
00079060: 00220821 addu r1,r1,r2
00079064: 90230000 lbu r3,0x0000(r1)
00079068: 34020090 ori r2,r0,0x0090
0007906c: 3c018005 lui r1,0x8005
00079070: 24217d24 addiu r1,r1,0x7d24
00079074: 00230821 addu r1,r1,r3
00079078: a0220000 sb r2,0x0000(r1)
0007907c: 3c028005 lui r2,0x8005
00079080: 90427ce8 lbu r2,0x7ce8(r2)
00079084: 8e90002c lw r16,0x002c(r20)
00079088: 2442ffff addiu r2,r2,0xffff
0007908c: 0202102a slt r2,r16,r2
00079090: 10400019 beq r2,r0,0x000790f8
00079094: 001010c0 sll r2,r16,0x03
00079098: 3c038005 lui r3,0x8005
0007909c: 24637eec addiu r3,r3,0x7eec
000790a0: 00501021 addu r2,r2,r16
000790a4: 00433821 addu r7,r2,r3
000790a8: 24630009 addiu r3,r3,0x0009
000790ac: 00433021 addu r6,r2,r3
000790b0: 88c20003 lwl r2,0x0003(r6)
000790b4: 98c20000 lwr r2,0x0000(r6)
000790b8: 88c30007 lwl r3,0x0007(r6)
000790bc: 98c30004 lwr r3,0x0004(r6)
000790c0: 80c40008 lb r4,0x0008(r6)
000790c4: a8e20003 swl r2,0x0003(r7)
000790c8: b8e20000 swr r2,0x0000(r7)
000790cc: a8e30007 swl r3,0x0007(r7)
000790d0: b8e30004 swr r3,0x0004(r7)
000790d4: a0e40008 sb r4,0x0008(r7)
000790d8: 24e70009 addiu r7,r7,0x0009
000790dc: 3c028005 lui r2,0x8005
000790e0: 90427ce8 lbu r2,0x7ce8(r2)
000790e4: 26100001 addiu r16,r16,0x0001
000790e8: 2442ffff addiu r2,r2,0xffff
000790ec: 0202102a slt r2,r16,r2
000790f0: 1440ffef bne r2,r0,0x000790b0
000790f4: 24c60009 addiu r6,r6,0x0009
000790f8: 3c028005 lui r2,0x8005
000790fc: 90427ce8 lbu r2,0x7ce8(r2)
00079100: 00000000 nop
00079104: 2442ffff addiu r2,r2,0xffff
00079108: 3c018005 lui r1,0x8005
0007910c: a0227ce8 sb r2,0x7ce8(r1)
00079110: 0c01e9cb jal 0x0007a72c
00079114: 00000000 nop
00079118: 1440000a bne r2,r0,0x00079144
0007911c: 3404000e ori r4,r0,0x000e
00079120: 3c02800a lui r2,0x800a
00079124: 8c42f20c lw r2,-0x0df4(r2)
00079128: 00000000 nop
0007912c: 14400006 bne r2,r0,0x00079148
00079130: 00002821 addu r5,r0,r0
00079134: 34040002 ori r4,r0,0x0002
00079138: 0c024354 jal 0x00090d50			play sound
0007913c: 34050010 ori r5,r0,0x0010	
00079140: 3404000e ori r4,r0,0x000e
00079144: 00002821 addu r5,r0,r0
00079148: 2406ffff addiu r6,r0,0xffff
0007914c: 0c03ffc2 jal 0x000fff08
00079150: 00003821 addu r7,r0,r0
00079154: 34020001 ori r2,r0,0x0001
00079158: ae820010 sw r2,0x0010(r20)
0007915c: 8fbf0038 lw r31,0x0038(r29)
00079160: 8fb50034 lw r21,0x0034(r29)
00079164: 8fb40030 lw r20,0x0030(r29)
00079168: 8fb3002c lw r19,0x002c(r29)
0007916c: 8fb20028 lw r18,0x0028(r29)
00079170: 8fb10024 lw r17,0x0024(r29)
00079174: 8fb00020 lw r16,0x0020(r29)
00079178: 27bd0040 addiu r29,r29,0x0040
0007917c: 03e00008 jr r31
00079180: 00000000 nop