tsconf: zxbus tidy

This commit is contained in:
Andrei Holub 2025-03-28 20:08:58 -04:00
parent 1826712d68
commit ef6fb57117
3 changed files with 6 additions and 15 deletions

View File

@ -79,13 +79,6 @@ void tsconf_state::tsconf_mem(address_map &map)
}
void tsconf_state::tsconf_io(address_map &map)
{
map(0x0000, 0xffff).lrw8(
NAME([this](offs_t offset) { return m_ioext.read_byte((m_beta->dos_io_r() << 16) | offset); }),
NAME([this](offs_t offset, u8 data) { m_ioext.write_byte((m_beta->dos_io_r() << 16) | offset, data); }));
}
void tsconf_state::tsconf_ioext(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x0000).mirror(0x7ffd).w(FUNC(tsconf_state::tsconf_port_7ffd_w));
@ -104,9 +97,12 @@ void tsconf_state::tsconf_ioext(address_map &map)
map(0xc0fd, 0xc0fd).mirror(0x3f00).lr8(NAME([this]() { return m_ay[m_ay_selected]->data_r(); }))
.w(FUNC(tsconf_state::tsconf_ay_address_w));
// IO: Shadow
map(0x0000, 0xffff).view(m_io_shadow_view);
m_io_shadow_view[0](0x0000, 0xffff).m(m_beta, FUNC(tsconf_beta_device::tsconf_beta_io));
m_io_shadow_view[0]; // !Shadow
// IO: Shadow
m_io_shadow_view[1](0x0000, 0xffff).m(m_beta, FUNC(tsconf_beta_device::tsconf_beta_io));
subdevice<zxbus_device>("zxbus")->set_io_space(m_io_shadow_view[0], m_io_shadow_view[1]);
}
void tsconf_state::tsconf_switch(address_map &map)

View File

@ -200,7 +200,6 @@ private:
u8 beta_disable_r(offs_t offset);
void tsconf_io(address_map &map) ATTR_COLD;
void tsconf_ioext(address_map &map) ATTR_COLD;
void tsconf_mem(address_map &map) ATTR_COLD;
void tsconf_switch(address_map &map) ATTR_COLD;

View File

@ -73,11 +73,7 @@ void tsconf_state::tsconf_update_bank0()
void tsconf_state::update_io(int dos)
{
if (dos)
m_io_shadow_view.select(0);
else
m_io_shadow_view.disable();
m_io_shadow_view.select(dos ? 1 : 0);
tsconf_update_bank0();
}