summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/m20_8086.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/m20_8086.cpp')
-rw-r--r--src/mame/machine/m20_8086.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/machine/m20_8086.cpp b/src/mame/machine/m20_8086.cpp
index 09c9eb132fd..a054094198c 100644
--- a/src/mame/machine/m20_8086.cpp
+++ b/src/mame/machine/m20_8086.cpp
@@ -43,17 +43,19 @@ const tiny_rom_entry *m20_8086_device::device_rom_region() const
return ROM_NAME( m20_8086 );
}
-ADDRESS_MAP_START(m20_8086_device::i86_prog)
- AM_RANGE(0xe0000, 0xe3fff) AM_RAMBANK("vram2")
- AM_RANGE(0xf0000, 0xf3fff) AM_RAMBANK("highram")
- AM_RANGE(0xf4000, 0xf7fff) AM_RAMBANK("vram")
- AM_RANGE(0xfc000, 0xfffff) AM_ROM AM_REGION("8086",0)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(m20_8086_device::i86_io)
- AM_RANGE(0x4000, 0x4fff) AM_READWRITE(z8000_io_r, z8000_io_w)
- AM_RANGE(0x7ffa, 0x7ffd) AM_WRITE(handshake_w)
-ADDRESS_MAP_END
+void m20_8086_device::i86_prog(address_map &map)
+{
+ map(0xe0000, 0xe3fff).bankrw("vram2");
+ map(0xf0000, 0xf3fff).bankrw("highram");
+ map(0xf4000, 0xf7fff).bankrw("vram");
+ map(0xfc000, 0xfffff).rom().region("8086", 0);
+}
+
+void m20_8086_device::i86_io(address_map &map)
+{
+ map(0x4000, 0x4fff).rw(this, FUNC(m20_8086_device::z8000_io_r), FUNC(m20_8086_device::z8000_io_w));
+ map(0x7ffa, 0x7ffd).w(this, FUNC(m20_8086_device::handshake_w));
+}
MACHINE_CONFIG_START(m20_8086_device::device_add_mconfig)
MCFG_CPU_ADD("8086", I8086, XTAL(24'000'000)/3)