From af56b726e4cc148a12293d5345dbdfea131aa295 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 11 Oct 2023 17:24:40 -0500 Subject: [PATCH] low quality tildearrow code --- src/engine/platform/sound/c140_c219.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/sound/c140_c219.c b/src/engine/platform/sound/c140_c219.c index 380b256b4..042054e52 100644 --- a/src/engine/platform/sound/c140_c219.c +++ b/src/engine/platform/sound/c140_c219.c @@ -352,9 +352,9 @@ void c140_write(struct c140_t *c140, const unsigned short addr, const unsigned c case 0x3: voice->freq = (voice->freq & ~0x00ff) | data; break; case 0x4: { // TILDEARROW if (c140->bank_type == 0) { - voice->bank = ((data&0x20)>>2)|data&7; + voice->bank = ((data&0x20)>>2)|(data&7); } else if (c140->bank_type == 1) { - voice->bank = ((data&0x30)>>1)|data&7; + voice->bank = ((data&0x30)>>1)|(data&7); } else { voice->bank = data; }