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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
// license:BSD-3-Clause
// copyright-holders:Nigel Barnes
/***************************************************************************
BBC Micro PALPROM carrier boards
***************************************************************************/
#ifndef MAME_BUS_BBC_ROM_PAL_H
#define MAME_BUS_BBC_ROM_PAL_H
#pragma once
#include "slot.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> bbc_pal_device
class bbc_pal_device : public device_t,
public device_bbc_rom_interface
{
protected:
// construction/destruction
bbc_pal_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual void device_start() override;
// device_bbc_rom_interface overrides
virtual uint32_t get_rom_size() override { return 0x4000; }
uint8_t m_bank;
};
// ======================> bbc_cciword_device
class bbc_cciword_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_cciword_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_ccibase_device
class bbc_ccibase_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_ccibase_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_ccispell_device
class bbc_ccispell_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_ccispell_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palqst_device
class bbc_palqst_device : public bbc_pal_device
{
public:
bbc_palqst_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palwap_device
class bbc_palwap_device : public bbc_pal_device
{
public:
bbc_palwap_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palted_device
class bbc_palted_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_palted_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palabep_device
class bbc_palabep_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_palabep_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palabe_device
class bbc_palabe_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_palabe_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// ======================> bbc_palmo2_device
class bbc_palmo2_device : public bbc_pal_device
{
public:
// construction/destruction
bbc_palmo2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
// device_bbc_rom_interface overrides
virtual uint8_t read(offs_t offset) override;
};
// device type definition
DECLARE_DEVICE_TYPE(BBC_CCIWORD, bbc_cciword_device)
DECLARE_DEVICE_TYPE(BBC_CCIBASE, bbc_ccibase_device)
DECLARE_DEVICE_TYPE(BBC_CCISPELL, bbc_ccispell_device)
DECLARE_DEVICE_TYPE(BBC_PALQST, bbc_palqst_device)
DECLARE_DEVICE_TYPE(BBC_PALWAP, bbc_palwap_device)
DECLARE_DEVICE_TYPE(BBC_PALTED, bbc_palted_device)
DECLARE_DEVICE_TYPE(BBC_PALABEP, bbc_palabep_device)
DECLARE_DEVICE_TYPE(BBC_PALABE, bbc_palabe_device)
DECLARE_DEVICE_TYPE(BBC_PALMO2, bbc_palmo2_device)
#endif // MAME_BUS_BBC_ROM_PAL_H
|