mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 18:27:25 +00:00
Minor optimize
This commit is contained in:
parent
e8203f453b
commit
2ebb8fc251
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ inline void DivPlatformK053260::chWrite(unsigned char ch, unsigned int addr, uns
|
||||||
|
|
||||||
u8 DivPlatformK053260::read_sample(u32 address) {
|
u8 DivPlatformK053260::read_sample(u32 address) {
|
||||||
if ((sampleMem!=NULL) && (address<getSampleMemCapacity())) {
|
if ((sampleMem!=NULL) && (address<getSampleMemCapacity())) {
|
||||||
address&=0x1fffff;
|
return sampleMem[address&0x1fffff];
|
||||||
return sampleMem[address];
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue