This commit is contained in:
tildearrow 2021-12-06 02:59:12 -05:00
parent 1ac45e27a2
commit 8478481466
2 changed files with 4 additions and 1 deletions

View file

@ -44,7 +44,7 @@ void DivPlatformC64::tick() {
} }
} }
if (chan[i].std.hadDuty) { 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+2,chan[i].duty&0xff);
sid.write(i*7+3,chan[i].duty>>8); sid.write(i*7+3,chan[i].duty>>8);
} }

View file

@ -70,6 +70,7 @@ void DivPlatformGenesis::acquire(int& l, int& r) {
} }
void DivPlatformGenesis::tick() { void DivPlatformGenesis::tick() {
printf("writes remain: %ld\n",writes.size());
for (int i=0; i<6; i++) { for (int i=0; i<6; i++) {
if (i==2 && extMode) continue; if (i==2 && extMode) continue;
if (chan[i].keyOn || chan[i].keyOff) { if (chan[i].keyOn || chan[i].keyOff) {
@ -332,6 +333,8 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
break; break;
case DIV_CMD_PRE_PORTA: case DIV_CMD_PRE_PORTA:
break; break;
case DIV_CMD_PRE_NOTE:
break;
default: default:
printf("WARNING: unimplemented command %d\n",c.cmd); printf("WARNING: unimplemented command %d\n",c.cmd);
break; break;