summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/megasys1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/megasys1.h')
-rw-r--r--src/mame/includes/megasys1.h208
1 files changed, 0 insertions, 208 deletions
diff --git a/src/mame/includes/megasys1.h b/src/mame/includes/megasys1.h
deleted file mode 100644
index 284d4f41bb2..00000000000
--- a/src/mame/includes/megasys1.h
+++ /dev/null
@@ -1,208 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Luca Elia
-/***************************************************************************
-
- -= Jaleco Mega System 1 =-
-
- driver by Luca Elia (l.elia@tin.it)
-
-***************************************************************************/
-#ifndef MAME_INCLUDES_MEGASYS1_H
-#define MAME_INCLUDES_MEGASYS1_H
-
-#pragma once
-
-#include "machine/gen_latch.h"
-#include "machine/timer.h"
-#include "sound/okim6295.h"
-#include "video/ms1_tmap.h"
-#include "emupal.h"
-#include "screen.h"
-
-
-class megasys1_state : public driver_device
-{
-public:
- megasys1_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_objectram(*this, "objectram"),
- m_tmap(*this, "scroll%u", 0),
- m_ram(*this, "ram"),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_oki(*this, "oki%u", 1U),
- m_gfxdecode(*this, "gfxdecode"),
- m_palette(*this, "palette"),
- m_screen(*this, "screen"),
- m_soundlatch(*this, "soundlatch%u", 1U),
- m_scantimer(*this, "scantimer"),
- m_rom_maincpu(*this, "maincpu"),
- m_okibank(*this, "okibank"),
- m_io_system(*this, "SYSTEM"),
- m_io_p1(*this, "P1"),
- m_io_p2(*this, "P2"),
- m_io_dsw(*this, "DSW"),
- m_io_dsw1(*this, "DSW1"),
- m_io_dsw2(*this, "DSW2")
- { }
-
- void system_A_soldam(machine_config &config);
- void system_B_monkelf(machine_config &config);
- void system_A_iganinju(machine_config &config);
- void system_A_hachoo(machine_config &config);
- void kickoffb(machine_config &config);
- void system_D(machine_config &config);
- void system_C(machine_config &config);
- void system_Bbl(machine_config &config);
- void system_A(machine_config &config);
- void system_A_jitsupro(machine_config &config);
- void system_B(machine_config &config);
- void system_B_hayaosi1(machine_config &config);
- void system_Z(machine_config &config);
-
- void init_64street();
- void init_chimerab();
- void init_peekaboo();
- void init_soldam();
- void init_astyanax();
- void init_stdragon();
- void init_hayaosi1();
- void init_soldamj();
- void init_phantasm();
- void init_jitsupro();
- void init_iganinju();
- void init_cybattlr();
- void init_rodlandj();
- void init_rittam();
- void init_rodlandjb();
- void init_avspirit();
- void init_monkelf();
- void init_edf();
- void init_edfp();
- void init_bigstrik();
- void init_rodland();
- void init_edfbl();
- void init_stdragona();
- void init_stdragonb();
- void init_systemz();
-
-private:
- required_shared_ptr<u16> m_objectram;
- optional_device_array<megasys1_tilemap_device, 3> m_tmap;
- required_shared_ptr<u16> m_ram;
- required_device<cpu_device> m_maincpu;
- optional_device<cpu_device> m_audiocpu;
- optional_device_array<okim6295_device, 2> m_oki;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
- required_device<screen_device> m_screen;
- optional_device_array<generic_latch_16_device, 2> m_soundlatch;
- optional_device<timer_device> m_scantimer;
- required_region_ptr<u16> m_rom_maincpu;
- optional_memory_bank m_okibank;
- required_ioport m_io_system;
- required_ioport m_io_p1;
- required_ioport m_io_p2;
- optional_ioport m_io_dsw;
- optional_ioport m_io_dsw1;
- optional_ioport m_io_dsw2;
-
- // configuration
- u16 m_ip_select_values[7]; // System B and C
- int m_hardware_type_z; // System Z
- int m_layers_order[16];
- u8 m_ignore_oki_status;
-
- // all
- bitmap_ind16 m_sprite_buffer_bitmap;
- u16 m_screen_flag;
- std::unique_ptr<u16[]> m_buffer_objectram;
- std::unique_ptr<u16[]> m_buffer2_objectram;
- std::unique_ptr<u16[]> m_buffer_spriteram16;
- std::unique_ptr<u16[]> m_buffer2_spriteram16;
-
- // all but System Z
- u16 m_active_layers;
- u16 m_sprite_flag;
-
- // System B and C
- u16 m_ip_latched;
-
- // System C
- u16 m_sprite_bank;
-
- // System A only
- int m_mcu_hs;
- u16 m_mcu_hs_ram[0x10];
-
- // peekaboo
- u16 m_protection_val;
-
- // soldam
- u16 *m_spriteram;
-
- DECLARE_WRITE_LINE_MEMBER(sound_irq);
- DECLARE_READ16_MEMBER(ip_select_r);
- DECLARE_WRITE16_MEMBER(ip_select_w);
- DECLARE_READ16_MEMBER(protection_peekaboo_r);
- DECLARE_WRITE16_MEMBER(protection_peekaboo_w);
- DECLARE_READ16_MEMBER(megasys1A_mcu_hs_r);
- DECLARE_WRITE16_MEMBER(megasys1A_mcu_hs_w);
- DECLARE_READ16_MEMBER(iganinju_mcu_hs_r);
- DECLARE_WRITE16_MEMBER(iganinju_mcu_hs_w);
- DECLARE_READ16_MEMBER(soldamj_spriteram16_r);
- DECLARE_WRITE16_MEMBER(soldamj_spriteram16_w);
- DECLARE_READ16_MEMBER(stdragon_mcu_hs_r);
- DECLARE_WRITE16_MEMBER(stdragon_mcu_hs_w);
- DECLARE_WRITE16_MEMBER(active_layers_w);
- DECLARE_WRITE16_MEMBER(sprite_bank_w);
- DECLARE_READ16_MEMBER(sprite_flag_r);
- DECLARE_WRITE16_MEMBER(sprite_flag_w);
- DECLARE_WRITE16_MEMBER(screen_flag_w);
- DECLARE_WRITE16_MEMBER(soundlatch_w);
- DECLARE_WRITE16_MEMBER(soundlatch_z_w);
- DECLARE_WRITE16_MEMBER(soundlatch_c_w);
- DECLARE_WRITE16_MEMBER(monkelf_scroll0_w);
- DECLARE_WRITE16_MEMBER(monkelf_scroll1_w);
- void megasys1_set_vreg_flag(int which, int data);
- template<int Chip> DECLARE_READ8_MEMBER(oki_status_r);
- DECLARE_WRITE16_MEMBER(ram_w);
-
- DECLARE_MACHINE_RESET(megasys1);
- DECLARE_VIDEO_START(megasys1);
- DECLARE_VIDEO_START(megasys1_z);
- void megasys1_palette(palette_device &palette);
- DECLARE_MACHINE_RESET(megasys1_hachoo);
-
- u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE_LINE_MEMBER(screen_vblank);
- INTERRUPT_GEN_MEMBER(megasys1D_irq);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1A_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1A_iganinju_scanline);
- TIMER_DEVICE_CALLBACK_MEMBER(megasys1B_scanline);
-
- void priority_create();
- void mix_sprite_bitmap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void partial_clear_sprite_bitmap(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, u8 param);
- void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
- inline void draw_16x16_priority_sprite(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect, s32 code, s32 color, s32 sx, s32 sy, s32 flipx, s32 flipy, u8 mosaic, u8 mosaicsol, s32 priority);
- void rodland_gfx_unmangle(const char *region);
- void jitsupro_gfx_unmangle(const char *region);
- void stdragona_gfx_unmangle(const char *region);
- void kickoffb_sound_map(address_map &map);
- void megasys1A_map(address_map &map);
- void megasys1A_sound_map(address_map &map);
- void megasys1A_jitsupro_sound_map(address_map &map);
- void megasys1B_edfbl_map(address_map &map);
- void megasys1B_map(address_map &map);
- void megasys1B_monkelf_map(address_map &map);
- void megasys1B_sound_map(address_map &map);
- void megasys1C_map(address_map &map);
- void megasys1D_map(address_map &map);
- void megasys1D_oki_map(address_map &map);
- void megasys1Z_map(address_map &map);
- void z80_sound_io_map(address_map &map);
- void z80_sound_map(address_map &map);
-};
-
-#endif // MAME_INCLUDES_MEGASYS1_H