diff options
Diffstat (limited to 'src/mame/drivers/arabian.cpp')
-rw-r--r-- | src/mame/drivers/arabian.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/mame/drivers/arabian.cpp b/src/mame/drivers/arabian.cpp index facfc026b49..bf0c6b9d605 100644 --- a/src/mame/drivers/arabian.cpp +++ b/src/mame/drivers/arabian.cpp @@ -211,14 +211,15 @@ WRITE8_MEMBER(arabian_state::mcu_port_p_w) * *************************************/ -ADDRESS_MAP_START(arabian_state::main_map) - AM_RANGE(0x0000, 0x7fff) AM_ROM - AM_RANGE(0x8000, 0xbfff) AM_WRITE(arabian_videoram_w) - AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x01ff) AM_READ_PORT("IN0") - AM_RANGE(0xc200, 0xc200) AM_MIRROR(0x01ff) AM_READ_PORT("DSW1") - AM_RANGE(0xd000, 0xd7ff) AM_MIRROR(0x0800) AM_RAM AM_SHARE("custom_cpu_ram") - AM_RANGE(0xe000, 0xe007) AM_MIRROR(0x0ff8) AM_WRITE(arabian_blitter_w) AM_SHARE("blitter") -ADDRESS_MAP_END +void arabian_state::main_map(address_map &map) +{ + map(0x0000, 0x7fff).rom(); + map(0x8000, 0xbfff).w(this, FUNC(arabian_state::arabian_videoram_w)); + map(0xc000, 0xc000).mirror(0x01ff).portr("IN0"); + map(0xc200, 0xc200).mirror(0x01ff).portr("DSW1"); + map(0xd000, 0xd7ff).mirror(0x0800).ram().share("custom_cpu_ram"); + map(0xe000, 0xe007).mirror(0x0ff8).w(this, FUNC(arabian_state::arabian_blitter_w)).share("blitter"); +} @@ -228,10 +229,11 @@ ADDRESS_MAP_END * *************************************/ -ADDRESS_MAP_START(arabian_state::main_io_map) - AM_RANGE(0xc800, 0xc800) AM_MIRROR(0x01ff) AM_DEVWRITE("aysnd", ay8910_device, address_w) - AM_RANGE(0xca00, 0xca00) AM_MIRROR(0x01ff) AM_DEVWRITE("aysnd", ay8910_device, data_w) -ADDRESS_MAP_END +void arabian_state::main_io_map(address_map &map) +{ + map(0xc800, 0xc800).mirror(0x01ff).w("aysnd", FUNC(ay8910_device::address_w)); + map(0xca00, 0xca00).mirror(0x01ff).w("aysnd", FUNC(ay8910_device::data_w)); +} |