summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/centronics/nec_p72.h
blob: 0d92555f61eff57ac2aa9d7ef94cc0d196143479 (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
35
36
37
38
39
40
41
42
43
44
// license:BSD-3-Clause
// copyright-holders:Ramiro Polla

#ifndef MAME_BUS_CENTRONICS_NEC_P72_H
#define MAME_BUS_CENTRONICS_NEC_P72_H

#pragma once

#include "ctronics.h"
#include "cpu/nec/nec.h"

//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> nec_p72_device

class nec_p72_device : public device_t,
					public device_centronics_peripheral_interface
{
public:
	// construction/destruction
	nec_p72_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);

protected:
	nec_p72_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock);

	// device-level overrides
	virtual void device_start() override;

	// optional information overrides
	virtual const tiny_rom_entry *device_rom_region() const override;
	virtual void device_add_mconfig(machine_config &config) override;

private:
	required_device<cpu_device> m_maincpu;

	void p72_mem(address_map &map);
};

// device type definition
DECLARE_DEVICE_TYPE(NEC_P72, nec_p72_device)

#endif // MAME_BUS_CENTRONICS_NEC_P72_H