diff options
Diffstat (limited to 'src/mame/includes/namcos1.h')
-rw-r--r-- | src/mame/includes/namcos1.h | 159 |
1 files changed, 0 insertions, 159 deletions
diff --git a/src/mame/includes/namcos1.h b/src/mame/includes/namcos1.h deleted file mode 100644 index 3b8f0604e29..00000000000 --- a/src/mame/includes/namcos1.h +++ /dev/null @@ -1,159 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Ernesto Corvi -#ifndef MAME_INCLUDES_NAMCOS1_H -#define MAME_INCLUDES_NAMCOS1_H - -#pragma once - -#include "cpu/m6800/m6801.h" -#include "cpu/m6809/m6809.h" -#include "machine/c117.h" -#include "sound/dac.h" -#include "sound/namco.h" -#include "video/namco_c116.h" -#include "video/namco_c123tmap.h" -#include "machine/74157.h" - -class namcos1_state : public driver_device -{ -public: - namcos1_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_subcpu(*this, "subcpu"), - m_audiocpu(*this, "audiocpu"), - m_mcu(*this, "mcu"), - m_c116(*this, "c116"), - m_c117(*this, "c117"), - m_c123tmap(*this, "c123tmap"), - m_dac(*this, "dac%u", 0U), - m_gfxdecode(*this, "gfxdecode"), - m_spriteram(*this, "spriteram"), - m_triram(*this, "triram"), - m_rom(*this, "user1"), - m_soundbank(*this, "soundbank"), - m_mcubank(*this, "mcubank"), - m_io_in(*this, "IN%u", 0U), - m_io_control(*this, "CONTROL%u", 0U), - m_io_paddle(*this, "PADDLE%u", 0U), - m_io_dipsw(*this, "DIPSW"), - m_dsw_sel(*this, "dsw_sel") - { } - - void ns1(machine_config &config); - - void init_pacmania(); - void init_ws(); - void init_wldcourt(); - void init_tankfrc4(); - void init_blazer(); - void init_dangseed(); - void init_splatter(); - void init_alice(); - void init_faceoff(); - void init_puzlclub(); - void init_bakutotu(); - void init_rompers(); - void init_ws90(); - void init_tankfrce(); - void init_soukobdx(); - void init_shadowld(); - void init_berabohm(); - void init_galaga88(); - void init_blastoff(); - void init_quester(); - void init_ws89(); - void init_dspirit(); - void init_pistoldm(); - -protected: - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - void driver_init() override; - -private: - required_device<mc6809e_device> m_maincpu; - required_device<mc6809e_device> m_subcpu; - required_device<mc6809e_device> m_audiocpu; - required_device<hd63701_cpu_device> m_mcu; - required_device<namco_c116_device> m_c116; - required_device<namco_c117_device> m_c117; - required_device<namco_c123tmap_device> m_c123tmap; - required_device_array<dac_8bit_r2r_device, 2> m_dac; - required_device<gfxdecode_device> m_gfxdecode; - - required_shared_ptr<u8> m_spriteram; - required_shared_ptr<u8> m_triram; - required_region_ptr<u8> m_rom; - - required_memory_bank m_soundbank; - required_memory_bank m_mcubank; - - optional_ioport_array<4> m_io_in; - optional_ioport_array<2> m_io_control; - optional_ioport_array<2> m_io_paddle; - required_ioport m_io_dipsw; - required_device<ls157_device> m_dsw_sel; - - int m_key_id; - int m_key_reg; - int m_key_rng; - int m_key_swap4_arg; - int m_key_swap4; - int m_key_bottom4; - int m_key_top4; - u32 m_key_quotient; - u32 m_key_reminder; - u32 m_key_numerator_high_word; - u8 m_key[8]; - int m_mcu_patch_data; - int m_reset; - int m_input_count; - int m_strobe; - int m_strobe_count; - int m_stored_input[2]; - bool m_copy_sprites; - u8 m_drawmode_table[16]; - - DECLARE_WRITE_LINE_MEMBER(subres_w); - void audiocpu_irq_ack_w(u8 data); - void mcu_irq_ack_w(u8 data); - DECLARE_READ8_MEMBER(dsw_r); - void coin_w(u8 data); - void dac_gain_w(u8 data); - void sound_bankswitch_w(u8 data); - void mcu_bankswitch_w(u8 data); - void mcu_patch_w(u8 data); - u8 quester_paddle_r(offs_t offset); - u8 berabohm_buttons_r(offs_t offset); - u8 faceoff_inputs_r(offs_t offset); - void spriteram_w(offs_t offset, u8 data); - void _3dcs_w(offs_t offset, u8 data); - u8 no_key_r(offs_t offset); - void no_key_w(offs_t offset, u8 data); - u8 key_type1_r(offs_t offset); - void key_type1_w(offs_t offset, u8 data); - u8 key_type2_r(offs_t offset); - void key_type2_w(offs_t offset, u8 data); - u8 key_type3_r(offs_t offset); - void key_type3_w(offs_t offset, u8 data); - - void key_type_1_init(int key_id); - void key_type_2_init(int key_id); - void key_type_3_init(int key_id, int reg, int rng, int swap4_arg, int swap4, int bottom4, int top4); - - void TilemapCB(u16 code, int *tile, int *mask); - - void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - DECLARE_WRITE_LINE_MEMBER(screen_vblank); - - void main_map(address_map &map); - void mcu_map(address_map &map); - void sound_map(address_map &map); - void sub_map(address_map &map); - void virtual_map(address_map &map); -}; - -#endif // MAME_INCLUDES_NAMCOS1_H |