Difference between revisions of "BATTLE Debug; Return Stack Pointer"
Jump to navigation
Jump to search
(Created page with "<font face='Courier New'> 000937f8: 27bdffe8 addiu r29,r29,0xffe8 000937fc: afbf0010 sw r31,0x0010(r29) 00093800: 0c0076d6 jal 0x0001db58 00093804: 34040001 ori r4,r0,0x...") |
m (Talcall moved page 000937f8 - 00093868 to BATTLE Debug; Return Stack Pointer) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
− | |||
000937f8: 27bdffe8 addiu r29,r29,0xffe8 | 000937f8: 27bdffe8 addiu r29,r29,0xffe8 | ||
000937fc: afbf0010 sw r31,0x0010(r29) | 000937fc: afbf0010 sw r31,0x0010(r29) | ||
− | 00093800: 0c0076d6 jal 0x0001db58 | + | 00093800: 0c0076d6 jal 0x0001db58 # [[PadRead]] |
00093804: 34040001 ori r4,r0,0x0001 | 00093804: 34040001 ori r4,r0,0x0001 | ||
00093808: 3c048004 lui r4,0x8004 | 00093808: 3c048004 lui r4,0x8004 | ||
− | 0009380c: 8c845948 lw r4,0x5948(r4) | + | 0009380c: 8c845948 lw r4,0x5948(r4) # load previous button input |
00093810: 3c018004 lui r1,0x8004 | 00093810: 3c018004 lui r1,0x8004 | ||
− | 00093814: ac225944 sw r2,0x5944(r1) | + | 00093814: ac225944 sw r2,0x5944(r1) # store PadRead here |
00093818: 3c018004 lui r1,0x8004 | 00093818: 3c018004 lui r1,0x8004 | ||
− | 0009381c: ac225948 sw r2,0x5948(r1) | + | 0009381c: ac225948 sw r2,0x5948(r1) # and here |
00093820: 00041827 nor r3,r0,r4 | 00093820: 00041827 nor r3,r0,r4 | ||
00093824: 00621824 and r3,r3,r2 | 00093824: 00621824 and r3,r3,r2 | ||
00093828: 3c018004 lui r1,0x8004 | 00093828: 3c018004 lui r1,0x8004 | ||
− | 0009382c: ac23594c sw r3,0x594c(r1) | + | 0009382c: ac23594c sw r3,0x594c(r1) # store inverted copy of button inputs here |
00093830: 00021827 nor r3,r0,r2 | 00093830: 00021827 nor r3,r0,r2 | ||
00093834: 00641824 and r3,r3,r4 | 00093834: 00641824 and r3,r3,r4 | ||
Line 21: | Line 20: | ||
00093840: ac235950 sw r3,0x5950(r1) | 00093840: ac235950 sw r3,0x5950(r1) | ||
00093844: 3403090c ori r3,r0,0x090c | 00093844: 3403090c ori r3,r0,0x090c | ||
− | 00093848: 14430004 bne r2,r3,0x0009385c | + | 00093848: 14430004 bne r2,r3,0x0009385c # check for holding start + select + R1 + L1 |
0009384c: 34020001 ori r2,r0,0x0001 | 0009384c: 34020001 ori r2,r0,0x0001 | ||
− | 00093850: 0c01025d jal 0x00040974 | + | 00093850: 0c01025d jal 0x00040974 # [[SCUS GameReset ReturnSP]] |
00093854: 00000000 nop | 00093854: 00000000 nop | ||
− | 00093858: 34020001 ori r2,r0,0x0001 | + | 00093858: 34020001 ori r2,r0,0x0001 # replace return with 1. |
0009385c: 8fbf0010 lw r31,0x0010(r29) | 0009385c: 8fbf0010 lw r31,0x0010(r29) | ||
00093860: 27bd0018 addiu r29,r29,0x0018 | 00093860: 27bd0018 addiu r29,r29,0x0018 | ||
00093864: 03e00008 jr r31 | 00093864: 03e00008 jr r31 | ||
00093868: 00000000 nop | 00093868: 00000000 nop | ||
− |
Latest revision as of 11:37, 10 September 2025
000937f8: 27bdffe8 addiu r29,r29,0xffe8 000937fc: afbf0010 sw r31,0x0010(r29) 00093800: 0c0076d6 jal 0x0001db58 # PadRead 00093804: 34040001 ori r4,r0,0x0001 00093808: 3c048004 lui r4,0x8004 0009380c: 8c845948 lw r4,0x5948(r4) # load previous button input 00093810: 3c018004 lui r1,0x8004 00093814: ac225944 sw r2,0x5944(r1) # store PadRead here 00093818: 3c018004 lui r1,0x8004 0009381c: ac225948 sw r2,0x5948(r1) # and here 00093820: 00041827 nor r3,r0,r4 00093824: 00621824 and r3,r3,r2 00093828: 3c018004 lui r1,0x8004 0009382c: ac23594c sw r3,0x594c(r1) # store inverted copy of button inputs here 00093830: 00021827 nor r3,r0,r2 00093834: 00641824 and r3,r3,r4 00093838: 3042090c andi r2,r2,0x090c 0009383c: 3c018004 lui r1,0x8004 00093840: ac235950 sw r3,0x5950(r1) 00093844: 3403090c ori r3,r0,0x090c 00093848: 14430004 bne r2,r3,0x0009385c # check for holding start + select + R1 + L1 0009384c: 34020001 ori r2,r0,0x0001 00093850: 0c01025d jal 0x00040974 # SCUS GameReset ReturnSP 00093854: 00000000 nop 00093858: 34020001 ori r2,r0,0x0001 # replace return with 1. 0009385c: 8fbf0010 lw r31,0x0010(r29) 00093860: 27bd0018 addiu r29,r29,0x0018 00093864: 03e00008 jr r31 00093868: 00000000 nop