tecmo.cpp: fixed backfirt missing sound regression (nw)

This commit is contained in:
Ivan Vangelista 2018-11-11 11:03:27 +01:00
parent d144671cbc
commit 5314734d22
2 changed files with 14 additions and 8 deletions

View File

@ -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)); 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); silkwormp_sound_map(map);
map(0x2000, 0x207f).ram(); /* Silkworm set #2 has a custom CPU which */ map(0x2000, 0x207f).ram(); // Silkworm set #2 has a custom CPU which writes code to this area
/* 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(0xc000, 0xc000).w(FUNC(tecmo_state::adpcm_start_w));
map(0xc400, 0xc400).w(FUNC(tecmo_state::adpcm_end_w)); map(0xc400, 0xc400).w(FUNC(tecmo_state::adpcm_end_w));
map(0xc800, 0xc800).w(FUNC(tecmo_state::adpcm_vol_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 */ /* this pcb has no MSM5205 */
MCFG_DEVICE_REMOVE("msm") MCFG_DEVICE_REMOVE("msm")
MCFG_DEVICE_MODIFY("soundcpu") MCFG_DEVICE_MODIFY("soundcpu")
MCFG_DEVICE_PROGRAM_MAP(silkwormp_sound_map) MCFG_DEVICE_PROGRAM_MAP(backfirt_sound_map)
MACHINE_CONFIG_END MACHINE_CONFIG_END
MACHINE_CONFIG_START(tecmo_state::silkwormp) MACHINE_CONFIG_START(tecmo_state::silkwormp)

View File

@ -38,6 +38,11 @@ public:
void init_rygar(); void init_rygar();
void init_gemini(); void init_gemini();
protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
private: private:
required_device<cpu_device> m_maincpu; required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu; required_device<cpu_device> m_soundcpu;
@ -87,10 +92,6 @@ private:
TILE_GET_INFO_MEMBER(gemini_get_fg_tile_info); TILE_GET_INFO_MEMBER(gemini_get_fg_tile_info);
TILE_GET_INFO_MEMBER(get_tx_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); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void gemini_map(address_map &map); void gemini_map(address_map &map);
@ -99,4 +100,5 @@ private:
void silkworm_map(address_map &map); void silkworm_map(address_map &map);
void tecmo_sound_map(address_map &map); void tecmo_sound_map(address_map &map);
void silkwormp_sound_map(address_map &map); void silkwormp_sound_map(address_map &map);
void backfirt_sound_map(address_map &map);
}; };