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
|
/***************************************************************************
ESD 16 Bit Games
***************************************************************************/
#include "machine/eeprom.h"
class esd16_state : public driver_device
{
public:
esd16_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_vram_0(*this, "vram_0"),
m_vram_1(*this, "vram_1"),
m_scroll_0(*this, "scroll_0"),
m_scroll_1(*this, "scroll_1"),
m_spriteram(*this, "spriteram"),
m_head_layersize(*this, "head_layersize"),
m_headpanic_platform_x(*this, "platform_x"),
m_headpanic_platform_y(*this, "platform_y")
{
m_tilemap0_color = 0;
m_tilemap1_color = 0;
}
/* memory pointers */
required_shared_ptr<UINT16> m_vram_0;
required_shared_ptr<UINT16> m_vram_1;
required_shared_ptr<UINT16> m_scroll_0;
required_shared_ptr<UINT16> m_scroll_1;
required_shared_ptr<UINT16> m_spriteram;
required_shared_ptr<UINT16> m_head_layersize;
required_shared_ptr<UINT16> m_headpanic_platform_x;
required_shared_ptr<UINT16> m_headpanic_platform_y;
// UINT16 * m_paletteram; // currently this uses generic palette handling
/* video-related */
tilemap_t *m_tilemap_0_16x16;
tilemap_t *m_tilemap_1_16x16;
tilemap_t *m_tilemap_0;
tilemap_t *m_tilemap_1;
int m_tilemap0_color;
int m_tilemap1_color;
/* devices */
device_t *m_audio_cpu;
eeprom_device *m_eeprom;
DECLARE_WRITE16_MEMBER(esd16_sound_command_w);
DECLARE_WRITE16_MEMBER(hedpanic_platform_w);
DECLARE_READ16_MEMBER(esd_eeprom_r);
DECLARE_WRITE16_MEMBER(esd_eeprom_w);
DECLARE_WRITE8_MEMBER(esd16_sound_rombank_w);
DECLARE_READ8_MEMBER(esd16_sound_command_r);
DECLARE_WRITE16_MEMBER(esd16_vram_0_w);
DECLARE_WRITE16_MEMBER(esd16_vram_1_w);
DECLARE_WRITE16_MEMBER(esd16_tilemap0_color_w);
DECLARE_WRITE16_MEMBER(esd16_tilemap0_color_jumppop_w);
};
/*----------- defined in video/esd16.c -----------*/
VIDEO_START( esd16 );
SCREEN_UPDATE_IND16( hedpanic );
|