mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
sh: mtu fix
This commit is contained in:
parent
b4a5e3fd28
commit
f460c1e4b6
@ -216,7 +216,7 @@ void sh_mtu_channel_device::device_reset()
|
||||
m_last_clock_update = 0;
|
||||
m_event_time = 0;
|
||||
m_phase = 0;
|
||||
m_counter_cycle = 0;
|
||||
m_counter_cycle = 1;
|
||||
m_counter_incrementing = true;
|
||||
}
|
||||
|
||||
@ -419,7 +419,7 @@ void sh_mtu_channel_device::recalc_event(u64 cur_time)
|
||||
}
|
||||
|
||||
if(!cur_time)
|
||||
cur_time = m_cpu->total_cycles();
|
||||
cur_time = m_cpu->current_cycles();
|
||||
|
||||
if(m_counter_incrementing) {
|
||||
u32 event_delay = 0xffffffff;
|
||||
@ -466,7 +466,7 @@ void sh_mtu_channel_device::update_counter(u64 cur_time)
|
||||
return;
|
||||
|
||||
if(!cur_time)
|
||||
cur_time = m_cpu->total_cycles();
|
||||
cur_time = m_cpu->current_cycles();
|
||||
|
||||
if(!m_channel_active) {
|
||||
m_last_clock_update = cur_time;
|
||||
|
Loading…
Reference in New Issue
Block a user