src/emu/imagedev/floppy.c
| r13192 | r13193 | |
| 9 | 9 | #include "formats/imageutl.h" |
| 10 | 10 | |
| 11 | 11 | // device type definition |
| 12 | | const device_type FLOPPY = &device_creator<floppy_image_device>; |
| 12 | const device_type FLOPPY_CONNECTOR = &device_creator<floppy_connector>; |
| 13 | const device_type FLOPPY_35_DD = &device_creator<floppy_35_dd>; |
| 14 | const device_type FLOPPY_35_HD = &device_creator<floppy_35_hd>; |
| 15 | const device_type FLOPPY_525_DD = &device_creator<floppy_525_dd>; |
| 13 | 16 | |
| 17 | floppy_connector::floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 18 | device_t(mconfig, FLOPPY_CONNECTOR, "Floppy drive connector abstraction", tag, owner, clock), |
| 19 | device_slot_interface(mconfig, *this) |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | floppy_connector::~floppy_connector() |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | void floppy_connector::set_formats(const floppy_format_type *_formats) |
| 28 | { |
| 29 | formats = _formats; |
| 30 | } |
| 31 | |
| 32 | void floppy_connector::device_start() |
| 33 | { |
| 34 | floppy_image_device *dev = dynamic_cast<floppy_image_device *>(get_card_device()); |
| 35 | if(dev) |
| 36 | dev->set_formats(formats); |
| 37 | } |
| 38 | |
| 39 | floppy_image_device *floppy_connector::get_device() |
| 40 | { |
| 41 | return dynamic_cast<floppy_image_device *>(get_card_device()); |
| 42 | } |
| 43 | |
| 14 | 44 | //------------------------------------------------- |
| 15 | 45 | // floppy_image_device - constructor |
| 16 | 46 | //------------------------------------------------- |
| 17 | 47 | |
| 18 | | floppy_image_device::floppy_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 19 | | : device_t(mconfig, FLOPPY, "Floppy drive", tag, owner, clock), |
| 48 | floppy_image_device::floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) |
| 49 | : device_t(mconfig, type, name, tag, owner, clock), |
| 20 | 50 | device_image_interface(mconfig, *this), |
| 51 | device_slot_card_interface(mconfig, *this), |
| 21 | 52 | image(NULL) |
| 22 | 53 | { |
| 23 | 54 | } |
| r13192 | r13193 | |
| 45 | 76 | cur_index_pulse_cb = cb; |
| 46 | 77 | } |
| 47 | 78 | |
| 48 | | void floppy_image_device::set_info(int _type, int _tracks, int _sides, const floppy_format_type *formats) |
| 79 | void floppy_image_device::set_formats(const floppy_format_type *formats) |
| 49 | 80 | { |
| 50 | | type = _type; |
| 51 | | tracks = _tracks; |
| 52 | | sides = _sides; |
| 53 | | |
| 54 | 81 | image_device_format **formatptr; |
| 55 | 82 | image_device_format *format; |
| 56 | 83 | formatptr = &m_formatlist; |
| r13192 | r13193 | |
| 103 | 130 | |
| 104 | 131 | void floppy_image_device::device_start() |
| 105 | 132 | { |
| 133 | rpm = 0; |
| 134 | setup_limits(); |
| 135 | |
| 106 | 136 | idx = 0; |
| 107 | 137 | |
| 108 | 138 | /* motor off */ |
| r13192 | r13193 | |
| 110 | 140 | /* set write protect on */ |
| 111 | 141 | wpt = 0; |
| 112 | 142 | |
| 113 | | rpm = 0; |
| 114 | | set_rpm(300); |
| 115 | | |
| 116 | 143 | cyl = 0; |
| 117 | 144 | ss = 1; |
| 118 | 145 | stp = 1; |
| r13192 | r13193 | |
| 139 | 166 | io.file = (device_image_interface *)this; |
| 140 | 167 | io.procs = &image_ioprocs; |
| 141 | 168 | io.filler = 0xff; |
| 142 | | |
| 169 | fprintf(stderr, "Loading\n"); |
| 143 | 170 | int best = 0; |
| 144 | 171 | floppy_image_format_t *best_format = 0; |
| 145 | 172 | for(floppy_image_format_t *format = fif_list; format; format = format->next) { |
| r13192 | r13193 | |
| 493 | 520 | |
| 494 | 521 | } |
| 495 | 522 | } |
| 523 | |
| 524 | floppy_35_dd::floppy_35_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 525 | floppy_image_device(mconfig, FLOPPY_35_DD, "3.5\" double density floppy drive", tag, owner, clock) |
| 526 | { |
| 527 | } |
| 528 | |
| 529 | floppy_35_dd::~floppy_35_dd() |
| 530 | { |
| 531 | } |
| 532 | |
| 533 | void floppy_35_dd::setup_limits() |
| 534 | { |
| 535 | tracks = 84; |
| 536 | sides = 2; |
| 537 | set_rpm(300); |
| 538 | } |
| 539 | |
| 540 | floppy_35_hd::floppy_35_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 541 | floppy_image_device(mconfig, FLOPPY_35_HD, "3.5\" high density floppy drive", tag, owner, clock) |
| 542 | { |
| 543 | } |
| 544 | |
| 545 | floppy_35_hd::~floppy_35_hd() |
| 546 | { |
| 547 | } |
| 548 | |
| 549 | void floppy_35_hd::setup_limits() |
| 550 | { |
| 551 | tracks = 84; |
| 552 | sides = 2; |
| 553 | set_rpm(300); |
| 554 | } |
| 555 | |
| 556 | |
| 557 | floppy_525_dd::floppy_525_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 558 | floppy_image_device(mconfig, FLOPPY_525_DD, "3.5\" high density floppy drive", tag, owner, clock) |
| 559 | { |
| 560 | } |
| 561 | |
| 562 | floppy_525_dd::~floppy_525_dd() |
| 563 | { |
| 564 | } |
| 565 | |
| 566 | void floppy_525_dd::setup_limits() |
| 567 | { |
| 568 | tracks = 42; |
| 569 | sides = 1; |
| 570 | set_rpm(300); |
| 571 | } |
src/emu/imagedev/floppy.h
| r13192 | r13193 | |
| 9 | 9 | |
| 10 | 10 | #include "formats/flopimg.h" |
| 11 | 11 | |
| 12 | | #define MCFG_FLOPPY_DRIVE_ADD(_tag, _type, _tracks, _sides, _formats) \ |
| 13 | | MCFG_DEVICE_ADD(_tag, FLOPPY, 0) \ |
| 14 | | downcast<floppy_image_device *>(device)->set_info(_type, _tracks, _sides, _formats); |
| 12 | #define MCFG_FLOPPY_DRIVE_ADD(_tag, _slot_intf, _def_slot, _def_inp, _formats) \ |
| 13 | MCFG_DEVICE_ADD(_tag, FLOPPY_CONNECTOR, 0) \ |
| 14 | MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, _def_inp) \ |
| 15 | static_cast<floppy_connector *>(device)->set_formats(_formats); |
| 15 | 16 | |
| 17 | |
| 16 | 18 | /*************************************************************************** |
| 17 | 19 | TYPE DEFINITIONS |
| 18 | 20 | ***************************************************************************/ |
| 19 | 21 | |
| 20 | | |
| 21 | 22 | class floppy_image_device : public device_t, |
| 22 | | public device_image_interface |
| 23 | public device_image_interface, |
| 24 | public device_slot_card_interface |
| 23 | 25 | { |
| 24 | 26 | public: |
| 25 | | enum { |
| 26 | | TYPE_35_SD, TYPE_35_DD, TYPE_35_HD, TYPE_35_ED, |
| 27 | | TYPE_525_SD, TYPE_525_DD, TYPE_525_HD |
| 28 | | }; |
| 29 | | |
| 30 | 27 | typedef delegate<int (floppy_image_device *)> load_cb; |
| 31 | 28 | typedef delegate<void (floppy_image_device *)> unload_cb; |
| 32 | 29 | typedef delegate<void (floppy_image_device *, int)> index_pulse_cb; |
| 33 | 30 | |
| 34 | 31 | // construction/destruction |
| 35 | | floppy_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 32 | floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); |
| 36 | 33 | virtual ~floppy_image_device(); |
| 37 | 34 | |
| 38 | | void set_info(int type, int tracks, int sides, const floppy_format_type *formats); |
| 35 | void set_formats(const floppy_format_type *formats); |
| 39 | 36 | void set_rpm(float rpm); |
| 40 | 37 | |
| 41 | 38 | // image-level overrides |
| r13192 | r13193 | |
| 86 | 83 | virtual void device_reset(); |
| 87 | 84 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 88 | 85 | |
| 86 | virtual void setup_limits() = 0; |
| 87 | |
| 89 | 88 | image_device_format format; |
| 90 | 89 | floppy_image *image; |
| 91 | 90 | char extension_list[256]; |
| 92 | 91 | floppy_image_format_t *fif_list; |
| 93 | 92 | emu_timer *index_timer; |
| 94 | 93 | |
| 95 | | /* Physical characteristics */ |
| 96 | | int type; /* reader type */ |
| 94 | /* Physical characteristics, filled by setup_limits */ |
| 97 | 95 | int tracks; /* addressable tracks */ |
| 98 | 96 | int sides; /* number of heads */ |
| 99 | 97 | |
| r13192 | r13193 | |
| 126 | 124 | void write_zone(UINT32 *buf, int &cells, int &index, UINT32 spos, UINT32 epos, UINT32 mg); |
| 127 | 125 | }; |
| 128 | 126 | |
| 127 | class floppy_35_dd : public floppy_image_device { |
| 128 | public: |
| 129 | floppy_35_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 130 | virtual ~floppy_35_dd(); |
| 131 | |
| 132 | protected: |
| 133 | virtual void setup_limits(); |
| 134 | }; |
| 135 | |
| 136 | class floppy_35_hd : public floppy_image_device { |
| 137 | public: |
| 138 | floppy_35_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 139 | virtual ~floppy_35_hd(); |
| 140 | |
| 141 | protected: |
| 142 | virtual void setup_limits(); |
| 143 | }; |
| 144 | |
| 145 | class floppy_525_dd : public floppy_image_device { |
| 146 | public: |
| 147 | floppy_525_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 148 | virtual ~floppy_525_dd(); |
| 149 | |
| 150 | protected: |
| 151 | virtual void setup_limits(); |
| 152 | }; |
| 153 | |
| 154 | class floppy_connector: public device_t, |
| 155 | public device_slot_interface |
| 156 | { |
| 157 | public: |
| 158 | floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 159 | virtual ~floppy_connector(); |
| 160 | |
| 161 | void set_formats(const floppy_format_type *formats); |
| 162 | floppy_image_device *get_device(); |
| 163 | |
| 164 | protected: |
| 165 | virtual void device_start(); |
| 166 | |
| 167 | private: |
| 168 | const floppy_format_type *formats; |
| 169 | }; |
| 170 | |
| 171 | |
| 129 | 172 | // device type definition |
| 130 | | extern const device_type FLOPPY; |
| 173 | extern const device_type FLOPPY_CONNECTOR; |
| 174 | extern const device_type FLOPPY_35_DD; |
| 175 | extern const device_type FLOPPY_35_HD; |
| 176 | extern const device_type FLOPPY_525_DD; |
| 131 | 177 | |
| 132 | 178 | #endif /* FLOPPY_H */ |
src/mess/drivers/atarist.c
| r13192 | r13193 | |
| 1718 | 1718 | // drive select |
| 1719 | 1719 | floppy_image_device *floppy = 0; |
| 1720 | 1720 | if (!BIT(data, 1)) |
| 1721 | | floppy = machine().device<floppy_image_device>("fd0"); |
| 1721 | floppy = floppy_devices[0]; |
| 1722 | 1722 | else if(!BIT(data, 2)) |
| 1723 | | floppy = machine().device<floppy_image_device>("fd1"); |
| 1723 | floppy = floppy_devices[0]; |
| 1724 | 1724 | |
| 1725 | 1725 | // side select |
| 1726 | 1726 | if(floppy) |
| r13192 | r13193 | |
| 1773 | 1773 | // drive select |
| 1774 | 1774 | floppy_image_device *floppy = 0; |
| 1775 | 1775 | if (!BIT(data, 1)) |
| 1776 | | floppy = machine().device<floppy_image_device>("fd0"); |
| 1776 | floppy = floppy_devices[0]; |
| 1777 | 1777 | else if(!BIT(data, 2)) |
| 1778 | | floppy = machine().device<floppy_image_device>("fd1"); |
| 1778 | floppy = floppy_devices[1]; |
| 1779 | 1779 | |
| 1780 | 1780 | // side select |
| 1781 | 1781 | if(floppy) |
| r13192 | r13193 | |
| 2239 | 2239 | // register for state saving |
| 2240 | 2240 | state_save(); |
| 2241 | 2241 | |
| 2242 | | machine().device<floppy_image_device>("fd0")->set_rpm(300); |
| 2243 | | machine().device<floppy_image_device>("fd1")->set_rpm(300); |
| 2242 | static const char *names[] = { "fd0", "fd1" }; |
| 2243 | for(int i=0; i != 1; i++) { |
| 2244 | floppy_connector *con = machine().device<floppy_connector>(names[i]); |
| 2245 | if(con) |
| 2246 | floppy_devices[i] = con->get_device(); |
| 2247 | else |
| 2248 | floppy_devices[i] = 0; |
| 2249 | } |
| 2250 | |
| 2244 | 2251 | m_fdc->setup_drq_cb(wd1772_t::line_cb(FUNC(st_state::fdc_drq_w), this)); |
| 2245 | 2252 | m_fdc->setup_intrq_cb(wd1772_t::line_cb(FUNC(st_state::fdc_intrq_w), this)); |
| 2246 | 2253 | } |
| r13192 | r13193 | |
| 2331 | 2338 | NULL |
| 2332 | 2339 | }; |
| 2333 | 2340 | |
| 2341 | static SLOT_INTERFACE_START( atari_floppies ) |
| 2342 | SLOT_INTERFACE( "35dd", FLOPPY_35_DD ) |
| 2343 | SLOT_INTERFACE_END |
| 2344 | |
| 2334 | 2345 | //************************************************************************** |
| 2335 | 2346 | // MACHINE CONFIGURATION |
| 2336 | 2347 | //************************************************************************** |
| r13192 | r13193 | |
| 2367 | 2378 | MCFG_ACIA6850_ADD(MC6850_1_TAG, acia_midi_intf) |
| 2368 | 2379 | MCFG_MC68901_ADD(MC68901_TAG, Y2/8, mfp_intf) |
| 2369 | 2380 | MCFG_WD1772x_ADD(WD1772_TAG, Y2/4) |
| 2370 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2371 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2381 | |
| 2382 | MCFG_FLOPPY_DRIVE_ADD("fd0", atari_floppies, "35dd", 0, st_state::floppy_formats) |
| 2383 | MCFG_FLOPPY_DRIVE_ADD("fd1", atari_floppies, 0, 0, st_state::floppy_formats) |
| 2384 | |
| 2372 | 2385 | MCFG_RS232_ADD(RS232_TAG, rs232_intf) |
| 2373 | 2386 | MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_intf) |
| 2374 | 2387 | |
| r13192 | r13193 | |
| 2418 | 2431 | MCFG_ACIA6850_ADD(MC6850_1_TAG, acia_midi_intf) |
| 2419 | 2432 | MCFG_MC68901_ADD(MC68901_TAG, Y2/8, mfp_intf) |
| 2420 | 2433 | MCFG_WD1772x_ADD(WD1772_TAG, Y2/4) |
| 2421 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2422 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2434 | MCFG_FLOPPY_DRIVE_ADD("fd0", atari_floppies, "35dd", 0, st_state::floppy_formats) |
| 2435 | MCFG_FLOPPY_DRIVE_ADD("fd1", atari_floppies, 0, 0, st_state::floppy_formats) |
| 2423 | 2436 | MCFG_RS232_ADD(RS232_TAG, rs232_intf) |
| 2424 | 2437 | MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_intf) |
| 2425 | 2438 | MCFG_RP5C15_ADD(RP5C15_TAG, XTAL_32_768kHz, rtc_intf) |
| r13192 | r13193 | |
| 2478 | 2491 | MCFG_ACIA6850_ADD(MC6850_1_TAG, acia_midi_intf) |
| 2479 | 2492 | MCFG_MC68901_ADD(MC68901_TAG, Y2/8, atariste_mfp_intf) |
| 2480 | 2493 | MCFG_WD1772x_ADD(WD1772_TAG, Y2/4) |
| 2481 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2482 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2494 | MCFG_FLOPPY_DRIVE_ADD("fd0", atari_floppies, "35dd", 0, st_state::floppy_formats) |
| 2495 | MCFG_FLOPPY_DRIVE_ADD("fd1", atari_floppies, 0, 0, st_state::floppy_formats) |
| 2483 | 2496 | MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_intf) |
| 2484 | 2497 | MCFG_RS232_ADD(RS232_TAG, rs232_intf) |
| 2485 | 2498 | |
| r13192 | r13193 | |
| 2548 | 2561 | MCFG_ACIA6850_ADD(MC6850_1_TAG, acia_midi_intf) |
| 2549 | 2562 | MCFG_MC68901_ADD(MC68901_TAG, U517/8, stbook_mfp_intf) |
| 2550 | 2563 | MCFG_WD1772x_ADD(WD1772_TAG, U517/2) |
| 2551 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2552 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, st_state::floppy_formats) |
| 2564 | MCFG_FLOPPY_DRIVE_ADD("fd0", atari_floppies, "35dd", 0, st_state::floppy_formats) |
| 2565 | MCFG_FLOPPY_DRIVE_ADD("fd1", atari_floppies, 0, 0, st_state::floppy_formats) |
| 2553 | 2566 | MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_intf) |
| 2554 | 2567 | MCFG_RS232_ADD(RS232_TAG, rs232_intf) |
| 2555 | 2568 | |
src/mess/drivers/amiga.c
| r13192 | r13193 | |
| 359 | 359 | DEVCB_NULL |
| 360 | 360 | }; |
| 361 | 361 | |
| 362 | static SLOT_INTERFACE_START( amiga_floppies ) |
| 363 | SLOT_INTERFACE( "35dd", FLOPPY_35_DD ) |
| 364 | SLOT_INTERFACE_END |
| 362 | 365 | |
| 363 | 366 | static MACHINE_CONFIG_FRAGMENT( amiga_cartslot ) |
| 364 | 367 | MCFG_CARTSLOT_ADD("cart") |
| r13192 | r13193 | |
| 412 | 415 | |
| 413 | 416 | /* fdc */ |
| 414 | 417 | MCFG_AMIGA_FDC_ADD("fdc", AMIGA_68000_NTSC_CLOCK) |
| 415 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, amiga_fdc::floppy_formats) |
| 416 | | // MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, amiga_fdc::floppy_formats) |
| 418 | MCFG_FLOPPY_DRIVE_ADD("fd0", amiga_floppies, "35dd", 0, amiga_fdc::floppy_formats) |
| 419 | MCFG_FLOPPY_DRIVE_ADD("fd1", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 420 | MCFG_FLOPPY_DRIVE_ADD("fd2", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 421 | MCFG_FLOPPY_DRIVE_ADD("fd3", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 417 | 422 | MACHINE_CONFIG_END |
| 418 | 423 | |
| 419 | 424 | static MACHINE_CONFIG_DERIVED( a1000n, ntsc ) |
src/mess/drivers/einstein.c
| r13192 | r13193 | |
| 249 | 249 | logerror("%s: einstein_drsel_w %02x\n", device->machine().describe_context(), data); |
| 250 | 250 | |
| 251 | 251 | /* bit 0 to 3 select the drive */ |
| 252 | static const char *names[] = { "fd0", "fd1", "fd2", "fd3" }; |
| 252 | 253 | floppy_image_device *floppy = 0; |
| 253 | | if (BIT(data, 0)) floppy = device->machine().device<floppy_image_device>("fd0"); |
| 254 | | if (BIT(data, 1)) floppy = device->machine().device<floppy_image_device>("fd1"); |
| 255 | | if (BIT(data, 2)) floppy = device->machine().device<floppy_image_device>("fd2"); |
| 256 | | if (BIT(data, 3)) floppy = device->machine().device<floppy_image_device>("fd3"); |
| 254 | for(int i=0; i<4; i++) { |
| 255 | if(BIT(data, i)) { |
| 256 | floppy_connector *con = device->machine().device<floppy_connector>(names[i]); |
| 257 | if(con) |
| 258 | floppy = con->get_device(); |
| 259 | } |
| 260 | } |
| 257 | 261 | |
| 258 | 262 | /* double sided drive connected? */ |
| 259 | 263 | if (input_port_read(device->machine(), "config") & data) |
| r13192 | r13193 | |
| 430 | 434 | |
| 431 | 435 | static MACHINE_START( einstein ) |
| 432 | 436 | { |
| 433 | | machine.device<floppy_image_device>("fd0")->set_rpm(300); |
| 434 | | machine.device<floppy_image_device>("fd1")->set_rpm(300); |
| 435 | | machine.device<floppy_image_device>("fd2")->set_rpm(300); |
| 436 | | machine.device<floppy_image_device>("fd3")->set_rpm(300); |
| 437 | 437 | } |
| 438 | 438 | |
| 439 | 439 | static MACHINE_RESET( einstein ) |
| r13192 | r13193 | |
| 780 | 780 | GFXDECODE_ENTRY( "gfx1", 0x1000, einstei2_charlayout, 16, 1 ) |
| 781 | 781 | GFXDECODE_END |
| 782 | 782 | |
| 783 | static SLOT_INTERFACE_START( einstein_floppies ) |
| 784 | SLOT_INTERFACE( "525dd", FLOPPY_525_DD ) |
| 785 | SLOT_INTERFACE_END |
| 783 | 786 | |
| 784 | 787 | static MACHINE_CONFIG_START( einstein, einstein_state ) |
| 785 | 788 | /* basic machine hardware */ |
| r13192 | r13193 | |
| 825 | 828 | |
| 826 | 829 | MCFG_WD1772x_ADD(IC_I042, XTAL_X002) |
| 827 | 830 | |
| 828 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_525_DD, 42, 1, einstein_state::floppy_formats) |
| 829 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_525_DD, 42, 1, einstein_state::floppy_formats) |
| 830 | | MCFG_FLOPPY_DRIVE_ADD("fd2", floppy_image_device::TYPE_525_DD, 42, 1, einstein_state::floppy_formats) |
| 831 | | MCFG_FLOPPY_DRIVE_ADD("fd3", floppy_image_device::TYPE_525_DD, 42, 1, einstein_state::floppy_formats) |
| 831 | MCFG_FLOPPY_DRIVE_ADD("fd0", einstein_floppies, "525dd", 0, einstein_state::floppy_formats) |
| 832 | MCFG_FLOPPY_DRIVE_ADD("fd1", einstein_floppies, "525dd", 0, einstein_state::floppy_formats) |
| 833 | MCFG_FLOPPY_DRIVE_ADD("fd2", einstein_floppies, "525dd", 0, einstein_state::floppy_formats) |
| 834 | MCFG_FLOPPY_DRIVE_ADD("fd3", einstein_floppies, "525dd", 0, einstein_state::floppy_formats) |
| 832 | 835 | |
| 833 | 836 | /* software lists */ |
| 834 | 837 | MCFG_SOFTWARE_LIST_ADD("disk_list","einstein") |
src/mess/drivers/ami1200.c
| r13192 | r13193 | |
| 278 | 278 | DEVCB_DEVICE_MEMBER("fdc", amiga_fdc, ciaaprb_w) /* port B */ |
| 279 | 279 | }; |
| 280 | 280 | |
| 281 | static SLOT_INTERFACE_START( amiga_floppies ) |
| 282 | SLOT_INTERFACE( "35dd", FLOPPY_35_DD ) |
| 283 | SLOT_INTERFACE_END |
| 281 | 284 | |
| 285 | |
| 282 | 286 | static MACHINE_CONFIG_START( a1200n, ami1200_state ) |
| 283 | 287 | |
| 284 | 288 | /* basic machine hardware */ |
| r13192 | r13193 | |
| 317 | 321 | |
| 318 | 322 | /* fdc */ |
| 319 | 323 | MCFG_AMIGA_FDC_ADD("fdc", AMIGA_68EC020_NTSC_CLOCK/2) |
| 320 | | MCFG_FLOPPY_DRIVE_ADD("fd0", floppy_image_device::TYPE_35_DD, 82, 2, amiga_fdc::floppy_formats) |
| 321 | | MCFG_FLOPPY_DRIVE_ADD("fd1", floppy_image_device::TYPE_35_DD, 82, 2, amiga_fdc::floppy_formats) |
| 324 | MCFG_FLOPPY_DRIVE_ADD("fd0", amiga_floppies, "35dd", 0, amiga_fdc::floppy_formats) |
| 325 | MCFG_FLOPPY_DRIVE_ADD("fd1", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 326 | MCFG_FLOPPY_DRIVE_ADD("fd2", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 327 | MCFG_FLOPPY_DRIVE_ADD("fd3", amiga_floppies, 0, 0, amiga_fdc::floppy_formats) |
| 322 | 328 | MACHINE_CONFIG_END |
| 323 | 329 | |
| 324 | 330 | static MACHINE_CONFIG_DERIVED( a1200p, a1200n ) |