blob: 41280f43dd1a685e3b5934b01e87044ee4353e42 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
// license:BSD-3-Clause
// copyright-holders:Nathan Woods
/***************************************************************************
coco12.h
TRS-80 Radio Shack Color Computer 1/2 Family
***************************************************************************/
#ifndef MAME_INCLUDES_COCO12_H
#define MAME_INCLUDES_COCO12_H
#pragma once
#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)
{
}
uint8_t sam_read(offs_t offset);
DECLARE_WRITE_LINE_MEMBER( horizontal_sync );
DECLARE_WRITE_LINE_MEMBER( field_sync );
void coco(machine_config &config);
void cocoh(machine_config &config);
void cocoe(machine_config &config);
void cocoeh(machine_config &config);
void coco2(machine_config &config);
void coco2h(machine_config &config);
void coco2b(machine_config &config);
void coco2bh(machine_config &config);
void cp400(machine_config &config);
void t4426(machine_config &config);
void cd6809(machine_config &config);
void ms1600(machine_config &config);
protected:
virtual void device_start() override;
// PIA1
virtual void pia1_pb_changed(uint8_t data) override;
sam6883_device &sam() { return *m_sam; }
required_device<sam6883_device> m_sam;
void coco_mem(address_map &map);
void coco_ram(address_map &map);
void coco_rom0(address_map &map);
void coco_rom1(address_map &map);
void coco_rom2(address_map &map);
void coco_io0(address_map &map);
void coco_io1(address_map &map);
void coco_io2(address_map &map);
void coco_ff60(address_map &map);
void ms1600_rom2(address_map &map);
private:
void configure_sam(void);
protected:
required_device<mc6847_base_device> m_vdg;
};
#endif // MAME_INCLUDES_COCO12_H
|