diff --git a/src/mame/drivers/taitojc.c b/src/mame/drivers/taitojc.c index be6d6db1dca..086a83946d1 100644 --- a/src/mame/drivers/taitojc.c +++ b/src/mame/drivers/taitojc.c @@ -601,7 +601,6 @@ READ8_MEMBER(taitojc_state::jc_pcbid_r) READ32_MEMBER(taitojc_state::dsp_shared_r) { - return m_dsp_shared_ram[offset] << 16; } @@ -911,8 +910,7 @@ ADDRESS_MAP_END READ16_MEMBER(taitojc_state::dsp_rom_r) { - UINT16 *rom = (UINT16*)machine().root_device().memregion("gfx2")->base(); - UINT16 data = rom[m_dsp_rom_pos++]; + UINT16 data = ((UINT16*)m_gfx2->base())[m_dsp_rom_pos++]; //mame_printf_debug("dsp_rom_r: %08X, %08X at %08X\n", offset, mem_mask, cpu_get_pc(&space.device())); return data; diff --git a/src/mame/includes/taitojc.h b/src/mame/includes/taitojc.h index 789a36c880e..5b8835a1530 100644 --- a/src/mame/includes/taitojc.h +++ b/src/mame/includes/taitojc.h @@ -7,6 +7,7 @@ public: : driver_device(mconfig, type, tag), m_maincpu(*this,"maincpu"), m_dsp(*this,"dsp"), + m_gfx2(*this, "gfx2"), m_vram(*this, "vram"), m_objlist(*this, "objlist"), m_snd_shared_ram(*this, "snd_shared"), @@ -48,6 +49,8 @@ public: required_device m_maincpu; required_device m_dsp; + required_memory_region m_gfx2; + required_shared_ptr m_vram; required_shared_ptr m_objlist; optional_shared_ptr m_snd_shared_ram;