mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
dimemory: Make validity checker warn about configured maps for nonexistent spaces (nw)
This commit is contained in:
parent
973e4112f3
commit
775ffe871a
@ -94,7 +94,7 @@ void device_memory_interface::interface_config_complete()
|
||||
void device_memory_interface::interface_validity_check(validity_checker &valid) const
|
||||
{
|
||||
// loop over all address spaces
|
||||
for (int spacenum = 0; spacenum < int(m_address_config.size()); ++spacenum)
|
||||
for (int spacenum = 0; spacenum < int(m_address_map.size()); ++spacenum)
|
||||
{
|
||||
if (space_config(spacenum))
|
||||
{
|
||||
@ -104,5 +104,7 @@ void device_memory_interface::interface_validity_check(validity_checker &valid)
|
||||
// let the map check itself
|
||||
addrmap.map_validity_check(valid, spacenum);
|
||||
}
|
||||
else if (!m_address_map[spacenum].isnull())
|
||||
osd_printf_warning("Map configured for nonexistent memory space %d\n", spacenum);
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,6 @@ private:
|
||||
void null_kbd_put(u8 data);
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<generic_terminal_device> m_terminal;
|
||||
void hd63701_main_io(address_map &map);
|
||||
void hd63701_main_mem(address_map &map);
|
||||
};
|
||||
|
||||
@ -347,11 +346,6 @@ void rvoice_state::hd63701_main_mem(address_map &map)
|
||||
map(0x8000, 0xffff).rom(); // 27512 EPROM
|
||||
}
|
||||
|
||||
void rvoice_state::hd63701_main_io(address_map &map)
|
||||
{
|
||||
map.unmap_value_high();
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
Input Ports
|
||||
@ -370,7 +364,6 @@ MACHINE_CONFIG_START(rvoice_state::rvoicepc)
|
||||
/* basic machine hardware */
|
||||
MCFG_DEVICE_ADD("maincpu", HD63701, XTAL(7'372'800))
|
||||
MCFG_DEVICE_PROGRAM_MAP(hd63701_main_mem)
|
||||
MCFG_DEVICE_IO_MAP(hd63701_main_io)
|
||||
|
||||
//MCFG_DEVICE_ADD("playercpu", HD63701, XTAL(7'372'800)) // not dumped yet
|
||||
//MCFG_DEVICE_PROGRAM_MAP(hd63701_slave_mem)
|
||||
|
Loading…
Reference in New Issue
Block a user