diff options
Diffstat (limited to 'src/mame/includes/tetrisp2.h')
-rw-r--r-- | src/mame/includes/tetrisp2.h | 53 |
1 files changed, 32 insertions, 21 deletions
diff --git a/src/mame/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h index 76cf8df8e89..1a02f6b5704 100644 --- a/src/mame/includes/tetrisp2.h +++ b/src/mame/includes/tetrisp2.h @@ -36,6 +36,25 @@ public: m_leds(*this, "led%u", 0U) { } + void rockn2(machine_config &config); + void tetrisp2(machine_config &config); + void nndmseal(machine_config &config); + void rocknms(machine_config &config); + void rockn(machine_config &config); + + void init_rockn2(); + void init_rockn1(); + void init_rockn(); + void init_rockn3(); + void init_rocknms(); + + DECLARE_CUSTOM_INPUT_MEMBER(rocknms_main2sub_status_r); + + TILE_GET_INFO_MEMBER(get_tile_info_bg); + TILE_GET_INFO_MEMBER(stepstag_get_tile_info_fg); + TILE_GET_INFO_MEMBER(get_tile_info_rot); + +protected: DECLARE_WRITE16_MEMBER(rockn_systemregs_w); DECLARE_WRITE16_MEMBER(rocknms_sub_systemregs_w); DECLARE_READ16_MEMBER(rockn_adpcmbank_r); @@ -66,19 +85,13 @@ public: DECLARE_WRITE16_MEMBER(rocknms_sub_vram_bg_w); DECLARE_WRITE16_MEMBER(rocknms_sub_vram_fg_w); DECLARE_WRITE16_MEMBER(rocknms_sub_vram_rot_w); - DECLARE_CUSTOM_INPUT_MEMBER(rocknms_main2sub_status_r); - void init_rockn2(); - void init_rockn1(); - void init_rockn(); - void init_rockn3(); - void init_rocknms(); - TILE_GET_INFO_MEMBER(get_tile_info_bg); + TILE_GET_INFO_MEMBER(get_tile_info_fg); - TILE_GET_INFO_MEMBER(get_tile_info_rot); + TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_bg); TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_fg); TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_rot); - TILE_GET_INFO_MEMBER(stepstag_get_tile_info_fg); + DECLARE_VIDEO_START(tetrisp2); DECLARE_VIDEO_START(nndmseal); DECLARE_VIDEO_START(rockntread); @@ -92,11 +105,7 @@ public: TIMER_CALLBACK_MEMBER(rockn_timer_level1_callback); TIMER_CALLBACK_MEMBER(rockn_timer_sub_level1_callback); void init_rockn_timer(); - void rockn2(machine_config &config); - void tetrisp2(machine_config &config); - void nndmseal(machine_config &config); - void rocknms(machine_config &config); - void rockn(machine_config &config); + void nndmseal_map(address_map &map); void rockn1_map(address_map &map); void rockn2_map(address_map &map); @@ -104,7 +113,6 @@ public: void rocknms_sub_map(address_map &map); void tetrisp2_map(address_map &map); -protected: virtual void machine_start() override { m_leds.resolve(); } required_device<cpu_device> m_maincpu; @@ -177,6 +185,14 @@ public: m_soundlatch(*this, "soundlatch") { } + void stepstag(machine_config &config); + void vjdash(machine_config &config); + + void init_stepstag(); + + DECLARE_VIDEO_START(stepstag); + +private: DECLARE_READ16_MEMBER(stepstag_coins_r); uint16_t vj_upload_idx; bool vj_upload_fini; @@ -194,21 +210,16 @@ public: DECLARE_WRITE16_MEMBER( stepstag_palette_mid_w ); DECLARE_WRITE16_MEMBER( stepstag_palette_right_w ); - void init_stepstag(); - DECLARE_VIDEO_START(stepstag); uint32_t screen_update_stepstag_left(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_stepstag_mid(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update_stepstag_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); uint32_t screen_update_stepstag_main(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); // inline int mypal(int x); - void stepstag(machine_config &config); - void vjdash(machine_config &config); - void stepstag_map(address_map &map); void stepstag_sub_map(address_map &map); void vjdash_map(address_map &map); -private: + required_shared_ptr<uint16_t> m_spriteram1; required_shared_ptr<uint16_t> m_spriteram3; optional_device<gfxdecode_device> m_vj_gfxdecode_l; |