void mos6530_base_t::timer_w(offs_t offset, UINT8 data, bool ie) { live_sync(); m_timer = data; switch (offset & 0x03) { case 0: m_prescale = 1; break; case 1: m_prescale = 8; break; case 2: m_prescale = 64; break; case 3: m_prescale = 1024; break; } m_ie_timer = ie; if (cur_live.tm_irq != machine().time()) { m_irq_timer = false; } update_irq(); if (LOG_TIMER) logerror("%s %s %s '%s' Timer value %02x prescale %u IE %u\n", machine().time().as_string(), machine().describe_context(), name(), tag(), data, m_prescale, m_ie_timer ? 1 : 0); checkpoint(); if (cur_live.state != IDLE) { live_abort(); } live_start(); live_run(); }
void mos6530_base_t::device_reset() { m_pa_out = 0xff; m_pa_ddr = 0; m_pb_out = 0xff; // a7800 One-On-One Basketball (1on1u) needs this or you can't start a game, it doesn't initialize it. (see MT6060) m_pb_ddr = 0; m_ie_timer = false; m_irq_timer = false; m_ie_edge = false; m_irq_edge = false; m_pa7_dir = 0; update_pa(); update_pb(); update_irq(); edge_detect(); m_timer = 0xff; m_prescale = 1024; if (cur_live.state != IDLE) { live_abort(); } live_start(); live_run(); }
void mos6530_base_t::device_reset() { m_pa_out = 0; m_pa_ddr = 0; m_pb_out = 0; m_pb_ddr = 0; m_ie_timer = false; m_irq_timer = false; m_ie_edge = false; m_irq_edge = false; m_pa7_dir = 0; update_pa(); update_pb(); update_irq(); edge_detect(); m_timer = 0xff; m_prescale = 1024; if (cur_live.state != IDLE) { live_abort(); } live_start(); live_run(); }
void amiga_fdc::device_reset() { floppy = 0; dsklen = 0x4000; dsksync = 0x4489; adkcon = 0; dmacon = 0; dskpt = 0; pre_dsklen = 0x4000; dma_value = 0; dma_state = DMA_IDLE; live_abort(); }
void victor_9000_fdc_t::device_reset() { live_abort(); // reset devices m_via4->reset(); m_via5->reset(); m_via6->reset(); // set floppy callbacks m_floppy0->setup_load_cb(floppy_image_device::load_cb(FUNC(victor_9000_fdc_t::load0_cb), this)); m_floppy0->setup_unload_cb(floppy_image_device::unload_cb(FUNC(victor_9000_fdc_t::unload0_cb), this)); m_floppy1->setup_load_cb(floppy_image_device::load_cb(FUNC(victor_9000_fdc_t::load1_cb), this)); m_floppy1->setup_unload_cb(floppy_image_device::unload_cb(FUNC(victor_9000_fdc_t::unload1_cb), this)); }
void c2040_fdc_t::device_reset() { live_abort(); }
void c64h156_device::device_reset() { live_abort(); }
void c8050_fdc_t::device_reset() { live_abort(); }