From fc33a3716ee600ae040a2dcb3c5cc42f4f2fb288 Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Mon, 28 Jan 2013 15:00:44 +0000 Subject: (MESS) Tagmap lookup cleanup. (nw) --- src/mess/machine/comx_prn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mess/machine/comx_prn.c') diff --git a/src/mess/machine/comx_prn.c b/src/mess/machine/comx_prn.c index de2484a4c3f..1483a30c33f 100644 --- a/src/mess/machine/comx_prn.c +++ b/src/mess/machine/comx_prn.c @@ -92,7 +92,8 @@ machine_config_constructor comx_prn_device::device_mconfig_additions() const comx_prn_device::comx_prn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, COMX_PRN, "COMX-35 Printer Card", tag, owner, clock), device_comx_expansion_card_interface(mconfig, *this), - m_centronics(*this, CENTRONICS_TAG) + m_centronics(*this, CENTRONICS_TAG), + m_rom(*this, "c000") { } @@ -103,7 +104,6 @@ comx_prn_device::comx_prn_device(const machine_config &mconfig, const char *tag, void comx_prn_device::device_start() { - m_rom = memregion("c000")->base(); } @@ -126,7 +126,7 @@ UINT8 comx_prn_device::comx_mrd_r(address_space &space, offs_t offset, int *extr if (offset >= 0xc000 && offset < 0xe000) { - data = m_rom[offset & 0x1fff]; + data = m_rom->base()[offset & 0x1fff]; } return data; -- cgit v1.2.3-70-g09d2