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