blob: b9401b14a254769b5f5f358d2d10b13dc3dd1e32 (
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
|
/***************************************************************************
Konami 056230
***************************************************************************/
#pragma once
#ifndef __K056230_H__
#define __K056230_H__
#include "emu.h"
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_K056230_CPU(_tag) \
k056230_device::set_cpu_tag(*device, "^"_tag);
#define MCFG_K056230_HACK(_region) \
k056230_device::set_thunderh_hack(*device, _region);
/***************************************************************************
TYPE DEFINITIONS
***************************************************************************/
// ======================> k056230_device
class k056230_device : public device_t
{
public:
// construction/destruction
k056230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
static void set_cpu_tag(device_t &device, const char *tag) { downcast<k056230_device &>(device).m_cpu.set_tag(tag); }
static void set_thunderh_hack(device_t &device, int thunderh) { downcast<k056230_device &>(device).m_is_thunderh = thunderh; }
DECLARE_READ32_MEMBER(lanc_ram_r);
DECLARE_WRITE32_MEMBER(lanc_ram_w);
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE8_MEMBER(write);
static TIMER_CALLBACK( network_irq_clear_callback );
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset() { }
virtual void device_post_load() { }
virtual void device_clock_changed() { }
private:
void network_irq_clear();
int m_is_thunderh;
required_device<cpu_device> m_cpu;
UINT32 m_ram[0x2000];
};
// device type definition
extern const device_type K056230;
#endif /* __K056230_H__ */
|