diff options
Diffstat (limited to 'src/mame/machine/egret.cpp')
-rw-r--r-- | src/mame/machine/egret.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/machine/egret.cpp b/src/mame/machine/egret.cpp index 647ff09d328..1b61f4fe31e 100644 --- a/src/mame/machine/egret.cpp +++ b/src/mame/machine/egret.cpp @@ -66,17 +66,18 @@ ROM_END // ADDRESS_MAP //------------------------------------------------- -ADDRESS_MAP_START(egret_device::egret_map) - AM_RANGE(0x0000, 0x0002) AM_READWRITE(ports_r, ports_w) - AM_RANGE(0x0004, 0x0006) AM_READWRITE(ddr_r, ddr_w) - AM_RANGE(0x0007, 0x0007) AM_READWRITE(pll_r, pll_w) - AM_RANGE(0x0008, 0x0008) AM_READWRITE(timer_ctrl_r, timer_ctrl_w) - AM_RANGE(0x0009, 0x0009) AM_READWRITE(timer_counter_r, timer_counter_w) - AM_RANGE(0x0012, 0x0012) AM_READWRITE(onesec_r, onesec_w) - AM_RANGE(0x0090, 0x00ff) AM_RAM // work RAM and stack - AM_RANGE(0x0100, 0x01ff) AM_READWRITE(pram_r, pram_w) - AM_RANGE(0x0f00, 0x1fff) AM_ROM AM_REGION(EGRET_CPU_TAG, 0) -ADDRESS_MAP_END +void egret_device::egret_map(address_map &map) +{ + map(0x0000, 0x0002).rw(this, FUNC(egret_device::ports_r), FUNC(egret_device::ports_w)); + map(0x0004, 0x0006).rw(this, FUNC(egret_device::ddr_r), FUNC(egret_device::ddr_w)); + map(0x0007, 0x0007).rw(this, FUNC(egret_device::pll_r), FUNC(egret_device::pll_w)); + map(0x0008, 0x0008).rw(this, FUNC(egret_device::timer_ctrl_r), FUNC(egret_device::timer_ctrl_w)); + map(0x0009, 0x0009).rw(this, FUNC(egret_device::timer_counter_r), FUNC(egret_device::timer_counter_w)); + map(0x0012, 0x0012).rw(this, FUNC(egret_device::onesec_r), FUNC(egret_device::onesec_w)); + map(0x0090, 0x00ff).ram(); // work RAM and stack + map(0x0100, 0x01ff).rw(this, FUNC(egret_device::pram_r), FUNC(egret_device::pram_w)); + map(0x0f00, 0x1fff).rom().region(EGRET_CPU_TAG, 0); +} //------------------------------------------------- |