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]
This commit is contained in:
arbee 2023-12-14 09:40:08 -05:00
parent 37bcac1179
commit e82ea152ab
5 changed files with 9 additions and 15 deletions

View File

@ -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)
{
}

View File

@ -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 <typename T> void set_onboard(T &&a1bus) { m_a1bus_finder.set_tag(std::forward<T>(a1bus)); m_a1bus_slottag = device().tag(); }
@ -128,7 +126,6 @@ private:
optional_device<a1bus_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

View File

@ -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)
{
}

View File

@ -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 <typename T> void set_onboard(T &&kim1bus) { m_kim1bus_finder.set_tag(std::forward<T>(kim1bus)); m_kim1bus_slottag = device().tag(); }
@ -128,7 +126,6 @@ private:
optional_device<kim1bus_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

View File

@ -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)