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
|
// license:BSD-3-Clause
// copyright-holders:Yochizo
/*************************************************************************
Taito H system
*************************************************************************/
#ifndef MAME_INCLUDES_TAITO_H_H
#define MAME_INCLUDES_TAITO_H_H
#pragma once
#include "machine/taitoio.h"
#include "video/tc0080vco.h"
#include "emupal.h"
class taitoh_state : public driver_device
{
public:
taitoh_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_tc0080vco(*this, "tc0080vco"),
m_tc0040ioc(*this, "tc0040ioc"),
m_palette(*this, "palette"),
m_z80bank(*this, "z80bank")
{ }
void recordbr(machine_config &config);
void dleague(machine_config &config);
void tetristh(machine_config &config);
protected:
virtual void machine_start() override;
virtual void machine_reset() override;
// devices
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<tc0080vco_device> m_tc0080vco;
optional_device<tc0040ioc_device> m_tc0040ioc;
required_device<palette_device> m_palette;
required_memory_bank m_z80bank;
void taitoh_base(machine_config &config);
void coin_control_w(u8 data);
void taitoh_log_vram();
private:
void sound_bankswitch_w(u8 data);
u32 screen_update_recordbr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
u32 screen_update_dleague(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void recordbr_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
void dleague_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority);
void dleague_map(address_map &map);
void recordbr_map(address_map &map);
void sound_map(address_map &map);
void tetristh_map(address_map &map);
};
class syvalion_state : public taitoh_state
{
public:
syvalion_state(const machine_config &mconfig, device_type type, const char *tag) :
taitoh_state(mconfig, type, tag),
m_io_track(*this, { "P2Y", "P2X", "P1Y", "P1X" })
{ }
void syvalion(machine_config &config);
private:
required_ioport_array<4> m_io_track;
u8 syvalion_input_bypass_r();
u32 screen_update_syvalion(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void syvalion_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void syvalion_map(address_map &map);
};
#endif // MAME_INCLUDES_TAITO_H_H
|