diff options
author | 2019-06-01 13:16:13 +0200 | |
---|---|---|
committer | 2019-06-01 13:16:29 +0200 | |
commit | 22b7b3f4de27688543645390cf234f88dfb2332e (patch) | |
tree | 3ec741ecfbb8f9f3d849e2ebd6813b7aedc86b03 /src/devices/bus/isa/chessmdr.h | |
parent | a8bdd97c9611f8386a3a581c4b45c0c8e83a2180 (diff) |
added shared chessmachine device for Mephisto risc, chessmachine EC, chessmachine DR (nw)
Diffstat (limited to 'src/devices/bus/isa/chessmdr.h')
-rw-r--r-- | src/devices/bus/isa/chessmdr.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/devices/bus/isa/chessmdr.h b/src/devices/bus/isa/chessmdr.h new file mode 100644 index 00000000000..8607dac26b0 --- /dev/null +++ b/src/devices/bus/isa/chessmdr.h @@ -0,0 +1,46 @@ +// license:BSD-3-Clause +// copyright-holders:hap +/* + + The ChessMachine DR by Tasc + +*/ + +#ifndef MAME_BUS_ISA_CHESSMDR_H +#define MAME_BUS_ISA_CHESSMDR_H + +#pragma once + +#include "isa.h" +#include "machine/chessmachine.h" + + +class isa8_chessmdr_device : + public device_t, + public device_isa8_card_interface +{ +public: + // construction/destruction + isa8_chessmdr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + +protected: + // device-level overrides + virtual void device_start() override; + virtual void device_reset() override; + virtual void device_add_mconfig(machine_config &config) override; + + virtual ioport_constructor device_input_ports() const override; + +private: + required_device<chessmachine_device> m_chessm; + + bool m_installed; + + DECLARE_READ8_MEMBER(chessmdr_r); + DECLARE_WRITE8_MEMBER(chessmdr_w); +}; + + +DECLARE_DEVICE_TYPE(ISA8_CHESSMDR, isa8_chessmdr_device) + +#endif // MAME_BUS_ISA_CHESSMDR_H |