summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/spc1000/vdp.h
blob: b5db17d121da56138a16cee62af152d8016ff3a5 (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
45
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
#ifndef __SPC1000_VDP_H__
#define __SPC1000_VDP_H__

#include "exp.h"
#include "video/tms9928a.h"


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

// ======================> spc1000_vdp_exp_device

class spc1000_vdp_exp_device : public device_t,
						public device_spc1000_card_interface
{
public:
	// construction/destruction
	spc1000_vdp_exp_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);

	// optional information overrides
	virtual machine_config_constructor device_mconfig_additions() const override;

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

	virtual DECLARE_READ8_MEMBER(read) override;
	virtual DECLARE_WRITE8_MEMBER(write) override;

	DECLARE_WRITE_LINE_MEMBER(vdp_interrupt);

private:
	// internal state
	required_device<tms9928a_device>   m_vdp;
};


// device type definition
extern const device_type SPC1000_VDP_EXP;

#endif  /* __SPC1000_VDP_H__ */