GA20: tiny optimization

This commit is contained in:
tildearrow 2025-02-18 05:32:09 -05:00
parent 556b268d80
commit f55f92975a

View file

@ -86,7 +86,7 @@ void DivPlatformGA20::acquire(short** buf, size_t len) {
} }
u8 DivPlatformGA20::read_byte(u32 address) { u8 DivPlatformGA20::read_byte(u32 address) {
if ((sampleMem!=NULL) && (address<getSampleMemCapacity())) { if ((sampleMem!=NULL) && (address<0x100000)) {
return sampleMem[address&0xfffff]; return sampleMem[address&0xfffff];
} }
return 0; return 0;