mirror of
https://github.com/holub/mame
synced 2025-04-29 11:30:28 +03:00
svga_tseng.cpp: move memory mappings to remap routine (nw)
This commit is contained in:
parent
fc9ac2e417
commit
ca544ca03e
@ -73,9 +73,9 @@ void isa8_svga_et4k_device::device_start()
|
|||||||
|
|
||||||
m_vga = subdevice<tseng_vga_device>("vga");
|
m_vga = subdevice<tseng_vga_device>("vga");
|
||||||
|
|
||||||
m_isa->install_rom(this, 0xc0000, 0xc7fff, "et4000", "et4000");
|
|
||||||
map_io();
|
map_io();
|
||||||
map_ram();
|
map_ram();
|
||||||
|
map_rom();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@ -87,14 +87,19 @@ void isa8_svga_et4k_device::device_reset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// remap - remap ram since something
|
// remap - remap ram/io since something
|
||||||
// could have unmapped it
|
// could have unmapped it
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void isa8_svga_et4k_device::remap(int space_id, offs_t start, offs_t end)
|
void isa8_svga_et4k_device::remap(int space_id, offs_t start, offs_t end)
|
||||||
{
|
{
|
||||||
if (space_id == AS_PROGRAM)
|
if (space_id == AS_PROGRAM)
|
||||||
|
{
|
||||||
map_ram();
|
map_ram();
|
||||||
|
map_rom();
|
||||||
|
}
|
||||||
|
else if (space_id == AS_IO)
|
||||||
|
map_io();
|
||||||
}
|
}
|
||||||
|
|
||||||
void isa8_svga_et4k_device::map_io()
|
void isa8_svga_et4k_device::map_io()
|
||||||
@ -108,3 +113,8 @@ void isa8_svga_et4k_device::map_ram()
|
|||||||
{
|
{
|
||||||
m_isa->install_memory(0xa0000, 0xbffff, read8_delegate(FUNC(tseng_vga_device::mem_r), m_vga), write8_delegate(FUNC(tseng_vga_device::mem_w), m_vga));
|
m_isa->install_memory(0xa0000, 0xbffff, read8_delegate(FUNC(tseng_vga_device::mem_r), m_vga), write8_delegate(FUNC(tseng_vga_device::mem_w), m_vga));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void isa8_svga_et4k_device::map_rom()
|
||||||
|
{
|
||||||
|
m_isa->install_rom(this, 0xc0000, 0xc7fff, "et4000", "et4000");
|
||||||
|
}
|
||||||
|
@ -38,6 +38,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
void map_io();
|
void map_io();
|
||||||
void map_ram();
|
void map_ram();
|
||||||
|
void map_rom();
|
||||||
tseng_vga_device *m_vga;
|
tseng_vga_device *m_vga;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user