diff options
Diffstat (limited to 'src/mame/video/decodmd1.cpp')
-rw-r--r-- | src/mame/video/decodmd1.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/video/decodmd1.cpp b/src/mame/video/decodmd1.cpp index bbdd211ea5a..1553fcbb137 100644 --- a/src/mame/video/decodmd1.cpp +++ b/src/mame/video/decodmd1.cpp @@ -230,6 +230,7 @@ decodmd_type1_device::decodmd_type1_device(const machine_config &mconfig, const , m_rombank2(*this, "dmdbank2") , m_ram(*this, RAM_TAG) , m_bitlatch(*this, "bitlatch") + , m_rom(*this, finder_base::DUMMY_TAG) {} void decodmd_type1_device::device_start() @@ -239,16 +240,13 @@ void decodmd_type1_device::device_start() void decodmd_type1_device::device_reset() { - uint8_t* ROM; uint8_t* RAM = m_ram->pointer(); - m_rom = memregion(m_gfxtag); memset(RAM,0,0x2000); memset(m_pixels,0,0x200*sizeof(uint32_t)); - ROM = m_rom->base(); - m_rombank1->configure_entries(0, 8, &ROM[0x0000], 0x4000); - m_rombank2->configure_entry(0, &ROM[0x1c000]); + m_rombank1->configure_entries(0, 8, &m_rom[0x0000], 0x4000); + m_rombank2->configure_entry(0, &m_rom[0x1c000]); m_rombank1->set_entry(0); m_rombank2->set_entry(0); m_status = 0; |