From 2cead0b7f998642ad483161d0bedc037638998fa Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 15 Oct 2022 04:00:41 -0500 Subject: [PATCH] Virtual Boy: phase reset macro --- src/engine/platform/vb.cpp | 2 +- src/gui/insEdit.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/vb.cpp b/src/engine/platform/vb.cpp index 941f72eba..a57d92cdf 100644 --- a/src/engine/platform/vb.cpp +++ b/src/engine/platform/vb.cpp @@ -183,7 +183,7 @@ void DivPlatformVB::tick(bool sysTick) { chan[i].freqChanged=true; } if (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1) { - // ??? + chWrite(i,0x00,0x80); } if (chan[i].active) { if (chan[i].ws.tick() || (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1)) { diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index a01a3414a..ceda17a2e 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -4982,6 +4982,7 @@ void FurnaceGUI::drawInsEdit() { ins->type==DIV_INS_MIKEY || ins->type==DIV_INS_ES5506 || ins->type==DIV_INS_T6W28 || + ins->type==DIV_INS_VBOY || (ins->type==DIV_INS_X1_010 && ins->amiga.useSample)) { macroList.push_back(FurnaceGUIMacroDesc("Phase Reset",&ins->std.phaseResetMacro,0,1,32,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true)); }