diff --git a/src/engine/zsm.cpp b/src/engine/zsm.cpp index 2026a3f0e..03d294638 100644 --- a/src/engine/zsm.cpp +++ b/src/engine/zsm.cpp @@ -138,7 +138,7 @@ void DivZSM::writePSG(unsigned char a, unsigned char v) { // Pulse width on non-pulse waves is nonsense and wasteful // No need to preserve state here because the next write that // selects pulse will also set the pulse width in this register - v=v&0xc0; + v&=0xc0; } } if (psgState[psg_PREV][a]==v) {