mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +03:00
isa/svga_cirrus: preliminary remap callback for gd542x
This commit is contained in:
parent
9384c347f7
commit
1e10fcb16a
@ -353,7 +353,17 @@ void isa16_svga_cirrus_gd542x_device::device_start()
|
||||
|
||||
m_isa->install_memory(0xa0000, 0xbffff, read8sm_delegate(*m_vga, FUNC(cirrus_gd5428_device::mem_r)), write8sm_delegate(*m_vga, FUNC(cirrus_gd5428_device::mem_w)));
|
||||
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_svga_cirrus_gd542x_device::io_isa_map);
|
||||
}
|
||||
|
||||
void isa16_svga_cirrus_gd542x_device::remap(int space_id, offs_t start, offs_t end)
|
||||
{
|
||||
if (space_id == AS_PROGRAM)
|
||||
{
|
||||
m_isa->install_memory(0xa0000, 0xbffff, read8sm_delegate(*m_vga, FUNC(cirrus_gd5428_device::mem_r)), write8sm_delegate(*m_vga, FUNC(cirrus_gd5428_device::mem_w)));
|
||||
m_isa->install_rom(this, 0xc0000, 0xc7fff, "clgd542x");
|
||||
}
|
||||
else if (space_id == AS_IO)
|
||||
m_isa->install_device(0x03b0, 0x03df, *this, &isa16_svga_cirrus_gd542x_device::io_isa_map);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -47,6 +47,7 @@ public:
|
||||
|
||||
uint8_t input_port_0_r();
|
||||
|
||||
virtual void remap(int space_id, offs_t start, offs_t end) override;
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
|
Loading…
Reference in New Issue
Block a user