Lynx: add phase reset macro

This commit is contained in:
tildearrow 2022-05-25 00:28:47 -05:00
parent 051cd6e966
commit 42a082b2a7
2 changed files with 9 additions and 1 deletions

View File

@ -195,6 +195,13 @@ void DivPlatformLynx::tick(bool sysTick) {
chan[i].freqChanged=true; chan[i].freqChanged=true;
} }
if (chan[i].std.phaseReset.had) {
if (chan[i].std.phaseReset.val==1) {
WRITE_LFSR(i, 0);
WRITE_OTHER(i, 0);
}
}
if (chan[i].freqChanged) { if (chan[i].freqChanged) {
if (chan[i].lfsr >= 0) { if (chan[i].lfsr >= 0) {
WRITE_LFSR(i, (chan[i].lfsr&0xff)); WRITE_LFSR(i, (chan[i].lfsr&0xff));

View File

@ -3137,7 +3137,8 @@ void FurnaceGUI::drawInsEdit() {
ins->type==DIV_INS_AY8930 || ins->type==DIV_INS_AY8930 ||
ins->type==DIV_INS_SWAN || ins->type==DIV_INS_SWAN ||
ins->type==DIV_INS_MULTIPCM || ins->type==DIV_INS_MULTIPCM ||
ins->type==DIV_INS_SU) { ins->type==DIV_INS_SU ||
ins->type==DIV_INS_MIKEY) {
macroList.push_back(FurnaceGUIMacroDesc("Phase Reset",&ins->std.phaseResetMacro,0,1,32,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true)); macroList.push_back(FurnaceGUIMacroDesc("Phase Reset",&ins->std.phaseResetMacro,0,1,32,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true));
} }
if (ex1Max>0) { if (ex1Max>0) {