diff options
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 |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/chance32.cpp | |
parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (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/chance32.cpp')
-rw-r--r-- | src/mame/drivers/chance32.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/chance32.cpp b/src/mame/drivers/chance32.cpp index 4d173e469e6..5acc9825643 100644 --- a/src/mame/drivers/chance32.cpp +++ b/src/mame/drivers/chance32.cpp @@ -70,6 +70,8 @@ public: required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; void chance32(machine_config &config); + void chance32_map(address_map &map); + void chance32_portmap(address_map &map); }; @@ -197,7 +199,7 @@ WRITE8_MEMBER(chance32_state::muxout_w) } -static ADDRESS_MAP_START( chance32_map, AS_PROGRAM, 8, chance32_state ) +ADDRESS_MAP_START(chance32_state::chance32_map) AM_RANGE(0x0000, 0xcfff) AM_ROM AM_RANGE(0xd800, 0xdfff) AM_RAM AM_RANGE(0xe000, 0xefff) AM_RAM_DEVWRITE("palette", palette_device, write8) AM_SHARE("palette") @@ -205,7 +207,7 @@ static ADDRESS_MAP_START( chance32_map, AS_PROGRAM, 8, chance32_state ) AM_RANGE(0xf800, 0xffff) AM_RAM_WRITE(chance32_bgram_w) AM_SHARE("bgram") ADDRESS_MAP_END -static ADDRESS_MAP_START( chance32_portmap, AS_IO, 8, chance32_state ) +ADDRESS_MAP_START(chance32_state::chance32_portmap) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x10, 0x10) AM_WRITENOP // writing bit3 constantly... watchdog? AM_RANGE(0x13, 0x13) AM_WRITE(mux_w) |