summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pda600.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/pda600.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/pda600.cpp')
-rw-r--r--src/mame/drivers/pda600.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/pda600.cpp b/src/mame/drivers/pda600.cpp
index 5ab845b2aaa..c15acdf7b23 100644
--- a/src/mame/drivers/pda600.cpp
+++ b/src/mame/drivers/pda600.cpp
@@ -79,10 +79,12 @@ public:
uint8_t * m_video_ram;
void pda600(machine_config &config);
+ void pda600_io(address_map &map);
+ void pda600_mem(address_map &map);
};
-static ADDRESS_MAP_START(pda600_mem, AS_PROGRAM, 8, pda600_state)
+ADDRESS_MAP_START(pda600_state::pda600_mem)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x00000, 0x1ffff) AM_ROM
//AM_RANGE(0x20000, 0x9ffff) AM_RAM // PCMCIA Card
@@ -90,7 +92,7 @@ static ADDRESS_MAP_START(pda600_mem, AS_PROGRAM, 8, pda600_state)
AM_RANGE(0xe0000, 0xfffff) AM_RAM AM_REGION("mainram", 0) AM_SHARE("nvram")
ADDRESS_MAP_END
-static ADDRESS_MAP_START(pda600_io, AS_IO, 8, pda600_state)
+ADDRESS_MAP_START(pda600_state::pda600_io)
ADDRESS_MAP_UNMAP_HIGH
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x3f) AM_NOP /* Z180 internal registers */