Add sa1_iram memory domain for new bsnes (#2803)

This commit is contained in:
Moritz Bender 2021-07-17 01:41:53 +02:00 committed by GitHub
parent e79d33bcfd
commit 2ff7e4d39b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -9,6 +9,7 @@
BSX_PRAM,
SUFAMI_TURBO_A_RAM,
SUFAMI_TURBO_B_RAM,
SA1_IRAM,
WRAM,
APURAM,

View File

@ -321,6 +321,11 @@ EXPORT void* snes_get_memory_region(int id, int* size, int* word_size)
*size = sufamiturboB.ram.size();
*word_size = 1;
return sufamiturboB.ram.data();
case SNES_MEMORY::SA1_IRAM:
if (!cartridge.has.SA1) break;
*size = sa1.iram.size();
*word_size = 1;
return sa1.iram.data();
case SNES_MEMORY::WRAM:
*size = sizeof(cpu.wram);

View File

@ -14,6 +14,7 @@ enum SNES_MEMORY {
BSX_PRAM,
SUFAMI_TURBO_A_RAM,
SUFAMI_TURBO_B_RAM,
SA1_IRAM,
WRAM,
APURAM,