1 // license:BSD-3-Clause 2 // copyright-holders:Aaron Giles 3 /************************************************************************* 4 5 Atari Batman hardware 6 7 *************************************************************************/ 8 #ifndef MAME_INCLUDES_BATMAN_H 9 #define MAME_INCLUDES_BATMAN_H 10 11 #pragma once 12 13 #include "audio/atarijsa.h" 14 #include "video/atarimo.h" 15 #include "video/atarivad.h" 16 #include "emupal.h" 17 #include "screen.h" 18 #include "tilemap.h" 19 20 class batman_state : public driver_device 21 { 22 public: batman_state(const machine_config & mconfig,device_type type,const char * tag)23 batman_state(const machine_config &mconfig, device_type type, const char *tag) : 24 driver_device(mconfig, type, tag), 25 m_maincpu(*this, "maincpu"), 26 m_screen(*this, "screen"), 27 m_jsa(*this, "jsa"), 28 m_vad(*this, "vad") 29 { } 30 31 void init_batman(); 32 void batman(machine_config &config); 33 34 protected: 35 virtual void machine_start() override; 36 void latch_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); 37 TILE_GET_INFO_MEMBER(get_alpha_tile_info); 38 TILE_GET_INFO_MEMBER(get_playfield_tile_info); 39 TILE_GET_INFO_MEMBER(get_playfield2_tile_info); 40 uint32_t screen_update_batman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 41 42 void main_map(address_map &map); 43 44 private: 45 required_device<cpu_device> m_maincpu; 46 required_device<screen_device> m_screen; 47 required_device<atari_jsa_iii_device> m_jsa; 48 required_device<atari_vad_device> m_vad; 49 50 uint16_t m_latch_data; 51 uint8_t m_alpha_tile_bank; 52 53 static const atari_motion_objects_config s_mob_config; 54 }; 55 56 #endif // MAME_INCLUDES_BATMAN_H 57