diff options
Diffstat (limited to 'src/mame/includes/badlands.h')
-rw-r--r-- | src/mame/includes/badlands.h | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/src/mame/includes/badlands.h b/src/mame/includes/badlands.h index b995a142cc3..f6d74f5226b 100644 --- a/src/mame/includes/badlands.h +++ b/src/mame/includes/badlands.h @@ -6,10 +6,28 @@ *************************************************************************/ +#ifndef MAME_INCLUDES_BADLANDS_H +#define MAME_INCLUDES_BADLANDS_H + +#include "cpu/z80/z80.h" +#include "cpu/m68000/m68000.h" +#include "cpu/m6502/m6502.h" +#include "machine/eeprompar.h" +#include "machine/watchdog.h" #include "machine/atarigen.h" #include "machine/timer.h" +#include "sound/ym2151.h" #include "video/atarimo.h" +#include "speaker.h" + +/*----------- defined in machine/badlands.cpp -----------*/ + +//extern const gfx_layout badlands_molayout; + +INPUT_PORTS_EXTERN(badlands); + + class badlands_state : public atarigen_state { public: @@ -39,27 +57,44 @@ public: 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_t screen_update_badlands(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(vblank_int); TIMER_DEVICE_CALLBACK_MEMBER(sound_scanline); - TIMER_DEVICE_CALLBACK_MEMBER(bootleg_sound_scanline); DECLARE_WRITE16_MEMBER( badlands_pf_bank_w ); + + static const atari_motion_objects_config s_mob_config; + void badlands(machine_config &config); + void audio_map(address_map &map); + void main_map(address_map &map); +}; + +class badlandsbl_state : public badlands_state +{ +public: + badlandsbl_state(const machine_config &mconfig, device_type type, const char *tag) + : badlands_state(mconfig, type, tag) + {} + DECLARE_READ8_MEMBER(bootleg_shared_r); DECLARE_WRITE8_MEMBER(bootleg_shared_w); DECLARE_WRITE8_MEMBER(bootleg_main_irq_w); + DECLARE_READ16_MEMBER(badlandsb_unk_r); + TIMER_DEVICE_CALLBACK_MEMBER(bootleg_sound_scanline); - static const atari_motion_objects_config s_mob_config; void badlandsb(machine_config &config); - void badlands(machine_config &config); - void audio_map(address_map &map); - void bootleg_audio_map(address_map &map); void bootleg_map(address_map &map); - void main_map(address_map &map); + void bootleg_audio_map(address_map &map); + +protected: + virtual void machine_reset() override; }; + + +#endif // MAME_INCLUDES_BADLANDS_H + + |