diff options
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 |
commit | fc33a3716ee600ae040a2dcb3c5cc42f4f2fb288 (patch) | |
tree | 3cf839eb16b187ba69880aa12ba38685db6ad3c4 /src/mess/machine/c64_sw8k.c | |
parent | 9cdbd18a0e66f9edb1d99994581b994db92d34dd (diff) |
(MESS) Tagmap lookup cleanup. (nw)
Diffstat (limited to 'src/mess/machine/c64_sw8k.c')
-rw-r--r-- | src/mess/machine/c64_sw8k.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mess/machine/c64_sw8k.c b/src/mess/machine/c64_sw8k.c index 33c9f459f87..ed1e2c893a5 100644 --- a/src/mess/machine/c64_sw8k.c +++ b/src/mess/machine/c64_sw8k.c @@ -74,7 +74,8 @@ ioport_constructor c64_switchable_8k_cartridge_device::device_input_ports() cons c64_switchable_8k_cartridge_device::c64_switchable_8k_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_SW8K, "C64 Switchable 8K cartridge", tag, owner, clock), - device_c64_expansion_card_interface(mconfig, *this) + device_c64_expansion_card_interface(mconfig, *this), + m_sw(*this, "SW") { } @@ -94,7 +95,7 @@ void c64_switchable_8k_cartridge_device::device_start() void c64_switchable_8k_cartridge_device::device_reset() { - m_bank = ioport("SW")->read(); + m_bank = m_sw->read(); } |