summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/comx_prn.c
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2013-01-28 15:00:44 +0000
committer Curt Coder <curtcoder@mail.com>2013-01-28 15:00:44 +0000
commitfc33a3716ee600ae040a2dcb3c5cc42f4f2fb288 (patch)
tree3cf839eb16b187ba69880aa12ba38685db6ad3c4 /src/mess/machine/comx_prn.c
parent9cdbd18a0e66f9edb1d99994581b994db92d34dd (diff)
(MESS) Tagmap lookup cleanup. (nw)
Diffstat (limited to 'src/mess/machine/comx_prn.c')
-rw-r--r--src/mess/machine/comx_prn.c6
1 files changed, 3 insertions, 3 deletions
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;