fix recompute_bcount regression

This commit is contained in:
Michaël Banaan Ananas 2014-09-22 00:04:24 +00:00
parent 24d5e1dad3
commit a3744a6e0e
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ void h8_device::recompute_bcount(UINT64 event_time)
bcount = 0;
return;
}
bcount = total_cycles() - event_time;
bcount = total_cycles() + icount - event_time;
}
void h8_device::execute_run()

View File

@ -96,11 +96,11 @@ UINT32 mcs96_device::execute_input_lines() const
void mcs96_device::recompute_bcount(UINT64 event_time)
{
if(!event_time || event_time >= total_cycles()+icount) {
if(!event_time || event_time >= total_cycles() + icount) {
bcount = 0;
return;
}
bcount = total_cycles() - event_time;
bcount = total_cycles() + icount - event_time;
}
void mcs96_device::check_irq()