From: Tobias Girstmair Date: Tue, 27 Apr 2021 19:27:26 +0000 (+0200) Subject: fix notes bank selection X-Git-Url: https://git.gir.st/Chiptunes-pms150c.git/commitdiff_plain/ebad4b347bbbff503d53b51ea18b59f770e8044a?ds=sidebyside fix notes bank selection we want the 2nd "bank" when i2&3 != 0, so when f.z is not set. hence, we want to skip adding 8 to the index when f.z is set. yep, it's confusing. --- diff --git a/bsv.asm b/bsv.asm index 1a60072..b6fed82 100644 --- a/bsv.asm +++ b/bsv.asm @@ -115,11 +115,11 @@ mod3: g: CLEAR mul2 ; this is notes_ix_hi (and should be 0) AND a, #0x7 - MOV notes_ix, a + MOV notes_ix, a ; assumes notes are the first thing in SRAM ; test i2 & 3: MOV a, i2 AND a, #3 - T0SN f, z + T1SN f, z SET1 notes_ix, #3 IDXM a, notes_ix