summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/m7501.h
blob: ea8c0a9b5b66c6ba8b2773b7d62d950a95a505c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
/***************************************************************************

    m7501.h

    6510 derivative, essentially identical.  Also known as the 8501.

***************************************************************************/

#ifndef __M7501_H__
#define __M7501_H__

#include "m6510.h"

#define MCFG_M7501_PORT_CALLBACKS(_read, _write) \
	downcast<m7501_device *>(device)->set_callbacks(DEVCB_##_read, DEVCB_##_write);

#define MCFG_M7501_PORT_PULLS(_up, _down) \
	downcast<m7501_device *>(device)->set_pulls(_up, _down);

class m7501_device : public m6510_device {
public:
	m7501_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
};

enum {
	M7501_IRQ_LINE = m6502_device::IRQ_LINE,
	M7501_NMI_LINE = m6502_device::NMI_LINE,
};

extern const device_type M7501;

#endif