blob: b8a4274da4a95316ebf861e54a21e4793357b6c7 (
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
|
/*************************************************************************
Hitme hardware
*************************************************************************/
#include "sound/discrete.h"
/* Discrete Sound Input Nodes */
#define HITME_DOWNCOUNT_VAL NODE_01
#define HITME_OUT0 NODE_02
#define HITME_ENABLE_VAL NODE_03
#define HITME_OUT1 NODE_04
class hitme_state : public driver_device
{
public:
hitme_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_videoram(*this, "videoram"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_videoram;
/* video-related */
tilemap_t *m_tilemap;
/* misc */
attotime m_timeout_time;
DECLARE_WRITE8_MEMBER(hitme_vidram_w);
DECLARE_READ8_MEMBER(hitme_port_0_r);
DECLARE_READ8_MEMBER(hitme_port_1_r);
DECLARE_READ8_MEMBER(hitme_port_2_r);
DECLARE_READ8_MEMBER(hitme_port_3_r);
DECLARE_WRITE8_MEMBER(output_port_0_w);
DECLARE_WRITE8_MEMBER(output_port_1_w);
TILE_GET_INFO_MEMBER(get_hitme_tile_info);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
DECLARE_VIDEO_START(barricad);
UINT32 screen_update_hitme(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
UINT32 screen_update_barricad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/*----------- defined in audio/hitme.c -----------*/
DISCRETE_SOUND_EXTERN( hitme );
|