From 5314734d228409413e06964408c2acb313e963c7 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 11 Nov 2018 11:03:27 +0100 Subject: tecmo.cpp: fixed backfirt missing sound regression (nw) --- src/mame/drivers/tecmo.cpp | 12 ++++++++---- src/mame/includes/tecmo.h | 10 ++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/mame/drivers/tecmo.cpp b/src/mame/drivers/tecmo.cpp index bd94d142dc4..c8e87f7b8b0 100644 --- a/src/mame/drivers/tecmo.cpp +++ b/src/mame/drivers/tecmo.cpp @@ -244,11 +244,15 @@ void tecmo_state::silkwormp_sound_map(address_map &map) map(0xcc00, 0xcc00).w("soundlatch", FUNC(generic_latch_8_device::acknowledge_w)); } -void tecmo_state::tecmo_sound_map(address_map &map) +void tecmo_state::backfirt_sound_map(address_map &map) { silkwormp_sound_map(map); - map(0x2000, 0x207f).ram(); /* Silkworm set #2 has a custom CPU which */ - /* writes code to this area */ + map(0x2000, 0x207f).ram(); // Silkworm set #2 has a custom CPU which writes code to this area +} + +void tecmo_state::tecmo_sound_map(address_map &map) +{ + backfirt_sound_map(map); map(0xc000, 0xc000).w(FUNC(tecmo_state::adpcm_start_w)); map(0xc400, 0xc400).w(FUNC(tecmo_state::adpcm_end_w)); map(0xc800, 0xc800).w(FUNC(tecmo_state::adpcm_vol_w)); @@ -778,7 +782,7 @@ MACHINE_CONFIG_START(tecmo_state::backfirt) /* this pcb has no MSM5205 */ MCFG_DEVICE_REMOVE("msm") MCFG_DEVICE_MODIFY("soundcpu") - MCFG_DEVICE_PROGRAM_MAP(silkwormp_sound_map) + MCFG_DEVICE_PROGRAM_MAP(backfirt_sound_map) MACHINE_CONFIG_END MACHINE_CONFIG_START(tecmo_state::silkwormp) diff --git a/src/mame/includes/tecmo.h b/src/mame/includes/tecmo.h index 6bd860cc9d6..4693b0cf307 100644 --- a/src/mame/includes/tecmo.h +++ b/src/mame/includes/tecmo.h @@ -38,6 +38,11 @@ public: void init_rygar(); void init_gemini(); +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + virtual void video_start() override; + private: required_device m_maincpu; required_device m_soundcpu; @@ -87,10 +92,6 @@ private: TILE_GET_INFO_MEMBER(gemini_get_fg_tile_info); TILE_GET_INFO_MEMBER(get_tx_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void gemini_map(address_map &map); @@ -99,4 +100,5 @@ private: void silkworm_map(address_map &map); void tecmo_sound_map(address_map &map); void silkwormp_sound_map(address_map &map); + void backfirt_sound_map(address_map &map); }; -- cgit v1.2.3