Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed barrel shifter (square channel) #426

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion BreaksAPU/APUSim/square.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace APUSim
for (size_t n = 0; n < 3; n++)
{
sr_reg[n].sim(ACLK1, WR1, apu->GetDBBit(n));
SR[n] = sr_reg[n].get();
}
}

Expand Down Expand Up @@ -160,7 +161,7 @@ namespace APUSim

SW_OVF = NOR(DEC, n_COUT);
TriState SRZ = NOR3(SR[0], SR[1], SR[2]);
DO_SWEEP = NOR7(SRZ, SWDIS, NOSQ, SW_OVF, NOT(SCO), n_LFO2, SW_UVF);
DO_SWEEP = NOR7(SRZ, SWDIS, NOSQ, SW_OVF, sco_latch.nget(), n_LFO2, SW_UVF);
}

void SquareChan::sim_Duty(TriState WR0, TriState WR3)
Expand Down