summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/apogee.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-03-13 07:36:43 +0100
committer Olivier Galibert <galibert@pobox.com>2018-03-14 14:07:14 +0100
commit115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch)
treef0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/apogee.cpp
parentf155992daab88ad024cec995428a67108218b51d (diff)
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/apogee.cpp')
-rw-r--r--src/mame/drivers/apogee.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mame/drivers/apogee.cpp b/src/mame/drivers/apogee.cpp
index 707632de396..fc6c6e7f398 100644
--- a/src/mame/drivers/apogee.cpp
+++ b/src/mame/drivers/apogee.cpp
@@ -48,16 +48,17 @@ public:
/* Address maps */
-ADDRESS_MAP_START(apogee_state::apogee_mem)
- AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK("bank1") // First bank
- AM_RANGE( 0x1000, 0xebff ) AM_RAM // RAM
- AM_RANGE( 0xec00, 0xec03 ) AM_DEVREADWRITE("pit8253", pit8253_device, read, write) AM_MIRROR(0x00fc)
- AM_RANGE( 0xed00, 0xed03 ) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write) AM_MIRROR(0x00fc)
+void apogee_state::apogee_mem(address_map &map)
+{
+ map(0x0000, 0x0fff).bankrw("bank1"); // First bank
+ map(0x1000, 0xebff).ram(); // RAM
+ map(0xec00, 0xec03).rw("pit8253", FUNC(pit8253_device::read), FUNC(pit8253_device::write)).mirror(0x00fc);
+ map(0xed00, 0xed03).rw(m_ppi8255_1, FUNC(i8255_device::read), FUNC(i8255_device::write)).mirror(0x00fc);
//AM_RANGE( 0xee00, 0xee03 ) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) AM_MIRROR(0x00fc)
- AM_RANGE( 0xef00, 0xef01 ) AM_DEVREADWRITE("i8275", i8275_device, read, write) AM_MIRROR(0x00fe) // video
- AM_RANGE( 0xf000, 0xf0ff ) AM_DEVWRITE("dma8257", i8257_device, write) // DMA
- AM_RANGE( 0xf000, 0xffff ) AM_ROM // System ROM
-ADDRESS_MAP_END
+ map(0xef00, 0xef01).rw("i8275", FUNC(i8275_device::read), FUNC(i8275_device::write)).mirror(0x00fe); // video
+ map(0xf000, 0xf0ff).w(m_dma8257, FUNC(i8257_device::write)); // DMA
+ map(0xf000, 0xffff).rom(); // System ROM
+}
/* Input ports */
static INPUT_PORTS_START( apogee )