From 10b43527997fe62e284ca4776ea413c49298d902 Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Thu, 4 Mar 2021 18:02:19 +0100 Subject: [PATCH] new version --- bsv.c | 5 +++-- fakeasm.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bsv.c b/bsv.c index a0e6226..23f7a5e 100644 --- a/bsv.c +++ b/bsv.c @@ -53,9 +53,10 @@ void g(void){ MOV (acc, i2) AND (acc, 3) /*T0SN FLAG.Z (0x00.0)*/ if(3&i2) {// skip if !(3&i0) - SET1 (notes_ix, 3) } - /*IDXM acc, notes_ix*/ acc = notes[notes_ix]; + SET1 (notes_ix, 3) } // ix += 8 <=> ix |= 8 + IDXM (acc, notes+notes_ix) u8 result = ((i1<<8|i0)*acc)>>8; // keep hi byte + //^TODO! acc = result; } void main(void){ diff --git a/fakeasm.h b/fakeasm.h index 54c5cb3..0959a5a 100644 --- a/fakeasm.h +++ b/fakeasm.h @@ -18,3 +18,4 @@ int flag_c = 0; #define DEC(dst) dst -= 1; flag_c = flag_z = (dst==0); #define NEG(dst) dst *= -1; flag_z = (dst==0); #define SET1(dst, n) dst |= 1<