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
|
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
/*************************************************************************
88 Games
*************************************************************************/
#include "sound/upd7759.h"
#include "video/k052109.h"
#include "video/k051960.h"
#include "video/k051316.h"
#include "video/konami_helper.h"
class _88games_state : public driver_device
{
public:
_88games_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_k052109(*this, "k052109"),
m_k051960(*this, "k051960"),
m_k051316(*this, "k051316"),
m_upd7759_1(*this, "upd1"),
m_upd7759_2(*this, "upd2"),
m_bank0000(*this, "bank0000"),
m_bank1000(*this, "bank1000"),
m_ram(*this, "ram") { }
void _88games(machine_config &config);
private:
/* video-related */
int m_k88games_priority;
int m_videobank;
int m_zoomreadroms;
int m_speech_chip;
/* devices */
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<k052109_device> m_k052109;
required_device<k051960_device> m_k051960;
required_device<k051316_device> m_k051316;
required_device<upd7759_device> m_upd7759_1;
required_device<upd7759_device> m_upd7759_2;
/* memory banks */
required_memory_bank m_bank0000;
required_memory_bank m_bank1000;
/* memory pointers */
required_shared_ptr<uint8_t> m_ram;
DECLARE_READ8_MEMBER(bankedram_r);
DECLARE_WRITE8_MEMBER(bankedram_w);
DECLARE_WRITE8_MEMBER(k88games_5f84_w);
DECLARE_WRITE8_MEMBER(k88games_sh_irqtrigger_w);
DECLARE_WRITE8_MEMBER(speech_control_w);
DECLARE_WRITE8_MEMBER(speech_msg_w);
DECLARE_READ8_MEMBER(k052109_051960_r);
DECLARE_WRITE8_MEMBER(k052109_051960_w);
virtual void machine_start() override;
virtual void machine_reset() override;
uint32_t screen_update_88games(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(vblank_irq);
K051316_CB_MEMBER(zoom_callback);
K052109_CB_MEMBER(tile_callback);
K051960_CB_MEMBER(sprite_callback);
DECLARE_WRITE8_MEMBER(banking_callback);
void main_map(address_map &map);
void sound_map(address_map &map);
};
|