mame/src/mess/machine/vp570.h
2012-08-21 10:41:19 +00:00

55 lines
1.4 KiB
C++

/**********************************************************************
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 "machine/vip_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_config_complete() { m_shortname = "vp570"; }
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:
UINT8 *m_ram;
};
// device type definition
extern const device_type VP570;
#endif