From 875ef08256eddc685744e3254d1f6213f77a8539 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 18 Aug 2024 20:22:24 +0900 Subject: [PATCH] Fix Y8950 ADPCM memory addressing Max supported size is 262144 bytes, so I fixed that. --- src/engine/platform/oplAInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/oplAInterface.cpp b/src/engine/platform/oplAInterface.cpp index 37ebda7f0..9643b80c0 100644 --- a/src/engine/platform/oplAInterface.cpp +++ b/src/engine/platform/oplAInterface.cpp @@ -27,7 +27,7 @@ uint8_t DivOPLAInterface::ymfm_external_read(ymfm::access_class type, uint32_t a if (adpcmBMem==NULL) { return 0; } - return adpcmBMem[address&0xffffff]; + return adpcmBMem[address&0x3ffff]; default: return 0; }