From e82ea152abea5e003ebdd677cd043d295a297def Mon Sep 17 00:00:00 2001 From: arbee Date: Thu, 14 Dec 2023 09:40:08 -0500 Subject: bus/a1bus: Remove unused linked list [R. Belmont] bus/kim1: Remove unused linked list [R. Belmont] commodore/kim1.cpp: Cleaned up memory mirroring [R. Belmont] --- src/devices/bus/a1bus/a1bus.cpp | 2 +- src/devices/bus/a1bus/a1bus.h | 3 --- src/devices/bus/kim1/kim1bus.cpp | 2 +- src/devices/bus/kim1/kim1bus.h | 3 --- src/mame/commodore/kim1.cpp | 14 +++++++------- 5 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/devices/bus/a1bus/a1bus.cpp b/src/devices/bus/a1bus/a1bus.cpp index f8036fa2be9..5386f185897 100644 --- a/src/devices/bus/a1bus/a1bus.cpp +++ b/src/devices/bus/a1bus/a1bus.cpp @@ -152,7 +152,7 @@ void a1bus_device::nmi_w(int state) { m_out_nmi_cb(state); } device_a1bus_card_interface::device_a1bus_card_interface(const machine_config &mconfig, device_t &device) : device_interface(device, "a1bus") , m_a1bus_finder(device, finder_base::DUMMY_TAG), m_a1bus(nullptr) - , m_a1bus_slottag(nullptr), m_next(nullptr) + , m_a1bus_slottag(nullptr) { } diff --git a/src/devices/bus/a1bus/a1bus.h b/src/devices/bus/a1bus/a1bus.h index e012c589f02..a5c1e98db9b 100644 --- a/src/devices/bus/a1bus/a1bus.h +++ b/src/devices/bus/a1bus/a1bus.h @@ -104,8 +104,6 @@ public: // construction/destruction virtual ~device_a1bus_card_interface(); - device_a1bus_card_interface *next() const { return m_next; } - // inline configuration void set_a1bus(a1bus_device *a1bus, const char *slottag) { m_a1bus = a1bus; m_a1bus_slottag = slottag; } template void set_onboard(T &&a1bus) { m_a1bus_finder.set_tag(std::forward(a1bus)); m_a1bus_slottag = device().tag(); } @@ -128,7 +126,6 @@ private: optional_device m_a1bus_finder; a1bus_device *m_a1bus; const char *m_a1bus_slottag; - device_a1bus_card_interface *m_next; }; #endif // MAME_BUS_A1BUS_A1BUS_H diff --git a/src/devices/bus/kim1/kim1bus.cpp b/src/devices/bus/kim1/kim1bus.cpp index 1d6ab336136..5c18fe5f8b1 100644 --- a/src/devices/bus/kim1/kim1bus.cpp +++ b/src/devices/bus/kim1/kim1bus.cpp @@ -139,7 +139,7 @@ void kim1bus_device::nmi_w(int state) { m_out_nmi_cb(state); } device_kim1bus_card_interface::device_kim1bus_card_interface(const machine_config &mconfig, device_t &device) : device_interface(device, "kim1bus") , m_kim1bus_finder(device, finder_base::DUMMY_TAG), m_kim1bus(nullptr) - , m_kim1bus_slottag(nullptr), m_next(nullptr) + , m_kim1bus_slottag(nullptr) { } diff --git a/src/devices/bus/kim1/kim1bus.h b/src/devices/bus/kim1/kim1bus.h index 252e41c3a6f..2512654c196 100644 --- a/src/devices/bus/kim1/kim1bus.h +++ b/src/devices/bus/kim1/kim1bus.h @@ -104,8 +104,6 @@ public: // construction/destruction virtual ~device_kim1bus_card_interface(); - device_kim1bus_card_interface *next() const { return m_next; } - // inline configuration void set_kim1bus(kim1bus_device *kim1bus, const char *slottag) { m_kim1bus = kim1bus; m_kim1bus_slottag = slottag; } template void set_onboard(T &&kim1bus) { m_kim1bus_finder.set_tag(std::forward(kim1bus)); m_kim1bus_slottag = device().tag(); } @@ -128,7 +126,6 @@ private: optional_device m_kim1bus_finder; kim1bus_device *m_kim1bus; const char *m_kim1bus_slottag; - device_kim1bus_card_interface *m_next; }; #endif // MAME_BUS_KIM1_KIM1BUS_H diff --git a/src/mame/commodore/kim1.cpp b/src/mame/commodore/kim1.cpp index df4c7c6d5e7..1f425eb536d 100644 --- a/src/mame/commodore/kim1.cpp +++ b/src/mame/commodore/kim1.cpp @@ -252,13 +252,13 @@ TIMER_DEVICE_CALLBACK_MEMBER(kim1_state::cassette_input) void kim1_state::mem_map(address_map &map) { - map(0x0000, 0x03ff).ram().mirror(0xe000); - map(0x1700, 0x170f).mirror(0x0030).m(m_miot[1], FUNC(mos6530_device::io_map)).mirror(0xe000); - map(0x1740, 0x174f).mirror(0x0030).m(m_miot[0], FUNC(mos6530_device::io_map)).mirror(0xe000); - map(0x1780, 0x17bf).m(m_miot[1], FUNC(mos6530_device::ram_map)).mirror(0xe000); - map(0x17c0, 0x17ff).m(m_miot[0], FUNC(mos6530_device::ram_map)).mirror(0xe000); - map(0x1800, 0x1bff).m(m_miot[1], FUNC(mos6530_device::rom_map)).mirror(0xe000); - map(0x1c00, 0x1fff).m(m_miot[0], FUNC(mos6530_device::rom_map)).mirror(0xe000); + map(0x0000, 0x03ff).mirror(0xe000).ram(); + map(0x1700, 0x170f).mirror(0xe030).m(m_miot[1], FUNC(mos6530_device::io_map)); + map(0x1740, 0x174f).mirror(0xe030).m(m_miot[0], FUNC(mos6530_device::io_map)); + map(0x1780, 0x17bf).mirror(0xe000).m(m_miot[1], FUNC(mos6530_device::ram_map)); + map(0x17c0, 0x17ff).mirror(0xe000).m(m_miot[0], FUNC(mos6530_device::ram_map)); + map(0x1800, 0x1bff).mirror(0xe000).m(m_miot[1], FUNC(mos6530_device::rom_map)); + map(0x1c00, 0x1fff).mirror(0xe000).m(m_miot[0], FUNC(mos6530_device::rom_map)); } void kim1_state::sync_map(address_map &map) -- cgit v1.2.3