Previous 199869 Revisions Next

r32497 Thursday 2nd October, 2014 at 13:49:36 UTC by R. Belmont
(MESS) concept: can boot 5.25" disks on fdc02 now. [crazyc]
[src/emu/bus/a2bus]corvfdc02.c corvfdc02.h

trunk/src/emu/bus/a2bus/corvfdc02.c
r32496r32497
112112   astring tempstring;
113113   m_rom = device().machine().root_device().memregion(this->subtag(tempstring, FDC02_ROM_REGION))->base();
114114
115   m_timer = timer_alloc(0);
116
115117   save_item(NAME(m_fdc_local_status));
116118   save_item(NAME(m_fdc_local_command));
117119   save_item(NAME(m_bufptr));
r32496r32497
124126   m_fdc_local_command = 0;
125127   m_curfloppy = NULL;
126128   m_in_drq = false;
129   m_timer->adjust(attotime::never);
127130}
128131
132void a2bus_corvfdc02_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
133{
134   m_fdc->tc_w(true);
135   m_fdc->tc_w(false);
136}
137
129138/*-------------------------------------------------
130139    read_c0nx - called for reads from this card's c0nx space
131140-------------------------------------------------*/
r32496r32497
274283
275284         if (!m_bufptr)
276285         {
277            m_fdc->tc_w(true);
278            m_fdc->tc_w(false);
286            m_timer->adjust(attotime::zero);
279287         }
280288
281289         m_bufptr--;
trunk/src/emu/bus/a2bus/corvfdc02.h
r32496r32497
3939protected:
4040   virtual void device_start();
4141   virtual void device_reset();
42   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
4243
4344   // overrides of standard a2bus slot functions
4445   virtual UINT8 read_c0nx(address_space &space, UINT8 offset);
r32496r32497
5859   UINT8 m_buffer[2048];   // 1x6116 SRAM
5960   floppy_image_device *m_curfloppy;
6061   bool m_in_drq;
62   emu_timer *m_timer;
6163};
6264
6365// device type definition

Previous 199869 Revisions Next


© 1997-2024 The MAME Team