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/madmotor.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/madmotor.cpp')
-rw-r--r-- | src/mame/drivers/madmotor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/madmotor.cpp b/src/mame/drivers/madmotor.cpp index 3a14e69c13b..512b7f26380 100644 --- a/src/mame/drivers/madmotor.cpp +++ b/src/mame/drivers/madmotor.cpp @@ -53,13 +53,15 @@ public: DECLARE_DRIVER_INIT(madmotor); uint32_t screen_update_madmotor(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void madmotor(machine_config &config); + void madmotor_map(address_map &map); + void sound_map(address_map &map); }; /******************************************************************************/ -static ADDRESS_MAP_START( madmotor_map, AS_PROGRAM, 16, madmotor_state ) +ADDRESS_MAP_START(madmotor_state::madmotor_map) AM_RANGE(0x000000, 0x07ffff) AM_ROM AM_RANGE(0x180000, 0x180007) AM_DEVWRITE("tilegen1", deco_bac06_device, pf_control_0_w) /* text layer */ AM_RANGE(0x180010, 0x180017) AM_DEVWRITE("tilegen1", deco_bac06_device, pf_control_1_w) @@ -87,7 +89,7 @@ ADDRESS_MAP_END /******************************************************************************/ /* Physical memory map (21 bits) */ -static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, madmotor_state ) +ADDRESS_MAP_START(madmotor_state::sound_map) AM_RANGE(0x000000, 0x00ffff) AM_ROM AM_RANGE(0x100000, 0x100001) AM_DEVREADWRITE("ym1", ym2203_device, read, write) AM_RANGE(0x110000, 0x110001) AM_DEVREADWRITE("ym2", ym2151_device, read, write) |