blob: 5bace1297f5605792fc892384188c1b66d95cac3 (
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
|
#pragma once
#ifndef __NUM9REV_H__
#define __NUM9REV_H__
#include "emu.h"
#include "isa.h"
#include "video/upd7220.h"
#include "machine/bankdev.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> isa16_vga_device
class isa8_number_9_rev_device :
public device_t,
public device_isa8_card_interface
{
public:
// construction/destruction
isa8_number_9_rev_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const;
UPD7220_DISPLAY_PIXELS_MEMBER(hgdc_display_pixels);
DECLARE_READ8_MEMBER(pal8_r);
DECLARE_WRITE8_MEMBER(pal8_w);
DECLARE_READ8_MEMBER(pal12_r);
DECLARE_WRITE8_MEMBER(pal12_w);
DECLARE_READ8_MEMBER(overlay_r);
DECLARE_WRITE8_MEMBER(overlay_w);
DECLARE_READ8_MEMBER(bank_r);
DECLARE_WRITE8_MEMBER(bank_w);
DECLARE_READ8_MEMBER(ctrl_r);
DECLARE_WRITE8_MEMBER(ctrl_w);
DECLARE_READ8_MEMBER(read8);
DECLARE_WRITE8_MEMBER(write8);
UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
private:
required_device<upd7220_device> m_upd7220;
required_device<palette_device> m_palette;
dynamic_buffer m_ram;
dynamic_buffer m_overlay;
UINT8 m_bank;
UINT8 m_mode;
bool m_1024;
};
// device type definition
extern const device_type ISA8_NUM_9_REV;
#endif /* __NUM9REV_H__ */
|