27
27
sprint2_state(const machine_config &mconfig, device_type type, const char *tag)
28
: driver_device(mconfig, type, tag) { }
28
: driver_device(mconfig, type, tag) ,
29
m_video_ram(*this, "video_ram"){ }
36
required_shared_ptr<UINT8> m_video_ram;
36
37
tilemap_t* m_bg_tilemap;
37
38
bitmap_ind16 m_helper;
38
39
int m_collision[2];
40
DECLARE_READ8_MEMBER(sprint2_wram_r);
41
DECLARE_READ8_MEMBER(sprint2_dip_r);
42
DECLARE_READ8_MEMBER(sprint2_input_A_r);
43
DECLARE_READ8_MEMBER(sprint2_input_B_r);
44
DECLARE_READ8_MEMBER(sprint2_sync_r);
45
DECLARE_READ8_MEMBER(sprint2_steering1_r);
46
DECLARE_READ8_MEMBER(sprint2_steering2_r);
47
DECLARE_WRITE8_MEMBER(sprint2_steering_reset1_w);
48
DECLARE_WRITE8_MEMBER(sprint2_steering_reset2_w);
49
DECLARE_WRITE8_MEMBER(sprint2_wram_w);
50
DECLARE_WRITE8_MEMBER(sprint2_lamp1_w);
51
DECLARE_WRITE8_MEMBER(sprint2_lamp2_w);
52
DECLARE_READ8_MEMBER(sprint2_collision1_r);
53
DECLARE_READ8_MEMBER(sprint2_collision2_r);
54
DECLARE_WRITE8_MEMBER(sprint2_collision_reset1_w);
55
DECLARE_WRITE8_MEMBER(sprint2_collision_reset2_w);
56
DECLARE_WRITE8_MEMBER(sprint2_video_ram_w);
49
67
/*----------- defined in video/sprint2.c -----------*/
51
READ8_HANDLER( sprint2_collision1_r );
52
READ8_HANDLER( sprint2_collision2_r );
54
WRITE8_HANDLER( sprint2_collision_reset1_w );
55
WRITE8_HANDLER( sprint2_collision_reset2_w );
56
WRITE8_HANDLER( sprint2_video_ram_w );
58
71
PALETTE_INIT( sprint2 );
59
72
SCREEN_UPDATE_IND16( sprint2 );