diff options
author | 2015-09-13 08:41:44 +0200 | |
---|---|---|
committer | 2015-09-13 08:41:44 +0200 | |
commit | f88cefad27a1737c76e09d99c9fb43e173506081 (patch) | |
tree | 2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/machine/mos6702.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/machine/mos6702.h')
-rw-r--r-- | src/devices/machine/mos6702.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/devices/machine/mos6702.h b/src/devices/machine/mos6702.h new file mode 100644 index 00000000000..d0675e5140b --- /dev/null +++ b/src/devices/machine/mos6702.h @@ -0,0 +1,66 @@ +// license:BSD-3-Clause +// copyright-holders:Curt Coder +/********************************************************************** + + MOS Technology 6702 Mystery Device emulation + +********************************************************************** + _____ _____ + R/_W 1 |* \_/ | 20 Vcc + D7 2 | | 19 CS0 + D6 3 | | 18 CS1 + D5 4 | | 17 CS2 + D4 5 | MOS6702 | 16 CS3 + D3 6 | | 15 _CS4 + D2 7 | | 14 _CS5 + D1 8 | | 13 _CS5 + D0 9 | | 12 _RTS + Vss 10 |_____________| 11 phi2 + +**********************************************************************/ + +#pragma once + +#ifndef __MOS6702__ +#define __MOS6702__ + +#include "emu.h" + + + +//************************************************************************** +// INTERFACE CONFIGURATION MACROS +//************************************************************************** + +#define MCFG_MOS6702_ADD(_tag, _clock) \ + MCFG_DEVICE_ADD(_tag, MOS6702, _clock) + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> mos6702_device + +class mos6702_device : public device_t +{ +public: + // construction/destruction + mos6702_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + DECLARE_READ8_MEMBER( read ); + DECLARE_WRITE8_MEMBER( write ); + +protected: + // device-level overrides + virtual void device_start(); +}; + + +// device type definition +extern const device_type MOS6702; + + + +#endif |