# HG changeset patch # User Michael Pavone # Date 1661752166 25200 # Node ID 71b0cb7c34a69b4b112aee9a9f3c3dcbdf34c76d # Parent 5e6e589efbad70e7a1311efbdf874e72627c5543 Fix PSG white noise LSFR tap diff -r 5e6e589efbad -r 71b0cb7c34a6 psg.c --- a/psg.c Sun Aug 28 22:42:36 2022 -0700 +++ b/psg.c Sun Aug 28 22:49:26 2022 -0700 @@ -103,7 +103,7 @@ context->lsfr = (context->lsfr >> 1) | (context->lsfr << 15); if (context->noise_type) { //white noise - if (context->lsfr & 0x40) { + if (context->lsfr & 0x4) { context->lsfr ^= 0x8000; } }