DS Memory: DS9 STM to I/O
Vicki Pfau vi@endrift.com
Thu, 23 Feb 2017 10:49:54 -0800
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/ds/memory.c
→
src/ds/memory.c
@@ -1154,7 +1154,7 @@ case DS_REGION_WORKING_RAM:
LDM_LOOP(if (ds->memory.wramSize9) { LOAD_32(value, address & (ds->memory.wramSize9 - 4), memory->wramBase9); } else { - mLOG(DS_MEM, STUB, "Bad DS9 STM: %08X", address); + mLOG(DS_MEM, STUB, "Bad DS9 LDM: %08X", address); }); break; case DS_REGION_RAM:@@ -1260,6 +1260,9 @@ STORE_32(value, address & (DS_SIZE_RAM - 1), memory->ram);
} else { mLOG(DS_MEM, STUB, "Unimplemented DS9 STM: %08X", address); }); + break; + case DS_REGION_IO: + STM_LOOP(DS9IOWrite32(ds, address & DS_OFFSET_MASK, value)); break; case DS9_REGION_PALETTE_RAM: STM_LOOP(STORE_32(value, address & (DS9_SIZE_PALETTE_RAM - 1), ds->video.palette);