diff options
Diffstat (limited to 'src/emu/bus/wangpc/tig.h')
-rw-r--r-- | src/emu/bus/wangpc/tig.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/emu/bus/wangpc/tig.h b/src/emu/bus/wangpc/tig.h new file mode 100644 index 00000000000..ed92acb091c --- /dev/null +++ b/src/emu/bus/wangpc/tig.h @@ -0,0 +1,68 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + Wang PC PM-001B Medium-Resolution Video Controller emulation + + Copyright MESS Team. + Visit http://mamedev.org for licensing and usage restrictions. + +**********************************************************************/ + +#pragma once + +#ifndef __WANGPC_TIG__ +#define __WANGPC_TIG__ + +#include "emu.h" +#include "wangpc.h" +#include "video/upd7220.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> wangpc_tig_device + +class wangpc_tig_device : public device_t, + public device_wangpcbus_card_interface +{ +public: + // construction/destruction + wangpc_tig_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; + UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + // device_wangpcbus_card_interface overrides + virtual UINT16 wangpcbus_iorc_r(address_space &space, offs_t offset, UINT16 mem_mask); + virtual void wangpcbus_aiowc_w(address_space &space, offs_t offset, UINT16 mem_mask, UINT16 data); + virtual UINT8 wangpcbus_dack_r(address_space &space, int line); + virtual void wangpcbus_dack_w(address_space &space, int line, UINT8 data); + virtual bool wangpcbus_have_dack(int line); + +private: + // internal state + required_device<upd7220_device> m_hgdc0; + required_device<upd7220_device> m_hgdc1; + + UINT8 m_option; + UINT8 m_attr[16]; + UINT8 m_underline; +}; + + +// device type definition +extern const device_type WANGPC_TIG; + + +#endif |