summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/dragon.h
blob: 849bf87dbeb056bd2558c21a9f93d70b22e30c8d (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/***************************************************************************

    dragon.h

    Dragon Family

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

#pragma once

#ifndef __DRAGON__
#define __DRAGON__


#include "includes/coco12.h"
#include "imagedev/printer.h"
#include "machine/6551acia.h"



//**************************************************************************
//  MACROS / CONSTANTS
//**************************************************************************

#define PRINTER_TAG		"printer"
#define ACIA_TAG		"acia"



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

class dragon_state : public coco12_state
{
public:
	dragon_state(const machine_config &mconfig, device_type type, const char *tag);

	required_device<printer_image_device> m_printer;

protected:
	virtual void pia1_pa_changed(void);
};


/* dragon64 has an ACIA chip */
class dragon64_state : public dragon_state
{
public:
	dragon64_state(const machine_config &mconfig, device_type type, const char *tag);

	required_device<acia6551_device> m_acia;

protected:
	virtual DECLARE_READ8_MEMBER( ff00_read );
	virtual DECLARE_WRITE8_MEMBER( ff00_write );

	virtual void pia1_pb_changed(void);
	void page_rom(bool romswitch);
};

#endif /* __DRAGON__ */