summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/osbexec.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/osbexec.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible soon.
Diffstat (limited to 'src/mame/drivers/osbexec.cpp')
-rw-r--r--src/mame/drivers/osbexec.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/osbexec.cpp b/src/mame/drivers/osbexec.cpp
index b142649085c..f34a69aaf34 100644
--- a/src/mame/drivers/osbexec.cpp
+++ b/src/mame/drivers/osbexec.cpp
@@ -127,6 +127,8 @@ public:
DECLARE_WRITE_LINE_MEMBER(modem_ri_w);
DECLARE_WRITE_LINE_MEMBER(comm_clk_a_w);
void osbexec(machine_config &config);
+ void osbexec_io(address_map &map);
+ void osbexec_mem(address_map &map);
};
@@ -207,7 +209,7 @@ READ8_MEMBER(osbexec_state::osbexec_rtc_r)
}
-static ADDRESS_MAP_START( osbexec_mem, AS_PROGRAM, 8, osbexec_state )
+ADDRESS_MAP_START(osbexec_state::osbexec_mem)
AM_RANGE( 0x0000, 0x1FFF ) AM_READ_BANK("0000") AM_WRITE(osbexec_0000_w ) /* ROM and maybe also banked ram */
AM_RANGE( 0x2000, 0x3FFF ) AM_RAMBANK("2000") /* Banked RAM */
AM_RANGE( 0x4000, 0xBFFF ) AM_RAMBANK("4000") /* Banked RAM */
@@ -217,7 +219,7 @@ static ADDRESS_MAP_START( osbexec_mem, AS_PROGRAM, 8, osbexec_state )
ADDRESS_MAP_END
-static ADDRESS_MAP_START( osbexec_io, AS_IO, 8, osbexec_state )
+ADDRESS_MAP_START(osbexec_state::osbexec_io)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE( 0x00, 0x03 ) AM_MIRROR( 0xff00 ) AM_DEVREADWRITE( "pia_0", pia6821_device, read, write) /* 6821 PIA @ UD12 */
AM_RANGE( 0x04, 0x07 ) AM_MIRROR( 0xff00 ) AM_DEVREADWRITE("ctc", pit8253_device, read, write) /* 8253 @UD1 */