summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pdp11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pdp11.cpp')
-rw-r--r--src/mame/drivers/pdp11.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/mame/drivers/pdp11.cpp b/src/mame/drivers/pdp11.cpp
index 526e5d967d4..20be653321a 100644
--- a/src/mame/drivers/pdp11.cpp
+++ b/src/mame/drivers/pdp11.cpp
@@ -161,21 +161,23 @@ WRITE16_MEMBER(pdp11_state::teletype_ctrl_w)
}
}
-ADDRESS_MAP_START(pdp11_state::pdp11_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE( 0x0000, 0xdfff ) AM_RAM // RAM
- AM_RANGE( 0xea00, 0xfeff ) AM_ROM
- AM_RANGE( 0xff70, 0xff77 ) AM_READWRITE(teletype_ctrl_r,teletype_ctrl_w)
-
- AM_RANGE( 0xfe78, 0xfe7b ) AM_DEVWRITE("rx01", rx01_device, write)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(pdp11_state::pdp11qb_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE( 0x0000, 0xe9ff ) AM_RAM // RAM
- AM_RANGE( 0xea00, 0xefff ) AM_ROM
- AM_RANGE( 0xf000, 0xffff ) AM_RAM
-ADDRESS_MAP_END
+void pdp11_state::pdp11_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0xdfff).ram(); // RAM
+ map(0xea00, 0xfeff).rom();
+ map(0xff70, 0xff77).rw(this, FUNC(pdp11_state::teletype_ctrl_r), FUNC(pdp11_state::teletype_ctrl_w));
+
+ map(0xfe78, 0xfe7b).w("rx01", FUNC(rx01_device::write));
+}
+
+void pdp11_state::pdp11qb_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0xe9ff).ram(); // RAM
+ map(0xea00, 0xefff).rom();
+ map(0xf000, 0xffff).ram();
+}
#define M9312_PORT_CONFSETTING \
PORT_CONFSETTING ( 0x00, "'DL' BOOT prom for RL11 controller") \
span>1-1/+1 * coolpool.cpp : Remove unused values cam9002018-04-071-3/+0 * coolpool.cpp : Add generic_latch_16_device for cpu-dsp communications, Split ... cam9002018-04-071-16/+18 * Address maps macros removal, pass 1 [O. Galibert] Olivier Galibert2018-03-141-1/+1 * API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-121-0/+7 * API Change: Machine configs are now a method of the owner class, and the prot... Olivier Galibert2018-01-171-0/+3 * Remove timer_device from emu.h and move it out of src/emu (nw) AJR2017-10-011-0/+1 * Remove emu.h from headers (nw) Olivier Galibert2017-02-111-1/+0 * NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-15/+15 * DAC WIP, started documenting the DACs in use. [smf] smf-2016-10-171-4/+4 * tms32010.cpp: devcb instead of memory map for bio line (nw) Ivan Vangelista2016-06-231-1/+1 * reverting: Miodrag Milanovic2016-01-201-1/+1 * tags are now strings (nw) Miodrag Milanovic2016-01-161-1/+1 * Cleanups and version bumpmame0155 Miodrag Milanovic2014-10-151-2/+2 * misc drivers: Moved functions into driver class, cleanups (nw) Ivan Vangelista2014-10-041-0/+1 * Moved misc functions into driver classes and small cleanups(nw)