summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/a2bus/a2zipdrive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/a2bus/a2zipdrive.cpp')
-rw-r--r--src/devices/bus/a2bus/a2zipdrive.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/bus/a2bus/a2zipdrive.cpp b/src/devices/bus/a2bus/a2zipdrive.cpp
index 38861a06ac4..15620d5f951 100644
--- a/src/devices/bus/a2bus/a2zipdrive.cpp
+++ b/src/devices/bus/a2bus/a2zipdrive.cpp
@@ -81,9 +81,6 @@ a2bus_zipdrive_device::a2bus_zipdrive_device(const machine_config &mconfig, cons
void a2bus_zipdrivebase_device::device_start()
{
- // set_a2bus_device makes m_slot valid
- set_a2bus_device();
-
m_rom = device().machine().root_device().memregion(this->subtag(ZIPDRIVE_ROM_REGION).c_str())->base();
save_item(NAME(m_lastdata));
@@ -174,7 +171,7 @@ void a2bus_zipdrivebase_device::write_c0nx(uint8_t offset, uint8_t data)
uint8_t a2bus_zipdrivebase_device::read_cnxx(uint8_t offset)
{
- int slotimg = m_slot * 0x100;
+ int const slotimg = slotno() * 0x100;
// ROM contains CnXX images for each of slots 1-7 at 0x0 and 0x1000
return m_rom[offset+slotimg+0x1000];