Skip to content

Commit

Permalink
low quality tildearrow code
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed Oct 11, 2023
1 parent 219665e commit af56b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/platform/sound/c140_c219.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit af56b72

Please sign in to comment.