本文整理汇总了C++中required_device::MHFU方法的典型用法代码示例。如果您正苦于以下问题:C++ required_device::MHFU方法的具体用法?C++ required_device::MHFU怎么用?C++ required_device::MHFU使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类required_device
的用法示例。
在下文中一共展示了required_device::MHFU方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: machine_reset
LEGACY_FLOPPY_OPTIONS_END
void rainbow_state::machine_reset()
{
if (COLD_BOOT == 1)
{
COLD_BOOT = 2;
m_crtc->MHFU(-100); // reset MHFU counter
}
m_z80->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
INT88 = false;
INTZ80 = false;
m_zflip = true;
m_z80_halted = true;
m_kbd_tx_ready = m_kbd_rx_ready = false;
m_kbd8251->write_cts(1);
m_KBD = 0;
m_irq_high = 0;
// RESET ALL LEDs
output_set_value("led1", 1);
output_set_value("led2", 1);
output_set_value("led3", 1);
output_set_value("led4", 1);
output_set_value("led5", 1);
output_set_value("led6", 1);
output_set_value("led7", 1);
// GREEN KEYBOARD LEDs (1 = on, 0 = off):
output_set_value("led_wait", 0); // led8
output_set_value("led_compose", 0); // led9
output_set_value("led_lock", 0); // led10
output_set_value("led_hold", 0); // led11
MOTOR_DISABLE_counter = 2; // soon resets drv.LEDs
m_unit = 0;
m_irq_mask = 0;
}
示例2: machine_reset
LEGACY_FLOPPY_OPTIONS_END
void rainbow_state::machine_reset()
{
if (COLD_BOOT == 1)
{
COLD_BOOT = 2;
m_crtc->MHFU(-100); // reset MHFU counter
}
m_z80->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
INT88 = false;
INTZ80 = false;
m_zflip = true;
m_z80_halted = true;
m_kbd_tx_ready = m_kbd_rx_ready = false;
m_kbd8251->input_callback(device_serial_interface::CTS); // raise clear to send
m_KBD = 0;
m_beep->set_frequency(2000);
m_beep->set_state(0);
// RESET ALL LEDs
output_set_value("led1", 1);
output_set_value("led2", 1);
output_set_value("led3", 1);
output_set_value("led4", 1);
output_set_value("led5", 1);
output_set_value("led6", 1);
output_set_value("led7", 1);
output_set_value("led8", 1);
output_set_value("led9", 1);
output_set_value("led10", 1);
output_set_value("led11", 1);
MOTOR_DISABLE_counter = 2; // soon resets drv.LEDs
m_unit = 0;
}
示例3: machine_reset
INPUT_PORTS_END
void rainbow_state::machine_reset()
{
m_unit = INVALID_DRIVE;
m_fdc->reset();
m_fdc->set_floppy(NULL);
m_fdc->dden_w(0);
//m_fdc->set_force_ready(false);
/* configure RAM */
address_space &program = m_maincpu->space(AS_PROGRAM);
if (m_inp8->read() < END_OF_RAM)
{
program.unmap_readwrite(m_inp8->read(), END_OF_RAM);
}
// BIOS can't handle soft resets (=> triggers ERROR 16).
if ( COLD_BOOT == 2 )
{ // As a fallback, execute a hard reboot -
device().machine().schedule_hard_reset();
}
if ( COLD_BOOT == 1 )
{
COLD_BOOT = 2;
m_crtc->MHFU(-100); // reset MHFU counter
}
m_z80->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
INT88 = false;
INTZ80 = false;
m_zflip = true;
m_z80_halted = true;
m_kbd_tx_ready = m_kbd_rx_ready = false;
m_kbd8251->write_cts(1);
m_KBD = 0;
m_irq_high = 0;
// RESET ALL LEDs
output_set_value("led1", 1);
output_set_value("led2", 1);
output_set_value("led3", 1);
output_set_value("led4", 1);
output_set_value("led5", 1);
output_set_value("led6", 1);
output_set_value("led7", 1);
// GREEN KEYBOARD LEDs (1 = on, 0 = off):
output_set_value("led_wait", 0); // led8
output_set_value("led_compose", 0); // led9
output_set_value("led_lock", 0); // led10
output_set_value("led_hold", 0); // led11
m_irq_mask = 0;
}