diff options
author | 2012-12-18 01:58:22 +0000 | |
---|---|---|
committer | 2012-12-18 01:58:22 +0000 | |
commit | fae6b8c00e04ef9f5f807f689eb49c8733bf8bce (patch) | |
tree | fa721deee0cc943e7ca2ffa9fabe9b572dff131f /src/mess/machine/pc9801_118.h | |
parent | 2f5449614c67ccee1ee45b974140c1d379ca9e9b (diff) |
Another magician trick, this time with PC-9801-118 (preliminary)
Diffstat (limited to 'src/mess/machine/pc9801_118.h')
-rw-r--r-- | src/mess/machine/pc9801_118.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/mess/machine/pc9801_118.h b/src/mess/machine/pc9801_118.h new file mode 100644 index 00000000000..f106e57d46f --- /dev/null +++ b/src/mess/machine/pc9801_118.h @@ -0,0 +1,67 @@ +/*************************************************************************** + + NEC PC-9801-118 + +***************************************************************************/ + + +#pragma once + +#ifndef __PC9801_118DEV_H__ +#define __PC9801_118DEV_H__ + +#include "machine/pic8259.h" +#include "sound/2608intf.h" + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> pc9801_118_device + +class pc9801_118_device : public device_t +{ +public: + // construction/destruction + pc9801_118_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual machine_config_constructor device_mconfig_additions() const; + virtual ioport_constructor device_input_ports() const; + + DECLARE_READ8_MEMBER(opn_porta_r); + DECLARE_WRITE8_MEMBER(opn_portb_w); + DECLARE_READ8_MEMBER(pc9801_118_r); + DECLARE_WRITE8_MEMBER(pc9801_118_w); + DECLARE_READ8_MEMBER(pc9801_118_ext_r); + DECLARE_WRITE8_MEMBER(pc9801_118_ext_w); + +// required_device<cpu_device> m_maincpu; + required_device<ym2608_device> m_opn3; +protected: + // device-level overrides + virtual void device_validity_check(validity_checker &valid) const; + virtual void device_start(); + virtual void device_reset(); + virtual void device_config_complete() { m_shortname = "pc9801_118"; } + void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler); + +private: + UINT8 m_joy_sel; + UINT8 m_ext_reg; +}; + + +// device type definition +extern const device_type PC9801_118; + + + +//************************************************************************** +// GLOBAL VARIABLES +//************************************************************************** + + + +#endif |