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/vp570.h | |
parent | 25f4c260a8bdb38430151d7488e725c24d20a0e9 (diff) |
(MESS) vip: Moved expansion and byte I/O ports under emu/bus. (nw)
Diffstat (limited to 'src/emu/bus/vip/vp570.h')
-rw-r--r-- | src/emu/bus/vip/vp570.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/emu/bus/vip/vp570.h b/src/emu/bus/vip/vp570.h new file mode 100644 index 00000000000..23b0d047384 --- /dev/null +++ b/src/emu/bus/vip/vp570.h @@ -0,0 +1,57 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + RCA VIP Memory Expansion Board VP-570 emulation + + Copyright MESS Team. + Visit http://mamedev.org for licensing and usage restrictions. + +**********************************************************************/ + +#pragma once + +#ifndef __VP570__ +#define __VP570__ + +#include "emu.h" +#include "exp.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> vp570_device + +class vp570_device : public device_t, + public device_vip_expansion_card_interface +{ +public: + // construction/destruction + vp570_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual ioport_constructor device_input_ports() const; + +protected: + // device-level overrides + virtual void device_start(); + + // device_vip_expansion_card_interface overrides + virtual UINT8 vip_program_r(address_space &space, offs_t offset, int cs, int cdef, int *minh); + virtual void vip_program_w(address_space &space, offs_t offset, UINT8 data, int cdef, int *minh); + +private: + optional_shared_ptr<UINT8> m_ram; + required_ioport m_base; + required_ioport m_sw1; +}; + + +// device type definition +extern const device_type VP570; + + +#endif |