This commit is contained in:
cam900 2023-02-11 22:12:32 +09:00
parent d26f2149e7
commit 0cd77c4ca7

View file

@ -69,8 +69,8 @@ void DivPlatformSM8521::updateWave(int ch) {
const unsigned char temp=regPool[0x40]; const unsigned char temp=regPool[0x40];
rWrite(0x40,temp&~(1<<ch)); rWrite(0x40,temp&~(1<<ch));
for (int i=0; i<16; i++) { for (int i=0; i<16; i++) {
int nibble1=15-chan[ch].ws.output[((i<<1)+chan[ch].antiClickWavePos-1)&31]; int nibble1=(chan[ch].ws.output[((i<<1)+chan[ch].antiClickWavePos-1)&31]-8)&0xf;
int nibble2=15-chan[ch].ws.output[((1+(i<<1))+chan[ch].antiClickWavePos-1)&31]; int nibble2=(chan[ch].ws.output[((1+(i<<1))+chan[ch].antiClickWavePos-1)&31]-8)&0xf;
rWrite(0x60+i+(ch*16),(nibble2<<4)|nibble1); rWrite(0x60+i+(ch*16),(nibble2<<4)|nibble1);
} }
if (chan[ch].active) { if (chan[ch].active) {