mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
(MESS) concept: can boot 5.25" disks on fdc02 now. [crazyc]
This commit is contained in:
parent
d24d71f93b
commit
1f3e83e08b
@ -112,6 +112,8 @@ void a2bus_corvfdc02_device::device_start()
|
|||||||
astring tempstring;
|
astring tempstring;
|
||||||
m_rom = device().machine().root_device().memregion(this->subtag(tempstring, FDC02_ROM_REGION))->base();
|
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_status));
|
||||||
save_item(NAME(m_fdc_local_command));
|
save_item(NAME(m_fdc_local_command));
|
||||||
save_item(NAME(m_bufptr));
|
save_item(NAME(m_bufptr));
|
||||||
@ -124,6 +126,13 @@ void a2bus_corvfdc02_device::device_reset()
|
|||||||
m_fdc_local_command = 0;
|
m_fdc_local_command = 0;
|
||||||
m_curfloppy = NULL;
|
m_curfloppy = NULL;
|
||||||
m_in_drq = false;
|
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)
|
if (!m_bufptr)
|
||||||
{
|
{
|
||||||
m_fdc->tc_w(true);
|
m_timer->adjust(attotime::zero);
|
||||||
m_fdc->tc_w(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_bufptr--;
|
m_bufptr--;
|
||||||
|
@ -39,6 +39,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void device_start();
|
virtual void device_start();
|
||||||
virtual void device_reset();
|
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
|
// overrides of standard a2bus slot functions
|
||||||
virtual UINT8 read_c0nx(address_space &space, UINT8 offset);
|
virtual UINT8 read_c0nx(address_space &space, UINT8 offset);
|
||||||
@ -58,6 +59,7 @@ private:
|
|||||||
UINT8 m_buffer[2048]; // 1x6116 SRAM
|
UINT8 m_buffer[2048]; // 1x6116 SRAM
|
||||||
floppy_image_device *m_curfloppy;
|
floppy_image_device *m_curfloppy;
|
||||||
bool m_in_drq;
|
bool m_in_drq;
|
||||||
|
emu_timer *m_timer;
|
||||||
};
|
};
|
||||||
|
|
||||||
// device type definition
|
// device type definition
|
||||||
|
Loading…
Reference in New Issue
Block a user