diff options
author | 2019-01-18 23:09:04 -0500 | |
---|---|---|
committer | 2019-01-18 23:11:56 -0500 | |
commit | d08a9aa7b847464422f0ebec3b674e0f565858e3 (patch) | |
tree | 9681bfe0577ca3176e1e0a0832bc07538df0c42c /src/devices/bus/epson_sio/pf10.cpp | |
parent | c907852448e8005d727604bfb148b82b20337bb0 (diff) |
bus/epson_sio, bus/s100: Clean up some MCFGs (nw)
Diffstat (limited to 'src/devices/bus/epson_sio/pf10.cpp')
-rw-r--r-- | src/devices/bus/epson_sio/pf10.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/devices/bus/epson_sio/pf10.cpp b/src/devices/bus/epson_sio/pf10.cpp index 462de5ecaa3..99061f112b6 100644 --- a/src/devices/bus/epson_sio/pf10.cpp +++ b/src/devices/bus/epson_sio/pf10.cpp @@ -12,7 +12,6 @@ #include "emu.h" #include "pf10.h" -#include "imagedev/floppy.h" //************************************************************************** @@ -71,7 +70,7 @@ MACHINE_CONFIG_START(epson_pf10_device::device_add_mconfig) m_cpu->out_ser_tx_cb().set(FUNC(epson_pf10_device::hd6303_tx_w)); UPD765A(config, m_fdc, 4'000'000, false, true); - MCFG_FLOPPY_DRIVE_ADD("upd765a:0", pf10_floppies, "smd165", floppy_image_device::default_floppy_formats) + FLOPPY_CONNECTOR(config, m_floppy, pf10_floppies, "smd165", floppy_image_device::default_floppy_formats); MCFG_EPSON_SIO_ADD("sio", nullptr) MCFG_EPSON_SIO_RX(WRITELINE(DEVICE_SELF, epson_pf10_device, rxc_w)) @@ -92,7 +91,9 @@ epson_pf10_device::epson_pf10_device(const machine_config &mconfig, const char * device_epson_sio_interface(mconfig, *this), m_cpu(*this, "maincpu"), m_fdc(*this, "upd765a"), - m_sio_output(*this, "sio"), m_floppy(nullptr), m_timer(nullptr), + m_sio_output(*this, "sio"), + m_floppy(*this, "upd765a:0"), + m_timer(nullptr), m_port1(0xff), m_port2(0xff), m_rxc(1), m_hd6303_tx(0), m_pinc(0) @@ -108,7 +109,6 @@ epson_pf10_device::epson_pf10_device(const machine_config &mconfig, const char * void epson_pf10_device::device_start() { m_timer = timer_alloc(0, nullptr); - m_floppy = subdevice<floppy_connector>("upd765a:0")->get_device(); } //------------------------------------------------- @@ -158,7 +158,8 @@ READ8_MEMBER( epson_pf10_device::port2_r ) WRITE8_MEMBER( epson_pf10_device::port2_w ) { - m_floppy->mon_w(data & PORT2_MON); + if (m_floppy->get_device() != nullptr) + m_floppy->get_device()->mon_w(data & PORT2_MON); logerror("%s: port2_w(%02x)\n", tag(), data); } |