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
|
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
/***************************************************************************
Konami 056230
***************************************************************************/
#ifndef MAME_MACHINE_K056230_H
#define MAME_MACHINE_K056230_H
#pragma once
class k056230_device : public device_t
{
public:
// construction/destruction
template <typename T>
k056230_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&cpu_tag)
: k056230_device(mconfig, tag, owner, (uint32_t)0)
{
m_cpu.set_tag(std::forward<T>(cpu_tag));
}
k056230_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
void set_thunderh_hack(bool thunderh) { m_is_thunderh = thunderh; }
uint32_t lanc_ram_r(offs_t offset, uint32_t mem_mask = ~0);
void lanc_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
uint8_t read(offs_t offset);
void write(offs_t offset, uint8_t data);
TIMER_CALLBACK_MEMBER(network_irq_clear);
protected:
// device-level overrides
virtual void device_start() override;
private:
bool m_is_thunderh;
required_device<cpu_device> m_cpu;
uint32_t m_ram[0x2000];
};
// device type definition
DECLARE_DEVICE_TYPE(K056230, k056230_device)
#endif // MAME_MACHINE_K056230_H
|