blob: f7407ddb208fe3687f6c06c420edb434086671f7 (
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
|
/**********************************************************************
Conitec PROF-80 Memory Management Unit emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#pragma once
#ifndef __PROF80_MMU__
#define __PROF80_MMU__
#include "emu.h"
///*************************************************************************
// INTERFACE CONFIGURATION MACROS
///*************************************************************************
#define MCFG_PROF80_MMU_ADD(_tag, _program_map) \
MCFG_DEVICE_ADD(_tag, PROF80_MMU, 0) \
MCFG_DEVICE_ADDRESS_MAP(AS_PROGRAM, _program_map)
///*************************************************************************
// TYPE DEFINITIONS
///*************************************************************************
// ======================> prof80_mmu_device
class prof80_mmu_device : public device_t,
public device_memory_interface
{
public:
prof80_mmu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual DECLARE_ADDRESS_MAP(z80_program_map, 8);
DECLARE_WRITE8_MEMBER( par_w );
DECLARE_WRITE_LINE_MEMBER( mme_w );
protected:
// device-level overrides
virtual void device_start();
// device_memory_interface overrides
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const;
DECLARE_READ8_MEMBER( program_r );
DECLARE_WRITE8_MEMBER( program_w );
private:
const address_space_config m_program_space_config;
UINT8 m_blk[16];
bool m_enabled;
};
// device type definition
extern const device_type PROF80_MMU;
#endif
|