summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/alto2.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch) (github)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/alto2.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
downloadmame-c5219643162cb7d2a8688425a09008d28c8e2437.tar.bz2
mame-c5219643162cb7d2a8688425a09008d28c8e2437.zip
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/alto2.cpp')
-rw-r--r--src/mame/drivers/alto2.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/alto2.cpp b/src/mame/drivers/alto2.cpp
index d06368e5861..3a66a2bacad 100644
--- a/src/mame/drivers/alto2.cpp
+++ b/src/mame/drivers/alto2.cpp
@@ -34,6 +34,9 @@ public:
DECLARE_MACHINE_RESET(alto2);
void alto2(machine_config &config);
+ void alto2_const_map(address_map &map);
+ void alto2_iomem_map(address_map &map);
+ void alto2_ucode_map(address_map &map);
protected:
required_device<cpu_device> m_maincpu;
required_device<speaker_sound_device> m_speaker;
@@ -261,15 +264,15 @@ ROM_END
// ADDRESS MAPS
//**************************************************************************
-ADDRESS_MAP_START( alto2_ucode_map, 0, 32, alto2_state )
+ADDRESS_MAP_START(alto2_state::alto2_ucode_map)
AM_RANGE(0, 4*ALTO2_UCODE_PAGE_SIZE-1) AM_DEVICE32( "maincpu", alto2_cpu_device, ucode_map, 0xffffffffUL )
ADDRESS_MAP_END
-ADDRESS_MAP_START( alto2_const_map, 1, 16, alto2_state )
+ADDRESS_MAP_START(alto2_state::alto2_const_map)
AM_RANGE(0, ALTO2_CONST_SIZE-1) AM_DEVICE16( "maincpu", alto2_cpu_device, const_map, 0xffffU )
ADDRESS_MAP_END
-ADDRESS_MAP_START( alto2_iomem_map, 2, 16, alto2_state )
+ADDRESS_MAP_START(alto2_state::alto2_iomem_map)
AM_RANGE(0, 2*ALTO2_RAM_SIZE-1) AM_DEVICE16( "maincpu", alto2_cpu_device, iomem_map, 0xffffU )
ADDRESS_MAP_END