mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
Fix enable bit correction
This commit is contained in:
parent
44b4c5c5aa
commit
5c922a090e
1 changed files with 6 additions and 0 deletions
|
@ -145,7 +145,10 @@ bool vrcvi_core::alu_t::tick()
|
|||
bool vrcvi_core::pulse_t::tick()
|
||||
{
|
||||
if (!m_divider.m_enable)
|
||||
{
|
||||
m_cycle = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (vrcvi_core::alu_t::tick())
|
||||
m_cycle = bitfield(m_cycle + 1, 0, 4);
|
||||
|
@ -156,7 +159,10 @@ bool vrcvi_core::pulse_t::tick()
|
|||
bool vrcvi_core::sawtooth_t::tick()
|
||||
{
|
||||
if (!m_divider.m_enable)
|
||||
{
|
||||
m_accum = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (vrcvi_core::alu_t::tick())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue