blob: 17881be76b17ee320de101ea793fdf8b4f698eef (
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
|
// license:BSD-3-Clause
// copyright-holders:Angelo Salese
/***************************************************************************
Namco C139 - Serial I/F Controller
***************************************************************************/
#ifndef MAME_MACHINE_NAMCO_C139_H
#define MAME_MACHINE_NAMCO_C139_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_NAMCO_C139_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, NAMCO_C139, 0)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> namco_c139_device
class namco_c139_device : public device_t,
public device_memory_interface
{
public:
// construction/destruction
namco_c139_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O operations
DECLARE_ADDRESS_MAP(regs_map, 16);
DECLARE_READ16_MEMBER(status_r);
DECLARE_READ16_MEMBER(ram_r);
DECLARE_WRITE16_MEMBER(ram_w);
protected:
// device-level overrides
// virtual void device_validity_check(validity_checker &valid) const;
virtual void device_start() override;
virtual void device_reset() override;
virtual std::vector<std::pair<int, const address_space_config *>> memory_space_config() const override;
private:
const address_space_config m_space_config;
uint16_t* m_ram;
};
// device type definition
DECLARE_DEVICE_TYPE(NAMCO_C139, namco_c139_device)
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
#endif // MAME_MACHINE_NAMCO_C139_H
|