1 // license:BSD-3-Clause 2 // copyright-holders:Manuel Abadia 3 /************************************************************************* 4 5 Konami Battlantis Hardware 6 7 *************************************************************************/ 8 #ifndef MAME_INCLUDES_BATTLNTS_H 9 #define MAME_INCLUDES_BATTLNTS_H 10 11 #pragma once 12 13 #include "video/k007342.h" 14 #include "video/k007420.h" 15 16 class battlnts_state : public driver_device 17 { 18 public: battlnts_state(const machine_config & mconfig,device_type type,const char * tag)19 battlnts_state(const machine_config &mconfig, device_type type, const char *tag) : 20 driver_device(mconfig, type, tag), 21 m_maincpu(*this, "maincpu"), 22 m_audiocpu(*this, "audiocpu"), 23 m_k007342(*this, "k007342"), 24 m_k007420(*this, "k007420"), 25 m_gfxdecode(*this, "gfxdecode"), 26 m_rombank(*this, "rombank") 27 { } 28 29 /* video-related */ 30 int m_spritebank; 31 32 /* devices */ 33 required_device<cpu_device> m_maincpu; 34 required_device<cpu_device> m_audiocpu; 35 required_device<k007342_device> m_k007342; 36 required_device<k007420_device> m_k007420; 37 required_device<gfxdecode_device> m_gfxdecode; 38 required_memory_bank m_rombank; 39 40 void battlnts_sh_irqtrigger_w(uint8_t data); 41 void battlnts_bankswitch_w(uint8_t data); 42 void battlnts_spritebank_w(uint8_t data); 43 virtual void machine_start() override; 44 virtual void machine_reset() override; 45 uint32_t screen_update_battlnts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 46 DECLARE_WRITE_LINE_MEMBER(vblank_irq); 47 K007342_CALLBACK_MEMBER(battlnts_tile_callback); 48 K007420_CALLBACK_MEMBER(battlnts_sprite_callback); 49 void battlnts(machine_config &config); 50 void battlnts_map(address_map &map); 51 void battlnts_sound_map(address_map &map); 52 }; 53 54 #endif // MAME_INCLUDES_BATTLNTS_H 55