(MESS) concept: can boot 5.25" disks on fdc02 now. [crazyc]

This commit is contained in:
R. Belmont 2014-10-02 13:49:36 +00:00
parent d24d71f93b
commit 1f3e83e08b
2 changed files with 12 additions and 2 deletions

View File

@ -112,6 +112,8 @@ void a2bus_corvfdc02_device::device_start()
astring tempstring;
m_rom = device().machine().root_device().memregion(this->subtag(tempstring, FDC02_ROM_REGION))->base();
m_timer = timer_alloc(0);
save_item(NAME(m_fdc_local_status));
save_item(NAME(m_fdc_local_command));
save_item(NAME(m_bufptr));
@ -124,6 +126,13 @@ void a2bus_corvfdc02_device::device_reset()
m_fdc_local_command = 0;
m_curfloppy = NULL;
m_in_drq = false;
m_timer->adjust(attotime::never);
}
void a2bus_corvfdc02_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
{
m_fdc->tc_w(true);
m_fdc->tc_w(false);
}
/*-------------------------------------------------
@ -274,8 +283,7 @@ WRITE_LINE_MEMBER(a2bus_corvfdc02_device::drq_w)
if (!m_bufptr)
{
m_fdc->tc_w(true);
m_fdc->tc_w(false);
m_timer->adjust(attotime::zero);
}
m_bufptr--;

View File

@ -39,6 +39,7 @@ public:
protected:
virtual void device_start();
virtual void device_reset();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
// overrides of standard a2bus slot functions
virtual UINT8 read_c0nx(address_space &space, UINT8 offset);
@ -58,6 +59,7 @@ private:
UINT8 m_buffer[2048]; // 1x6116 SRAM
floppy_image_device *m_curfloppy;
bool m_in_drq;
emu_timer *m_timer;
};
// device type definition