Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP's default load address
05-23-2020, 12:21 AM
Post: #1
PPSSPP's default load address
Hello everyone. Could anyone tell me, please, why PPSSPP's default load address is located at 08804000 although User Memory starts from 08800000. Are those 16384 (4000) bytes used for something? JPCSP seems to be similar but what about a real PSP?
Find all posts by this user
Quote this message in a reply
05-23-2020, 09:53 AM
Post: #2
RE: PPSSPP's default load address
Those bytes aren't used for anything and can't tell you why games do that, maybe it's just sony's specs or PSP sdk, but games follows it and it's exactly same on real hardware and not just some emulation weirdness, that's why it's the most popular code cave for cheats.
You can easily see it if you look at most cwcheats which inject assembly into game code, they store longer scripts at the 0x08800000-0x08804000 range.

http://forums.ppsspp.org/showthread.php?tid=6594 - Custom PPSSPP Shaders!
http://forums.ppsspp.org/showthread.php?tid=3590&pid=117172#pid117172 - simple CE scripts to help creating CWCheats,
https://github.com/LunaMoo/PPSSPP_workarounds - CWCheat workarounds.
Find all posts by this user
Quote this message in a reply
05-23-2020, 10:17 AM
Post: #3
RE: PPSSPP's default load address
Thank you for clarifying this! Assembly scripts is exactly what I use this area for. I wasn't sure however if I didn't break anything by accident.
Find all posts by this user
Quote this message in a reply
05-23-2020, 09:46 PM
Post: #4
RE: PPSSPP's default load address
See here:
https://github.com/hrydgard/ppsspp/pull/6616

PSP firmware loads "usersystemlib" into this before actually loading the game, I assume it actually uses this library in loading the game. From my previous investigation, this code does include memcpy, lwmutex, and related code/data - though I'm not sure if games ever use it directly. I suspect it's also stack space for interrupts (which cheats won't run during an interrupt.)

In PPSSPP, it's just statically allocated to match PSP firmware memory semantics, but there's nothing in it.

-[Unknown]
Find all posts by this user
Quote this message in a reply
05-24-2020, 10:55 AM
Post: #5
RE: PPSSPP's default load address
Okay Thank you for replying!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: