Minor optimize

This commit is contained in:
cam900 2023-04-03 06:44:00 +09:00
parent e8203f453b
commit 2ebb8fc251

View file

@ -63,8 +63,7 @@ inline void DivPlatformK053260::chWrite(unsigned char ch, unsigned int addr, uns
u8 DivPlatformK053260::read_sample(u32 address) {
if ((sampleMem!=NULL) && (address<getSampleMemCapacity())) {
address&=0x1fffff;
return sampleMem[address];
return sampleMem[address&0x1fffff];
}
return 0;
}