diff options
author | 2013-10-20 19:50:55 +0000 | |
---|---|---|
committer | 2013-10-20 19:50:55 +0000 | |
commit | d756fa8ec44d6572cf192a4883c1d7e00e5c47cc (patch) | |
tree | d3b88aec276826c5340bc13b5ac87113da5b7eb2 /src/emu/bus/vip/vp620.h | |
parent | 25f4c260a8bdb38430151d7488e725c24d20a0e9 (diff) |
(MESS) vip: Moved expansion and byte I/O ports under emu/bus. (nw)
Diffstat (limited to 'src/emu/bus/vip/vp620.h')
-rw-r--r-- | src/emu/bus/vip/vp620.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/emu/bus/vip/vp620.h b/src/emu/bus/vip/vp620.h new file mode 100644 index 00000000000..509820fd2d8 --- /dev/null +++ b/src/emu/bus/vip/vp620.h @@ -0,0 +1,60 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + RCA VIP ASCII Keyboard Interface VP-620 emulation + + Copyright MESS Team. + Visit http://mamedev.org for licensing and usage restrictions. + +**********************************************************************/ + +#pragma once + +#ifndef __VP620__ +#define __VP620__ + +#include "emu.h" +#include "byteio.h" +#include "machine/keyboard.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> vp620_device + +class vp620_device : public device_t, + public device_vip_byteio_port_interface +{ +public: + // construction/destruction + vp620_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual machine_config_constructor device_mconfig_additions() const; + + // not really public + DECLARE_WRITE8_MEMBER( kb_w ); + +protected: + // device-level overrides + virtual void device_start(); + + // device_vip_byteio_port_interface overrides + virtual UINT8 vip_in_r(); + virtual int vip_ef4_r(); + +private: + UINT8 m_keydata; + int m_keystb; +}; + + +// device type definition +extern const device_type VP620; + + +#endif |