summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/karnov.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/karnov.h')
-rw-r--r--src/mame/includes/karnov.h102
1 files changed, 0 insertions, 102 deletions
diff --git a/src/mame/includes/karnov.h b/src/mame/includes/karnov.h
deleted file mode 100644
index 0c22dce94dc..00000000000
--- a/src/mame/includes/karnov.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Bryan McPhail
-/*************************************************************************
-
- Karnov - Wonder Planet - Chelnov
-
-*************************************************************************/
-
-#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-#include "video/bufsprite.h"
-#include "video/deckarn.h"
-#include "video/decrmc3.h"
-#include "tilemap.h"
-
-class karnov_state : public driver_device
-{
-public:
- karnov_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_mcu(*this, "mcu"),
- m_screen(*this, "screen"),
- m_spriteram(*this, "spriteram") ,
- m_spritegen(*this, "spritegen"),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch"),
- m_ram(*this, "ram"),
- m_videoram(*this, "videoram"),
- m_pf_data(*this, "pf_data"),
- m_scroll(*this, "scroll") { }
-
- /* devices */
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_audiocpu;
- optional_device<mcs51_cpu_device> m_mcu;
- required_device<screen_device> m_screen;
- required_device<buffered_spriteram16_device> m_spriteram;
- required_device<deco_karnovsprites_device> m_spritegen;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<deco_rmc3_device> m_palette;
- required_device<generic_latch_8_device> m_soundlatch;
-
- /* memory pointers */
- required_shared_ptr<uint16_t> m_ram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_pf_data;
- required_shared_ptr<uint16_t> m_scroll;
-
- /* video-related */
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fix_tilemap;
-
- void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- void playfield_w(offs_t offset, u16 data, u16 mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fix_tile_info);
- DECLARE_VIDEO_START(karnov);
- DECLARE_VIDEO_START(wndrplnt);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
-
- void chelnovjbl(machine_config &config);
- void karnov(machine_config &config);
- void wndrplnt(machine_config &config);
- void karnovjbl(machine_config &config);
-
- void base_sound_map(address_map &map);
- void chelnovjbl_mcu_map(address_map &map);
- void chelnovjbl_mcu_io_map(address_map &map);
- void karnov_map(address_map &map);
- void karnovjbl_map(address_map &map);
- void karnov_sound_map(address_map &map);
- void karnovjbl_sound_map(address_map &map);
-
-protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
-private:
- // protection mcu
- void mcu_coin_irq(int state);
- void mcu_ack_w(uint16_t data);
- uint16_t mcu_r();
- void mcu_w(uint16_t data);
- void mcu_p2_w(uint8_t data);
-
- // protection mcu (bootleg specific)
- uint8_t mcu_data_l_r();
- void mcu_data_l_w(uint8_t data);
- uint8_t mcu_data_h_r();
- void mcu_data_h_w(uint8_t data);
- void mcubl_p1_w(uint8_t data);
-
- uint8_t m_mcu_p0;
- uint8_t m_mcu_p1;
- uint8_t m_mcu_p2;
- uint16_t m_mcu_to_maincpu;
- uint16_t m_maincpu_to_mcu;
- bool m_coin_state;
-};