mirror of
https://github.com/holub/mame
synced 2025-06-09 06:13:04 +03:00
6840ptm: fix divide by 8 mode
In divide by 8 mode the value computed in compute_counter() is wrong because the function doesn't divide the clock before the calculation. Signed-off-by: Sven Schnelle <svens@stackframe.org>
This commit is contained in:
parent
dd30364632
commit
20f0c7c2a2
@ -307,6 +307,10 @@ uint16_t ptm6840_device::compute_counter( int counter ) const
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
clk = m_external_clock[counter];
|
clk = m_external_clock[counter];
|
||||||
|
if (counter == 2)
|
||||||
|
{
|
||||||
|
clk /= m_t3_divisor;
|
||||||
|
}
|
||||||
LOG("Timer #%d external clock freq %f \n", counter + 1, clk);
|
LOG("Timer #%d external clock freq %f \n", counter + 1, clk);
|
||||||
}
|
}
|
||||||
// See how many are left
|
// See how many are left
|
||||||
|
Loading…
Reference in New Issue
Block a user