blob: 580eb9db3222698af6e7effa294bd41ecb8785f8 (
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
|
/*************************************************************************
Atari Drag Race hardware
*************************************************************************/
#include "sound/discrete.h"
/* Discrete Sound Input Nodes */
#define DRAGRACE_SCREECH1_EN NODE_01
#define DRAGRACE_SCREECH2_EN NODE_02
#define DRAGRACE_LOTONE_EN NODE_03
#define DRAGRACE_HITONE_EN NODE_04
#define DRAGRACE_EXPLODE1_EN NODE_05
#define DRAGRACE_EXPLODE2_EN NODE_06
#define DRAGRACE_MOTOR1_DATA NODE_07
#define DRAGRACE_MOTOR2_DATA NODE_08
#define DRAGRACE_MOTOR1_EN NODE_80
#define DRAGRACE_MOTOR2_EN NODE_81
#define DRAGRACE_KLEXPL1_EN NODE_82
#define DRAGRACE_KLEXPL2_EN NODE_83
#define DRAGRACE_ATTRACT_EN NODE_09
class dragrace_state : public driver_device
{
public:
dragrace_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) ,
m_playfield_ram(*this, "playfield_ram"),
m_position_ram(*this, "position_ram"){ }
/* memory pointers */
required_shared_ptr<UINT8> m_playfield_ram;
required_shared_ptr<UINT8> m_position_ram;
/* video-related */
tilemap_t *m_bg_tilemap;
/* misc */
unsigned m_misc_flags;
int m_gear[2];
/* devices */
device_t *m_discrete;
DECLARE_WRITE8_MEMBER(dragrace_misc_w);
DECLARE_WRITE8_MEMBER(dragrace_misc_clear_w);
DECLARE_READ8_MEMBER(dragrace_input_r);
DECLARE_READ8_MEMBER(dragrace_steering_r);
DECLARE_READ8_MEMBER(dragrace_scanline_r);
TILE_GET_INFO_MEMBER(get_tile_info);
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
virtual void palette_init();
UINT32 screen_update_dragrace(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
/*----------- defined in audio/dragrace.c -----------*/
DISCRETE_SOUND_EXTERN( dragrace );
/*----------- defined in video/dragrace.c -----------*/
|