From ebad4b347bbbff503d53b51ea18b59f770e8044a Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Tue, 27 Apr 2021 21:27:26 +0200 Subject: [PATCH] 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. --- bsv.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.3