Reset game if special keycode is pressed

From Final Fantasy Hacktics Wiki
Revision as of 11:33, 25 September 2024 by Talcall (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Reset Game if special keycode pressed
00068da4: 27bdffe8 addiu r29,r29,0xffe8
00068da8: 3c02800c lui r2,0x800c
00068dac: 8c42731c lw r2,0x731c(r2)
00068db0: afbf0010 sw r31,0x0010(r29)
00068db4: 3c01800c lui r1,0x800c
00068db8: ac22b984 sw r2,-0x467c(r1)
00068dbc: 0c0076d6 jal 0x0001db58
00068dc0: 00002021 addu r4,r0,r0
00068dc4: 3c038005 lui r3,0x8005
00068dc8: 8c63d950 lw r3,-0x26b0(r3)
00068dcc: 00402021 addu r4,r2,r0
00068dd0: 3c01800c lui r1,0x800c
00068dd4: ac24731c sw r4,0x731c(r1)
00068dd8: 30630004 andi r3,r3,0x0004
00068ddc: 10600007 beq r3,r0,0x00068dfc
00068de0: 00000000 nop
00068de4: 3c01800c lui r1,0x800c
00068de8: ac20c2f0 sw r0,-0x3d10(r1)
00068dec: 3c01800a lui r1,0x800a
00068df0: ac20f2e8 sw r0,-0x0d18(r1)
00068df4: 0801a387 j 0x00068e1c
00068df8: 00000000 nop
00068dfc: 3c02800c lui r2,0x800c
00068e00: 8c42b984 lw r2,-0x467c(r2)
00068e04: 3c01800a lui r1,0x800a
00068e08: ac24f2e8 sw r4,-0x0d18(r1)
00068e0c: 00021027 nor r2,r0,r2
00068e10: 00821024 and r2,r4,r2
00068e14: 3c01800c lui r1,0x800c
00068e18: ac22c2f0 sw r2,-0x3d10(r1)
00068e1c: 3c03800c lui r3,0x800c
00068e20: 8c63731c lw r3,0x731c(r3)			load controller input
00068e24: 3402090c ori r2,r0,0x090c			L1R1 select start
00068e28: 1462000d bne r3,r2,0x00068e60
00068e2c: 00000000 nop
RESET GAME
00068e30: 0c0091b5 jal 0x000246d4
00068e34: 00002021 addu r4,r0,r0
00068e38: 34043fff ori r4,r0,0x3fff
00068e3c: 0c006090 jal 0x00018240
00068e40: 34050001 ori r5,r0,0x0001
00068e44: 0c006024 jal 0x00018090
00068e48: 340400c0 ori r4,r0,0x00c0
00068e4c: 340474ff ori r4,r0,0x74ff
00068e50: 0c0060c0 jal 0x00018300
00068e54: 34050001 ori r5,r0,0x0001
00068e58: 0c01025d jal 0x00040974                      Between Gamestate quit sound, get stack pointer
00068e5c: 00000000 nop

00068e60: 8fbf0010 lw r31,0x0010(r29)
00068e64: 27bd0018 addiu r29,r29,0x0018
00068e68: 03e00008 jr r31
00068e6c: 00000000 nop