summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/badlands.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/badlands.h')
-rw-r--r--src/mame/includes/badlands.h125
1 files changed, 0 insertions, 125 deletions
diff --git a/src/mame/includes/badlands.h b/src/mame/includes/badlands.h
deleted file mode 100644
index bcf7d47311f..00000000000
--- a/src/mame/includes/badlands.h
+++ /dev/null
@@ -1,125 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Aaron Giles
-/*************************************************************************
-
- Atari Bad Lands hardware
-
-*************************************************************************/
-#ifndef MAME_INCLUDES_BADLANDS_H
-#define MAME_INCLUDES_BADLANDS_H
-
-#pragma once
-
-#include "cpu/z80/z80.h"
-#include "cpu/m68000/m68000.h"
-#include "cpu/m6502/m6502.h"
-#include "machine/eeprompar.h"
-#include "machine/gen_latch.h"
-#include "machine/watchdog.h"
-#include "machine/timer.h"
-#include "sound/ym2151.h"
-#include "video/atarimo.h"
-
-#include "speaker.h"
-#include "tilemap.h"
-
-/*----------- defined in machine/badlands.cpp -----------*/
-
-//extern const gfx_layout badlands_molayout;
-
-INPUT_PORTS_EXTERN(badlands);
-
-
-class badlands_state : public driver_device
-{
-public:
- badlands_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_audiocpu(*this, "audiocpu")
- , m_soundlatch(*this, "soundlatch")
- , m_mainlatch(*this, "mainlatch")
- , m_ymsnd(*this, "ymsnd")
- , m_screen(*this, "screen")
- , m_gfxdecode(*this, "gfxdecode")
- , m_playfield_tilemap(*this, "playfield")
- , m_mob(*this, "mob")
- { }
-
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device<generic_latch_8_device> m_soundlatch;
- optional_device<generic_latch_8_device> m_mainlatch;
- optional_device<ym2151_device> m_ymsnd;
-
- required_device<screen_device> m_screen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<tilemap_device> m_playfield_tilemap;
- optional_device<atari_motion_objects_device> m_mob;
-
- uint16_t sound_busy_r();
- void sound_reset_w(uint16_t data);
- uint16_t pedal_0_r();
- uint16_t pedal_1_r();
-
- uint8_t audio_io_r();
- void audio_io_w(uint8_t data);
- uint8_t audio_irqack_r();
- void audio_irqack_w(uint8_t data);
-
- void init_badlands();
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- DECLARE_MACHINE_START(badlands);
- DECLARE_MACHINE_RESET(badlands);
- DECLARE_VIDEO_START(badlands);
- uint32_t screen_update_badlands(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(vblank_int);
- void video_int_ack_w(uint16_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(sound_scanline);
- void badlands_pf_bank_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
-
- 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);
-
-private:
- uint8_t m_pedal_value[2];
- uint8_t m_playfield_tile_bank;
-};
-
-class badlandsbl_state : public badlands_state
-{
-public:
- badlandsbl_state(const machine_config &mconfig, device_type type, const char *tag)
- : badlands_state(mconfig, type, tag),
- m_b_sharedram(*this, "b_sharedram"),
- m_spriteram(*this, "spriteram")
- {}
-
- uint8_t bootleg_shared_r(offs_t offset);
- void bootleg_shared_w(offs_t offset, uint8_t data);
- void bootleg_main_irq_w(uint8_t data);
- uint16_t badlandsb_unk_r();
- uint8_t sound_response_r();
- TIMER_DEVICE_CALLBACK_MEMBER(bootleg_sound_scanline);
-
- void badlandsb(machine_config &config);
- void bootleg_map(address_map &map);
- void bootleg_audio_map(address_map &map);
- uint32_t screen_update_badlandsbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
-protected:
- virtual void machine_reset() override;
-
-private:
- required_shared_ptr<uint8_t> m_b_sharedram;
- required_shared_ptr<uint16_t> m_spriteram;
-
- uint8_t m_sound_response;
-};
-
-
-#endif // MAME_INCLUDES_BADLANDS_H
-
-