blob: 1ede5d1d44613249e2916620036f9d437245a847 (
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
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/*
* s11b.h
*
* Created on: 1/01/2013
*/
#ifndef MAME_INCLUDES_S11B_H
#define MAME_INCLUDES_S11B_H
#include "includes/s11a.h"
class s11b_state : public s11a_state
{
public:
s11b_state(const machine_config &mconfig, device_type type, const char *tag)
: s11a_state(mconfig, type, tag)
, m_bg_hc55516(*this, "hc55516_bg")
{ }
DECLARE_WRITE8_MEMBER(dig1_w);
DECLARE_WRITE8_MEMBER(pia2c_pa_w);
DECLARE_WRITE8_MEMBER(pia2c_pb_w);
DECLARE_WRITE8_MEMBER(pia34_pa_w);
DECLARE_WRITE8_MEMBER(bg_speech_clock_w);
DECLARE_WRITE8_MEMBER(bg_speech_digit_w);
DECLARE_MACHINE_RESET(s11b);
void init_s11b();
void init_s11b_invert();
void s11b(machine_config &config);
void s11b_audio_map(address_map &map);
void s11b_bg_map(address_map &map);
void s11b_main_map(address_map &map);
protected:
optional_device<hc55516_device> m_bg_hc55516;
void set_invert(bool inv) { m_invert = inv; }
private:
bool m_invert; // later System 11B games start expecting inverted data to the display LED segments.
};
#endif // MAME_INCLUDES_S11B_H
|