Previous 15994 Revisions Next

r9219 Friday 24th September, 2010 at 00:46:41 UTC by Curt Coder
[E01] Fixed floppy type.
[src/mess/drivers]e01.c
[src/mess/includes]e01.h

src/mess/includes/e01.h
r9218r9219
99#define R6522_TAG      "ic21"
1010#define WD2793_TAG      "ic20"
1111#define MC6854_TAG      "mc6854"
12#define HD146818_TAG   "hd146818"
1213#define CENTRONICS_TAG   "centronics"
1314
1415class e01_state : public driver_device
src/mess/drivers/e01.c
r9218r9219
138138    */
139139
140140   /* floppy 1 select */
141   if (!BIT(data, 0))
142   {
143      wd17xx_set_drive(device, 0);
144   }
141   if (!BIT(data, 0)) wd17xx_set_drive(device, 0);
145142
146143   /* floppy 2 select */
147   if (!BIT(data, 1))
148   {
149      wd17xx_set_drive(device, 1);
150   }
144   if (!BIT(data, 1)) wd17xx_set_drive(device, 1);
151145
152146   /* floppy side select */
153147   wd17xx_set_side(device, BIT(data, 2));
r9218r9219
199193
200194static READ8_HANDLER( rtc_address_r )
201195{
202   mc146818_device *rtc = space->machine->device<mc146818_device>("rtc");
196   mc146818_device *rtc = space->machine->device<mc146818_device>(HD146818_TAG);
203197   return rtc->read(*space, 0);
204198}
205199
206200static WRITE8_HANDLER( rtc_address_w )
207201{
208   mc146818_device *rtc = space->machine->device<mc146818_device>("rtc");
202   mc146818_device *rtc = space->machine->device<mc146818_device>(HD146818_TAG);
209203   rtc->write(*space, 0, data);
210204}
211205
212206static READ8_HANDLER( rtc_data_r )
213207{
214   mc146818_device *rtc = space->machine->device<mc146818_device>("rtc");
208   mc146818_device *rtc = space->machine->device<mc146818_device>(HD146818_TAG);
215209   return rtc->read(*space, 1);
216210}
217211
218212static WRITE8_HANDLER( rtc_data_w )
219213{
220   mc146818_device *rtc = space->machine->device<mc146818_device>("rtc");
214   mc146818_device *rtc = space->machine->device<mc146818_device>(HD146818_TAG);
221215   rtc->write(*space, 1, data);
222216}
223217
r9218r9219
354348   DEVCB_NULL,
355349   DEVCB_NULL,
356350   DEVCB_NULL,
357   FLOPPY_STANDARD_5_25_DSHD,
351   FLOPPY_STANDARD_3_5_DSDD, // NEC FD1036 A
358352   FLOPPY_OPTIONS_NAME(default),
359353   NULL
360354};
r9218r9219
439433-------------------------------------------------*/
440434
441435static MACHINE_CONFIG_START( e01, e01_state )
442
443436    /* basic machine hardware */
444437   MDRV_CPU_ADD(R65C102_TAG, M65C02, 1000000) // Rockwell R65C102P3
445438    MDRV_CPU_PROGRAM_MAP(e01_mem)
r9218r9219
447440    MDRV_MACHINE_START(e01)
448441    MDRV_MACHINE_RESET(e01)
449442
450   MDRV_MC146818_ADD( "rtc", MC146818_STANDARD )
443   MDRV_MC146818_ADD(HD146818_TAG, MC146818_STANDARD)
451444
452445   MDRV_TIMER_ADD_PERIODIC("rtc_hack", rtc_irq_hack, HZ(2)) // HACK!
453446

Previous 15994 Revisions Next


© 1998-2018 The MESS Team