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
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/*************************************************************************
Atari Bad Lands hardware
*************************************************************************/
#include "machine/atarigen.h"
#include "video/atarimo.h"
class badlands_state : public atarigen_state
{
public:
badlands_state(const machine_config &mconfig, device_type type, const char *tag)
: atarigen_state(mconfig, type, tag),
m_audiocpu(*this, "audiocpu"),
m_soundcomm(*this, "soundcomm"),
m_playfield_tilemap(*this, "playfield"),
m_mob(*this, "mob") { }
optional_device<cpu_device> m_audiocpu;
optional_device<atari_sound_comm_device> m_soundcomm;
required_device<tilemap_device> m_playfield_tilemap;
required_device<atari_motion_objects_device> m_mob;
UINT8 m_pedal_value[2];
UINT8 * m_bank_base;
UINT8 * m_bank_source_data;
UINT8 m_playfield_tile_bank;
virtual void update_interrupts() override;
virtual void scanline_update(screen_device &screen, int scanline) override;
DECLARE_READ16_MEMBER(sound_busy_r);
DECLARE_READ16_MEMBER(pedal_0_r);
DECLARE_READ16_MEMBER(pedal_1_r);
DECLARE_READ8_MEMBER(audio_io_r);
DECLARE_WRITE8_MEMBER(audio_io_w);
DECLARE_READ16_MEMBER(badlandsb_unk_r);
DECLARE_DRIVER_INIT(badlands);
TILE_GET_INFO_MEMBER(get_playfield_tile_info);
DECLARE_MACHINE_START(badlands);
DECLARE_MACHINE_RESET(badlands);
DECLARE_VIDEO_START(badlands);
DECLARE_MACHINE_RESET(badlandsb);
UINT32 screen_update_badlands(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(vblank_int);
DECLARE_WRITE16_MEMBER( badlands_pf_bank_w );
static const atari_motion_objects_config s_mob_config;
};
|