summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/mappy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/mappy.h')
-rw-r--r--src/mame/includes/mappy.h116
1 files changed, 0 insertions, 116 deletions
diff --git a/src/mame/includes/mappy.h b/src/mame/includes/mappy.h
deleted file mode 100644
index 7a5845b9e28..00000000000
--- a/src/mame/includes/mappy.h
+++ /dev/null
@@ -1,116 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Nicola Salmoria
-#ifndef MAME_INCLUDES_MAPPY_H
-#define MAME_INCLUDES_MAPPY_H
-
-#pragma once
-
-#include "machine/namcoio.h"
-#include "sound/dac.h"
-#include "sound/namco.h"
-#include "emupal.h"
-#include "screen.h"
-#include "tilemap.h"
-
-class mappy_state : public driver_device
-{
-public:
- mappy_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_videoram(*this, "videoram"),
- m_spriteram(*this, "spriteram"),
- m_maincpu(*this, "maincpu"),
- m_subcpu(*this, "sub"),
- m_subcpu2(*this, "sub2"),
- m_namcoio(*this, "namcoio_%u", 1),
- m_namco_15xx(*this, "namco"),
- m_dac(*this, "dac"),
- m_gfxdecode(*this, "gfxdecode"),
- m_screen(*this, "screen"),
- m_palette(*this, "palette"),
- m_leds(*this, "led%u", 0U)
- { }
-
- void mappy_common(machine_config &config);
- void mappy(machine_config &config);
- void phozon(machine_config &config);
- void motos(machine_config &config);
- void grobda(machine_config &config);
- void digdug2(machine_config &config);
- void pacnpal(machine_config &config);
- void superpac_common(machine_config &config);
- void superpac(machine_config &config);
- void todruaga(machine_config &config);
-
- void init_grobda();
- void init_digdug2();
-
-protected:
- virtual void machine_start() override;
-
-private:
- required_shared_ptr<uint8_t> m_videoram;
- required_shared_ptr<uint8_t> m_spriteram;
-
- required_device<cpu_device> m_maincpu;
- required_device<cpu_device> m_subcpu;
- optional_device<cpu_device> m_subcpu2;
- required_device_array<namcoio_device, 2> m_namcoio;
- required_device<namco_15xx_device> m_namco_15xx;
- optional_device<dac_byte_interface> m_dac;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- output_finder<2> m_leds;
-
- tilemap_t *m_bg_tilemap;
- bitmap_ind16 m_sprite_bitmap;
-
- uint8_t m_scroll;
-
- uint8_t m_main_irq_mask;
- uint8_t m_sub_irq_mask;
- uint8_t m_sub2_irq_mask;
-
- emu_timer *m_namcoio_run_timer[2];
-
- DECLARE_WRITE_LINE_MEMBER(int_on_w);
- DECLARE_WRITE_LINE_MEMBER(int_on_2_w);
- DECLARE_WRITE_LINE_MEMBER(int_on_3_w);
- DECLARE_WRITE_LINE_MEMBER(mappy_flip_w);
- DECLARE_WRITE8_MEMBER(superpac_videoram_w);
- DECLARE_WRITE8_MEMBER(mappy_videoram_w);
- DECLARE_WRITE8_MEMBER(superpac_flipscreen_w);
- DECLARE_READ8_MEMBER(superpac_flipscreen_r);
- DECLARE_WRITE8_MEMBER(mappy_scroll_w);
- DECLARE_WRITE8_MEMBER(out_lamps);
- TILEMAP_MAPPER_MEMBER(superpac_tilemap_scan);
- TILEMAP_MAPPER_MEMBER(mappy_tilemap_scan);
- TILE_GET_INFO_MEMBER(superpac_get_tile_info);
- TILE_GET_INFO_MEMBER(phozon_get_tile_info);
- TILE_GET_INFO_MEMBER(mappy_get_tile_info);
- template<uint8_t Chip> TIMER_CALLBACK_MEMBER(namcoio_run_timer);
-
- DECLARE_VIDEO_START(superpac);
- void superpac_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(phozon);
- void phozon_palette(palette_device &palette) const;
- DECLARE_VIDEO_START(mappy);
- void mappy_palette(palette_device &palette) const;
- uint32_t screen_update_superpac(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_phozon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_mappy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(vblank_irq);
- void mappy_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base);
- void phozon_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *spriteram_base);
-
- void mappy_cpu1_map(address_map &map);
- void mappy_cpu2_map(address_map &map);
- void phozon_cpu1_map(address_map &map);
- void phozon_cpu2_map(address_map &map);
- void phozon_cpu3_map(address_map &map);
- void superpac_cpu1_map(address_map &map);
- void superpac_cpu2_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MAPPY_H