Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/rcheevos/consoleinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,12 +818,14 @@ static const rc_memory_region_t _rc_memory_regions_playstation2[] = {
static const rc_memory_regions_t rc_memory_regions_playstation2 = { _rc_memory_regions_playstation2, 3 };

/* ===== PlayStation Portable ===== */
/* https://github.com/uofw/upspd/wiki/Memory-map */
/* https://github.com/uofw/upspd/wiki/Memory-map
* the RAM is extended at loadtime if the game has a MEMSIZE flag in its PARAM.SFO */
static const rc_memory_region_t _rc_memory_regions_psp[] = {
{ 0x00000000U, 0x007FFFFFU, 0x08000000U, RC_MEMORY_TYPE_SYSTEM_RAM, "Kernel RAM" },
{ 0x00800000U, 0x01FFFFFFU, 0x08800000U, RC_MEMORY_TYPE_SYSTEM_RAM, "System RAM" },
{ 0x02000000U, 0x03FFFFFFU, 0x0A000000U, RC_MEMORY_TYPE_SYSTEM_RAM, "Extended RAM" },
};
static const rc_memory_regions_t rc_memory_regions_psp = { _rc_memory_regions_psp, 2 };
static const rc_memory_regions_t rc_memory_regions_psp = { _rc_memory_regions_psp, 3 };

/* ===== Pokemon Mini ===== */
/* https://www.pokemon-mini.net/documentation/memory-map/ */
Expand Down
2 changes: 1 addition & 1 deletion test/rcheevos/test_consoleinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void test_consoleinfo(void) {
TEST_PARAMS3(test_memory, RC_CONSOLE_PCFX, 0x210000, 0x210000);
TEST_PARAMS3(test_memory, RC_CONSOLE_PLAYSTATION, 0x200400, 0x200400);
TEST_PARAMS3(test_memory, RC_CONSOLE_PLAYSTATION_2, 0x02004000, 0x02004000);
TEST_PARAMS3(test_memory, RC_CONSOLE_PSP, 0x02000000, 0x02000000);
TEST_PARAMS3(test_memory, RC_CONSOLE_PSP, 0x04000000, 0x04000000);
TEST_PARAMS3(test_memory, RC_CONSOLE_POKEMON_MINI, 0x002000, 0x002000);
TEST_PARAMS3(test_memory, RC_CONSOLE_SATURN, 0x200000, 0x200000);
TEST_PARAMS3(test_memory, RC_CONSOLE_SEGA_32X, 0x060000, 0x060000);
Expand Down
Loading