summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/comx35/printer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/comx35/printer.h')
-rw-r--r--src/devices/bus/comx35/printer.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/devices/bus/comx35/printer.h b/src/devices/bus/comx35/printer.h
new file mode 100644
index 00000000000..f67997b19ea
--- /dev/null
+++ b/src/devices/bus/comx35/printer.h
@@ -0,0 +1,60 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/**********************************************************************
+
+ COMX-35 Serial/Parallel Printer Card emulation
+
+**********************************************************************/
+
+#pragma once
+
+#ifndef __COMX_PRN__
+#define __COMX_PRN__
+
+#include "emu.h"
+#include "exp.h"
+#include "machine/buffer.h"
+#include "bus/centronics/ctronics.h"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> comx_prn_device
+
+class comx_prn_device : public device_t,
+ public device_comx_expansion_card_interface
+{
+public:
+ // construction/destruction
+ comx_prn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual const rom_entry *device_rom_region() const;
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+ // device_comx_expansion_card_interface overrides
+ virtual UINT8 comx_mrd_r(address_space &space, offs_t offset, int *extrom);
+ virtual UINT8 comx_io_r(address_space &space, offs_t offset);
+ virtual void comx_io_w(address_space &space, offs_t offset, UINT8 data);
+
+private:
+ required_device<centronics_device> m_centronics;
+ required_device<output_latch_device> m_cent_data_out;
+ required_device<input_buffer_device> m_cent_status_in;
+ required_memory_region m_rom;
+};
+
+
+// device type definition
+extern const device_type COMX_PRN;
+
+
+#endif