mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Forgot to save last changes in latest commit.
This commit is contained in:
parent
bd0c65cb91
commit
be42e6caae
@ -412,10 +412,10 @@ static void simulate2(const device_config *device, struct pit8253_timer *timer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( elapsed_cycles >= 0 && timer->phase == 3 )
|
if ( elapsed_cycles > 0 && timer->phase == 3 )
|
||||||
{
|
{
|
||||||
/* Reload counter, output goes high */
|
/* Reload counter, output goes high */
|
||||||
if (elapsed_cycles > 0) --elapsed_cycles;
|
--elapsed_cycles;
|
||||||
timer->phase = 2;
|
timer->phase = 2;
|
||||||
load_counter_value( device, timer );
|
load_counter_value( device, timer );
|
||||||
adjusted_value = adjusted_count( bcd, timer->value );
|
adjusted_value = adjusted_count( bcd, timer->value );
|
||||||
@ -548,7 +548,7 @@ static void simulate2(const device_config *device, struct pit8253_timer *timer,
|
|||||||
{
|
{
|
||||||
if (elapsed_cycles >= 0 && timer->phase == 1)
|
if (elapsed_cycles >= 0 && timer->phase == 1)
|
||||||
{
|
{
|
||||||
--elapsed_cycles;
|
if (elapsed_cycles > 0) --elapsed_cycles;
|
||||||
timer->phase = 2;
|
timer->phase = 2;
|
||||||
load_counter_value( device, timer );
|
load_counter_value( device, timer );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user