summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/comx_epr.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_epr.c
parent9cdbd18a0e66f9edb1d99994581b994db92d34dd (diff)
(MESS) Tagmap lookup cleanup. (nw)
Diffstat (limited to 'src/mess/machine/comx_epr.c')
-rw-r--r--src/mess/machine/comx_epr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mess/machine/comx_epr.c b/src/mess/machine/comx_epr.c
index 02c5eb3cd75..60f81516b91 100644
--- a/src/mess/machine/comx_epr.c
+++ b/src/mess/machine/comx_epr.c
@@ -60,6 +60,8 @@ const rom_entry *comx_epr_device::device_rom_region() const
comx_epr_device::comx_epr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, COMX_EPR, "COMX-35 F&M EPROM Switchboard", tag, owner, clock),
device_comx_expansion_card_interface(mconfig, *this),
+ m_rom(*this, "f800"),
+ m_eprom(*this, "eprom"),
m_select(0)
{
}
@@ -71,9 +73,6 @@ comx_epr_device::comx_epr_device(const machine_config &mconfig, const char *tag,
void comx_epr_device::device_start()
{
- m_rom = memregion("f800")->base();
- m_eprom = memregion("eprom")->base();
-
// state saving
save_item(NAME(m_select));
}
@@ -99,11 +98,11 @@ UINT8 comx_epr_device::comx_mrd_r(address_space &space, offs_t offset, int *extr
if (offset >= 0xc000 && offset < 0xe000)
{
offs_t address = (m_select << 13) | (offset & 0x1fff);
- data = m_eprom[address];
+ data = m_eprom->base()[address];
}
else if (offset >= 0xf800)
{
- data = m_rom[offset & 0x7ff];
+ data = m_rom->base()[offset & 0x7ff];
}
return data;