blob: 19d1a7c17501c7aa40daf8fc49055d8f4c8c5cf7 (
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
63
64
65
66
67
68
|
/***************************************************************************
coco12.h
TRS-80 Radio Shack Color Computer 1/2 Family
***************************************************************************/
#pragma once
#ifndef __COCO12__
#define __COCO12__
#include "includes/coco.h"
#include "machine/6883sam.h"
#include "video/mc6847.h"
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
#define SAM_TAG "sam"
#define VDG_TAG "vdg"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class coco12_state : public coco_state
{
public:
coco12_state(const machine_config &mconfig, device_type type, const char *tag)
: coco_state(mconfig, type, tag),
m_sam(*this, SAM_TAG),
m_vdg(*this, VDG_TAG)
{
}
required_device<sam6883_device> m_sam;
required_device<mc6847_base_device> m_vdg;
static const mc6847_interface mc6847_config;
static const sam6883_interface sam6883_config;
protected:
virtual void device_start();
virtual void update_cart_base(UINT8 *cart_base);
/* PIA1 */
virtual void pia1_pb_changed(void);
private:
DECLARE_WRITE_LINE_MEMBER( horizontal_sync );
DECLARE_WRITE_LINE_MEMBER( field_sync );
DECLARE_READ8_MEMBER( sam_read );
void configure_sam(void);
};
#endif /* __COCO12__ */
|