diff options
Diffstat (limited to 'src/devices/bus/sg1000_exp/sk1100prn.cpp')
-rw-r--r-- | src/devices/bus/sg1000_exp/sk1100prn.cpp | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/src/devices/bus/sg1000_exp/sk1100prn.cpp b/src/devices/bus/sg1000_exp/sk1100prn.cpp deleted file mode 100644 index b902ce3992f..00000000000 --- a/src/devices/bus/sg1000_exp/sk1100prn.cpp +++ /dev/null @@ -1,125 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Enik Land -/********************************************************************** - - Sega SK-1100 keyboard printer port emulation - -**********************************************************************/ - -#include "emu.h" -#include "sk1100prn.h" -// slot devices -//#include "sp400.h" -#include "kblink.h" - - - -//************************************************************************** -// GLOBAL VARIABLES -//************************************************************************** - -DEFINE_DEVICE_TYPE(SK1100_PRINTER_PORT, sk1100_printer_port_device, "sk1100_printer_port", "Sega SK-1100 Printer Port") - - - -//************************************************************************** -// CARD INTERFACE -//************************************************************************** - -//------------------------------------------------- -// device_sk1100_printer_port_interface - constructor -//------------------------------------------------- - -device_sk1100_printer_port_interface::device_sk1100_printer_port_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig,device) -{ -} - - -//------------------------------------------------- -// ~device_sk1100_printer_port_interface - destructor -//------------------------------------------------- - -device_sk1100_printer_port_interface::~device_sk1100_printer_port_interface() -{ -} - - - -//************************************************************************** -// LIVE DEVICE -//************************************************************************** - -//------------------------------------------------- -// sk1100_printer_port_device - constructor -//------------------------------------------------- - -sk1100_printer_port_device::sk1100_printer_port_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : - device_t(mconfig, SK1100_PRINTER_PORT, tag, owner, clock), - device_slot_interface(mconfig, *this), - m_device(nullptr) -{ -} - - -//------------------------------------------------- -// sk1100_printer_port_device - destructor -//------------------------------------------------- - -sk1100_printer_port_device::~sk1100_printer_port_device() -{ -} - - -//------------------------------------------------- -// device_start - device-specific startup -//------------------------------------------------- - -void sk1100_printer_port_device::device_start() -{ - m_device = dynamic_cast<device_sk1100_printer_port_interface *>(get_card_device()); -} - -WRITE_LINE_MEMBER(sk1100_printer_port_device::data_w) -{ - if (m_device) - m_device->input_data(state); -} - -WRITE_LINE_MEMBER(sk1100_printer_port_device::reset_w) -{ - if (m_device) - m_device->input_reset(state); -} - -WRITE_LINE_MEMBER(sk1100_printer_port_device::feed_w) -{ - if (m_device) - m_device->input_feed(state); -} - -READ_LINE_MEMBER(sk1100_printer_port_device::fault_r) -{ - if (m_device) - return m_device->output_fault(); - else - return 1; -} - -READ_LINE_MEMBER(sk1100_printer_port_device::busy_r) -{ - if (m_device) - return m_device->output_busy(); - else - return 1; -} - -//------------------------------------------------- -// SLOT_INTERFACE( sk1100_printer_port_devices ) -//------------------------------------------------- - -void sk1100_printer_port_devices(device_slot_interface &device) -{ - //device.option_add("sp400", SP400_PRINTER); /* serial printer */ - device.option_add("kblink", SK1100_LINK_CABLE); -} |