Fix enable bit correction

This commit is contained in:
cam900 2022-03-28 01:43:43 +09:00
parent 44b4c5c5aa
commit 5c922a090e
1 changed files with 6 additions and 0 deletions

View File

@ -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())
{