Arcade: add noise freq macro

issue #16
This commit is contained in:
tildearrow 2022-01-27 15:42:31 -05:00
parent 30b553e87e
commit c4163699b6
2 changed files with 13 additions and 2 deletions

View File

@ -215,6 +215,14 @@ void DivPlatformArcade::tick() {
}
}
if (chan[i].std.hadDuty) {
if (chan[i].std.duty>0) {
rWrite(0x0f,0x80|(0x20-chan[i].std.duty));
} else {
rWrite(0x0f,0);
}
}
if (chan[i].std.hadAlg) {
chan[i].state.alg=chan[i].std.alg;
if (isMuted[i]) {

View File

@ -1363,13 +1363,16 @@ void FurnaceGUI::drawInsEdit() {
dutyMax=24;
}
}
if (ins->type==DIV_INS_AY || ins->type==DIV_INS_AY8930) {
if (ins->type==DIV_INS_FM) {
dutyMax=32;
}
if (ins->type==DIV_INS_AY || ins->type==DIV_INS_AY8930 || ins->type==DIV_INS_FM) {
dutyLabel="Noise Freq";
}
if (ins->type==DIV_INS_AY8930) {
dutyMax=255;
}
if (ins->type==DIV_INS_TIA || ins->type==DIV_INS_PCE || ins->type==DIV_INS_FM) {
if (ins->type==DIV_INS_TIA || ins->type==DIV_INS_PCE) {
dutyMax=0;
}
bool dutyIsRel=(ins->type==DIV_INS_C64 && !ins->c64.dutyIsAbs);