diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/rowamet.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/rowamet.cpp')
-rw-r--r-- | src/mame/drivers/rowamet.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/rowamet.cpp b/src/mame/drivers/rowamet.cpp index bbd5e17f330..e0b4685700a 100644 --- a/src/mame/drivers/rowamet.cpp +++ b/src/mame/drivers/rowamet.cpp @@ -50,6 +50,9 @@ public: DECLARE_WRITE8_MEMBER(io_w); TIMER_DEVICE_CALLBACK_MEMBER(timer_a); void rowamet(machine_config &config); + void rowamet_map(address_map &map); + void rowamet_sub_io(address_map &map); + void rowamet_sub_map(address_map &map); private: uint8_t m_out_offs; uint8_t m_sndcmd; @@ -61,7 +64,7 @@ private: }; -static ADDRESS_MAP_START( rowamet_map, AS_PROGRAM, 8, rowamet_state ) +ADDRESS_MAP_START(rowamet_state::rowamet_map) AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("roms", 0) AM_RANGE(0x2800, 0x2800) AM_READ_PORT("X0") AM_RANGE(0x2801, 0x2801) AM_READ_PORT("X1") @@ -78,12 +81,12 @@ static ADDRESS_MAP_START( rowamet_map, AS_PROGRAM, 8, rowamet_state ) AM_RANGE(0x40a0, 0x40ff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START( rowamet_sub_map, AS_PROGRAM, 8, rowamet_state ) +ADDRESS_MAP_START(rowamet_state::rowamet_sub_map) AM_RANGE(0x0000, 0x0fff) AM_ROM AM_REGION("roms", 0x2000) AM_RANGE(0x1000, 0x17ff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START( rowamet_sub_io, AS_IO, 8, rowamet_state ) +ADDRESS_MAP_START(rowamet_state::rowamet_sub_io) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00, 0x00) AM_READWRITE(sound_r,mute_w) AM_RANGE(0x01, 0x01) AM_DEVWRITE("dac", dac_byte_interface, write) |