blob: 2a3071ed8ec07c0e24b41f304045715e89aa68b2 (
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
|
// license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************
SV-806 80 column card for SVI-318/328
***************************************************************************/
#pragma once
#ifndef __SVI3X8_SLOT_SV806_H__
#define __SVI3X8_SLOT_SV806_H__
#include "emu.h"
#include "slot.h"
#include "video/mc6845.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> sv806_device
class sv806_device : public device_t, public device_svi_slot_interface
{
public:
// construction/destruction
sv806_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual DECLARE_READ8_MEMBER( mreq_r ) override;
virtual DECLARE_WRITE8_MEMBER( mreq_w ) override;
virtual DECLARE_READ8_MEMBER( iorq_r ) override;
virtual DECLARE_WRITE8_MEMBER( iorq_w ) override;
MC6845_UPDATE_ROW(crtc_update_row);
protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual machine_config_constructor device_mconfig_additions() const override;
virtual void device_start() override;
private:
required_device<hd6845_device> m_crtc;
required_device<palette_device> m_palette;
required_memory_region m_gfx;
std::unique_ptr<UINT8[]> m_ram;
int m_ram_enabled;
};
// device type definition
extern const device_type SV806;
#endif // __SVI3X8_SLOT_SV806_H__
|