Fix Y8950 ADPCM memory addressing

Max supported size is 262144 bytes, so I fixed that.
This commit is contained in:
cam900 2024-08-18 20:22:24 +09:00 committed by GitHub
parent ae1fa8d3b8
commit 875ef08256
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ uint8_t DivOPLAInterface::ymfm_external_read(ymfm::access_class type, uint32_t a
if (adpcmBMem==NULL) { if (adpcmBMem==NULL) {
return 0; return 0;
} }
return adpcmBMem[address&0xffffff]; return adpcmBMem[address&0x3ffff];
default: default:
return 0; return 0;
} }