mirror of
https://github.com/holub/mame
synced 2025-07-06 02:18:09 +03:00
h8_sci: set logerror verbosity to 0 (performance issue in gk2000),
mhavoc, remove timer_set
This commit is contained in:
parent
5a89c1f7ba
commit
e65af663eb
@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
// Verbosity level
|
// Verbosity level
|
||||||
// 0 = no messages
|
// 0 = no messages
|
||||||
// 1 = transmitted/recieved bytes, reception errors and clock setup
|
// 1 = transmitted/received bytes, reception errors and clock setup
|
||||||
// 2 = everything but status register reads
|
// 2 = everything but status register reads
|
||||||
// 3 = everything
|
// 3 = everything
|
||||||
static constexpr int V = 1;
|
static constexpr int V = 0;
|
||||||
|
|
||||||
|
|
||||||
DEFINE_DEVICE_TYPE(H8_SCI, h8_sci_device, "h8_sci", "H8 Serial Communications Interface")
|
DEFINE_DEVICE_TYPE(H8_SCI, h8_sci_device, "h8_sci", "H8 Serial Communications Interface")
|
||||||
@ -571,7 +571,7 @@ void h8_sci_device::clock_start(int mode)
|
|||||||
m_rx_clock_base = machine().time().as_ticks(m_cpu->clock());
|
m_rx_clock_base = machine().time().as_ticks(m_cpu->clock());
|
||||||
m_cpu->internal_update();
|
m_cpu->internal_update();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case clock_mode_t::EXTERNAL_RATE_ASYNC:
|
case clock_mode_t::EXTERNAL_RATE_ASYNC:
|
||||||
if(V>=1) logerror("Simulating external clock async\n");
|
if(V>=1) logerror("Simulating external clock async\n");
|
||||||
if(mode == CLK_TX)
|
if(mode == CLK_TX)
|
||||||
@ -583,21 +583,21 @@ void h8_sci_device::clock_start(int mode)
|
|||||||
|
|
||||||
case clock_mode_t::EXTERNAL_RATE_SYNC:
|
case clock_mode_t::EXTERNAL_RATE_SYNC:
|
||||||
if(V>=1) logerror("Simulating external clock sync\n");
|
if(V>=1) logerror("Simulating external clock sync\n");
|
||||||
if(mode == CLK_TX)
|
if(mode == CLK_TX)
|
||||||
m_tx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio);
|
m_tx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio);
|
||||||
else
|
else
|
||||||
m_rx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio);
|
m_rx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio);
|
||||||
m_cpu->internal_update();
|
m_cpu->internal_update();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case clock_mode_t::EXTERNAL_ASYNC:
|
case clock_mode_t::EXTERNAL_ASYNC:
|
||||||
if(V>=1) logerror("Waiting for external clock async\n");
|
if(V>=1) logerror("Waiting for external clock async\n");
|
||||||
if(mode == CLK_TX)
|
if(mode == CLK_TX)
|
||||||
m_tx_ext_clock_counter = 15;
|
m_tx_ext_clock_counter = 15;
|
||||||
else
|
else
|
||||||
m_rx_ext_clock_counter = 15;
|
m_rx_ext_clock_counter = 15;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case clock_mode_t::EXTERNAL_SYNC:
|
case clock_mode_t::EXTERNAL_SYNC:
|
||||||
if(V>=1) logerror("Waiting for external clock sync\n");
|
if(V>=1) logerror("Waiting for external clock sync\n");
|
||||||
break;
|
break;
|
||||||
|
@ -486,7 +486,7 @@ TIMER_CALLBACK_MEMBER(mhavoc_state::delayed_gamma_w)
|
|||||||
m_gamma->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
m_gamma->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
|
||||||
|
|
||||||
// the sound CPU needs to reply in 250 microseconds (according to Neil Bradley)
|
// the sound CPU needs to reply in 250 microseconds (according to Neil Bradley)
|
||||||
machine().scheduler().timer_set(attotime::from_usec(250), timer_expired_delegate());
|
machine().scheduler().perfect_quantum(attotime::from_usec(250));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user