blob: 140d086efb0137e31d07586b385ed91b1743a394 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// license:BSD-3-Clause
// copyright-holders:Wilbert Pol
/***************************************************************************
Template for skeleton device
***************************************************************************/
#pragma once
#ifndef __huc6272DEV_H__
#define __huc6272DEV_H__
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_HUC6272_ADD(_tag,_freq) \
MCFG_DEVICE_ADD(_tag, huc6272, _freq)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> huc6272_device
class huc6272_device : public device_t,
public device_memory_interface
{
public:
// construction/destruction
huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// I/O operations
DECLARE_WRITE32_MEMBER( write );
DECLARE_READ32_MEMBER( read );
protected:
// device-level overrides
virtual void device_validity_check(validity_checker &valid) const;
virtual void device_start();
virtual void device_reset();
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const;
private:
inline UINT32 read_dword(offs_t address);
inline void write_dword(offs_t address, UINT32 data);
UINT8 m_register;
UINT32 m_kram_addr_r, m_kram_addr_w;
UINT16 m_kram_inc_r,m_kram_inc_w;
UINT8 m_kram_page_r,m_kram_page_w;
UINT32 m_page_setting;
UINT8 m_bgmode[4];
struct{
UINT8 addr;
UINT8 ctrl;
UINT16 data[16];
}m_micro_prg;
const address_space_config m_space_config;
};
// device type definition
extern const device_type huc6272;
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
#endif
|