1 // license:BSD-3-Clause 2 // copyright-holders:David Haywood, hap 3 /*************************************************************************** 4 5 Zaccaria Galaxia HW 6 7 ****************************************************************************/ 8 #ifndef MAME_INCLUDES_GALAXIA_H 9 #define MAME_INCLUDES_GALAXIA_H 10 11 #pragma once 12 13 #include "includes/cvs.h" 14 #include "tilemap.h" 15 16 class galaxia_state : public cvs_state 17 { 18 public: galaxia_state(const machine_config & mconfig,device_type type,const char * tag)19 galaxia_state(const machine_config &mconfig, device_type type, const char *tag) 20 : cvs_state(mconfig, type, tag) 21 { } 22 23 void astrowar(machine_config &config); 24 void galaxia(machine_config &config); 25 26 void init_common(); 27 28 private: 29 tilemap_t *m_bg_tilemap; 30 bitmap_ind16 m_temp_bitmap; 31 void galaxia_video_w(offs_t offset, uint8_t data); 32 void galaxia_scroll_w(uint8_t data); 33 void galaxia_ctrlport_w(uint8_t data); 34 void galaxia_dataport_w(uint8_t data); 35 uint8_t galaxia_collision_r(); 36 uint8_t galaxia_collision_clear(); 37 TILE_GET_INFO_MEMBER(get_galaxia_bg_tile_info); 38 TILE_GET_INFO_MEMBER(get_astrowar_bg_tile_info); 39 DECLARE_VIDEO_START(galaxia); 40 void galaxia_palette(palette_device &palette) const; 41 DECLARE_VIDEO_START(astrowar); 42 void astrowar_palette(palette_device &palette) const; 43 uint32_t screen_update_galaxia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 44 uint32_t screen_update_astrowar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 45 DECLARE_WRITE_LINE_MEMBER(vblank_irq); 46 void astrowar_mem_map(address_map &map); 47 void galaxia_data_map(address_map &map); 48 void galaxia_io_map(address_map &map); 49 void galaxia_mem_map(address_map &map); 50 }; 51 52 #endif // MAME_INCLUDES_GALAXIA_H 53