From 4f2ea61a04ccd9aee34723f7d8adba6f968675fb Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 30 Oct 2023 07:49:28 -0400 Subject: xt446: Assign address maps to correct space numbers (fixes validation errors) --- src/devices/sound/xt446.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/sound/xt446.cpp b/src/devices/sound/xt446.cpp index 06e5326371c..209c61d932f 100644 --- a/src/devices/sound/xt446.cpp +++ b/src/devices/sound/xt446.cpp @@ -73,7 +73,7 @@ void xt446_device::swp30_map(address_map &map) void xt446_device::device_add_mconfig(machine_config &config) { H8S2655(config, m_maincpu, 16_MHz_XTAL); - m_maincpu->set_addrmap(AS_DATA, &xt446_device::xt446_map); + m_maincpu->set_addrmap(AS_PROGRAM, &xt446_device::xt446_map); m_maincpu->read_adc<0>().set_constant(0); m_maincpu->read_adc<1>().set_constant(0); m_maincpu->read_adc<2>().set_constant(0); @@ -84,7 +84,7 @@ void xt446_device::device_add_mconfig(machine_config &config) m_maincpu->read_adc<7>().set_constant(0x200); SWP30(config, m_swp30); - m_swp30->set_addrmap(0, &xt446_device::swp30_map); + m_swp30->set_addrmap(AS_DATA, &xt446_device::swp30_map); m_swp30->add_route(0, *this, 1.0, AUTO_ALLOC_INPUT, 0); m_swp30->add_route(1, *this, 1.0, AUTO_ALLOC_INPUT, 1); } -- cgit v1.2.3