Project

General

Profile

Actions

Emulator Issues #1630

closed

Action Replay Fixes

Added by AHeinerm over 14 years ago.

Status:
Fixed
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

Line 119 and 120 of ARCodeAddEdit.cpp should be

u32 addr = strtoul(pieces[0].c_str(), NULL, 16);
u32 value = strtoul(pieces[1].c_str(), NULL, 16);

The original code with "strtol" was converting the values of the code to a
signed integer, rounding it to 7FFFFFFF. "strtoul" fixes this.

Line 451 of ActionReplay.cpp should be

u32 new_addr = ((addr & 0x01FFFFFF) | 0x80000000); // real GC address

This fixes several action replay codes, causing them to write at the
correct memory locations rather than the original "addr & 0x7FFFFF".

Actions

Also available in: Atom PDF