Skip to content

Add Playstation 2 ram notes to console-specific tips doc - #458

Merged
wescopeland merged 2 commits into
RetroAchievements:mainfrom
redwizard42:patch-10
Nov 6, 2026
Merged

wescopeland merged 2 commits into
RetroAchievements:mainfrom
redwizard42:patch-10

Conversation

@redwizard42

Copy link
Copy Markdown
Contributor

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change is limited to guidance for people working with PlayStation 2 memory.

Safe to merge, with a non-blocking suggestion to clarify pointer size.

Summary

Adds PS2 RAM ranges and pointer-mask guidance.

  • PlayStation 2 tips explain how to use RAM pointers.

Reviews (1) · Last reviewed commit: "Add Playstation 2 ram notes to console-s..." · Reviewed by Greptile


PlayStation 2 physical RAM is addressed at `0x00000000-0x01ffffff`, which matches the mapping RA uses. You do not usually need to mask or do any tricks to adapt pointers. Just use them straight with `Add Address`.

However, the system also has an uncached alias for its physical RAM addressed at `0x20000000–0x21FFFFFF` which mirrors this physical RAM. You may rarely find a game that needs to use such a pointer. When using them, mask them with 0x01ffffff: `Add Address Mem MyPointer & 0x01ffffff`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Pointer read size is missing

The example omits its read size. PS2's 32MB range needs 25 address bits. A 24-bit read sends pointers targeting 0x01000000 or higher to the wrong address; the mask cannot recover the lost bit.

Suggestion: Specify 32-bit in the example, as the adjacent PSP section does.

@wescopeland
wescopeland merged commit 5fa3d58 into RetroAchievements:main Nov 6, 2026
1 check passed
@redwizard42
redwizard42 deleted the patch-10 branch November 6, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants