GBA: memory safety
This commit is contained in:
parent
5618a02b95
commit
b27d99b1b0
|
@ -345,6 +345,7 @@ int DivPlatformGBADMA::dispatch(DivCommand c) {
|
|||
void DivPlatformGBADMA::updateWave(int ch) {
|
||||
int addr=ch*256;
|
||||
for (unsigned int i=0; i<chan[ch].audLen; i++) {
|
||||
if (addr+i>=512) break;
|
||||
wtMem[addr+i]=(signed char)(chan[ch].ws.output[i]-128);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue