1 // license:BSD-3-Clause 2 // copyright-holders:Aaron Giles 3 /************************************************************************* 4 5 Atari Klax hardware 6 7 *************************************************************************/ 8 #ifndef MAME_INCLUDES_KLAX_H 9 #define MAME_INCLUDES_KLAX_H 10 11 #pragma once 12 13 #include "machine/timer.h" 14 #include "video/atarimo.h" 15 #include "screen.h" 16 #include "tilemap.h" 17 18 class klax_state : public driver_device 19 { 20 public: klax_state(const machine_config & mconfig,device_type type,const char * tag)21 klax_state(const machine_config &mconfig, device_type type, const char *tag) 22 : driver_device(mconfig, type, tag) 23 , m_maincpu(*this, "maincpu") 24 , m_gfxdecode(*this, "gfxdecode") 25 , m_screen(*this, "screen") 26 , m_playfield_tilemap(*this, "playfield") 27 , m_mob(*this, "mob") 28 , m_p1(*this, "P1") 29 { } 30 31 void klax(machine_config &config); 32 void klax5bl(machine_config &config); 33 34 private: 35 virtual void machine_reset() override; 36 37 TIMER_DEVICE_CALLBACK_MEMBER(scanline_update); 38 39 void interrupt_ack_w(u16 data = 0); 40 41 void latch_w(u16 data); 42 43 TILE_GET_INFO_MEMBER(get_playfield_tile_info); 44 u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 45 46 void bootleg_sound_map(address_map &map); 47 void klax5bl_map(address_map &map); 48 void klax_map(address_map &map); 49 50 required_device<cpu_device> m_maincpu; 51 required_device<gfxdecode_device> m_gfxdecode; 52 required_device<screen_device> m_screen; 53 required_device<tilemap_device> m_playfield_tilemap; 54 required_device<atari_motion_objects_device> m_mob; 55 56 required_ioport m_p1; 57 58 static const atari_motion_objects_config s_mob_config; 59 }; 60 61 #endif // MAME_INCLUDES_KLAX_H 62