mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
Fix sign
This commit is contained in:
parent
d26f2149e7
commit
0cd77c4ca7
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue