From 8478481466eb61f3864d44dc5e68035dfbbb4f3e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 6 Dec 2021 02:59:12 -0500 Subject: [PATCH] hmmm --- src/engine/platform/c64.cpp | 2 +- src/engine/platform/genesis.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/c64.cpp b/src/engine/platform/c64.cpp index 9f51f1ef3..f5052f0cc 100644 --- a/src/engine/platform/c64.cpp +++ b/src/engine/platform/c64.cpp @@ -44,7 +44,7 @@ void DivPlatformC64::tick() { } } if (chan[i].std.hadDuty) { - chan[i].duty+=(signed char)chan[i].std.duty; + chan[i].duty-=((signed char)chan[i].std.duty-12)*4; sid.write(i*7+2,chan[i].duty&0xff); sid.write(i*7+3,chan[i].duty>>8); } diff --git a/src/engine/platform/genesis.cpp b/src/engine/platform/genesis.cpp index 3b023e397..aba3aa122 100644 --- a/src/engine/platform/genesis.cpp +++ b/src/engine/platform/genesis.cpp @@ -70,6 +70,7 @@ void DivPlatformGenesis::acquire(int& l, int& r) { } void DivPlatformGenesis::tick() { + printf("writes remain: %ld\n",writes.size()); for (int i=0; i<6; i++) { if (i==2 && extMode) continue; if (chan[i].keyOn || chan[i].keyOff) { @@ -332,6 +333,8 @@ int DivPlatformGenesis::dispatch(DivCommand c) { break; case DIV_CMD_PRE_PORTA: break; + case DIV_CMD_PRE_NOTE: + break; default: printf("WARNING: unimplemented command %d\n",c.cmd); break;