Project

General

Profile

Actions

Emulator Issues #11072

open

Loading value from the same register causes emulator to crash

Added by Brandondorf9999 over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Any custom gecko codes that have an opcode that loads the value to the same register where it was loaded from crashes/freezes the game if executed. I discovered it on 5.0-7227 when testing a code for Super Mario Sunshine which caused the problem with the code handler:

C22F7890 00000003
C0DC002C 823C005C
82310040 7E318A78
60000000 00000000

The following injection opcodes were used:

lfs f6,44(r28)
lwz r17,0x5C(r28)
lwz r17,0x40(r17) <----- The opcode that loads to the same register as the source with an offset.
xor r17,r17,r17

Actions #1

Updated by Brandondorf9999 over 6 years ago

As a thing, this only occurs on startup and not during gameplay.

Actions #2

Updated by danileon95 over 6 years ago

I'm not sure if this is related, but this widescreen code for the PAL version of the game:
0440DCB0 44480000
04409930 442F0000
0440DB78 442F0000
0416CA6C C002B6A4
04293850 C002B6A4
0416CC08 C002B6A4
0416CFBC C002B6A4
0416D160 C002B6A4
04409950 3FE38E39
0440E0D4 3F9A7643
0428DFA4 380002EA
0428DF38 3860FF96
C2143C04 00000002
3B20FFA9 93380004
931F0140 00000000
C2143AB4 00000002
3B20FFA9 93380004
931F0108 00000000
C2143D2C 00000002
3860FFA9 90780004
931F0160 00000000
C2143F98 00000002
3BA00251 93B80004
931F02F8 00000000
C214439C 00000002
3860FFA9 90780004
931F0400 00000000
C21444C0 00000002
3860FFA9 90780004
931F042C 00000000
C21445CC 00000002
3860FFA9 90780004
931F0450 00000000
C214257C 00000002
38800251 9081056C
807F02A0 00000000
04143464 3880023C
C22C33C4 00000004
2C00019F 40820008
38000203 2C00018D
40820008 380001F1
901F0014 00000000
C214B020 00000004
809F0018 38A0EC78
90A40014 7CA500D0
90A4001C 38800000
60000000 00000000
C2143DA4 00000002
3BA00258 93B80004
931F01C4 00000000
C235B358 00000009
80ED8CC8 800701E8
540C24B6 2C030000
41820030 7C032A14
7C006000 41820024
5580F87E 7C601850
1C630003 1CA50003
7C631670 54A5F0BE
7C630194 7C630214
60000000 00000000

causes the game to crash after a while.

Actions

Also available in: Atom PDF