mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +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 */
|
||||
if (elapsed_cycles > 0) --elapsed_cycles;
|
||||
--elapsed_cycles;
|
||||
timer->phase = 2;
|
||||
load_counter_value( device, timer );
|
||||
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)
|
||||
{
|
||||
--elapsed_cycles;
|
||||
if (elapsed_cycles > 0) --elapsed_cycles;
|
||||
timer->phase = 2;
|
||||
load_counter_value( device, timer );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user