blob: cd64911d02a8123575fa1ecb1ea8f7c2c8ba9538 (
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
|
/***************************************************************************
pes.h
****************************************************************************/
#pragma once
#ifndef _PES_H_
#define _PES_H_
#include "machine/terminal.h"
#include "sound/tms5220.h"
class pes_state : public driver_device
{
public:
pes_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_terminal(*this, TERMINAL_TAG),
m_speech(*this, "tms5220")
{ }
required_device<cpu_device> m_maincpu;
required_device<generic_terminal_device> m_terminal;
required_device<tms5220_device> m_speech;
UINT8 m_wsstate; // /WS
UINT8 m_rsstate; // /RS
UINT8 m_port3_state; // Port3 state as last written
UINT8 m_infifo[32]; // input fifo
UINT8 m_infifo_tail_ptr; // " tail
UINT8 m_infifo_head_ptr; // " head
virtual void machine_reset();
DECLARE_WRITE8_MEMBER(rsws_w);
DECLARE_WRITE8_MEMBER(port1_w);
DECLARE_WRITE8_MEMBER(port3_w);
DECLARE_READ8_MEMBER(port1_r);
DECLARE_READ8_MEMBER(port3_r);
DECLARE_DRIVER_INIT(pes);
DECLARE_WRITE8_MEMBER(pes_kbd_input);
};
#endif // _PES_H_
|