diff options
Diffstat (limited to 'src/mame/machine/hng64_net.cpp')
-rw-r--r-- | src/mame/machine/hng64_net.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mame/machine/hng64_net.cpp b/src/mame/machine/hng64_net.cpp index 3971f7b4918..4d3eca22b74 100644 --- a/src/mame/machine/hng64_net.cpp +++ b/src/mame/machine/hng64_net.cpp @@ -106,14 +106,16 @@ WRITE8_MEMBER(hng64_state::hng64_comm_mmu_w) } } -ADDRESS_MAP_START(hng64_state::hng_comm_map) - AM_RANGE(0x0000,0xffff) AM_READWRITE(hng64_comm_space_r, hng64_comm_space_w ) -ADDRESS_MAP_END +void hng64_state::hng_comm_map(address_map &map) +{ + map(0x0000, 0xffff).rw(this, FUNC(hng64_state::hng64_comm_space_r), FUNC(hng64_state::hng64_comm_space_w)); +} -ADDRESS_MAP_START(hng64_state::hng_comm_io_map) - ADDRESS_MAP_GLOBAL_MASK(0xff) +void hng64_state::hng_comm_io_map(address_map &map) +{ + map.global_mask(0xff); /* Reserved for the KL5C80 internal hardware */ - AM_RANGE(0x00, 0x07) AM_READWRITE(hng64_comm_mmu_r,hng64_comm_mmu_w ) + map(0x00, 0x07).rw(this, FUNC(hng64_state::hng64_comm_mmu_r), FUNC(hng64_state::hng64_comm_mmu_w)); // AM_RANGE(0x08,0x1f) AM_NOP /* Reserved */ // AM_RANGE(0x20,0x25) AM_READWRITE /* Timer/Counter B */ /* hng64 writes here */ // AM_RANGE(0x27,0x27) AM_NOP /* Reserved */ @@ -126,9 +128,9 @@ ADDRESS_MAP_START(hng64_state::hng_comm_io_map) // AM_RANGE(0x3c,0x3f) AM_NOP /* Reserved */ /* General IO */ - AM_RANGE(0x50,0x57) AM_READWRITE(hng64_com_share_r, hng64_com_share_w) + map(0x50, 0x57).rw(this, FUNC(hng64_state::hng64_com_share_r), FUNC(hng64_state::hng64_com_share_w)); // AM_RANGE(0x72,0x72) AM_WRITE /* dunno yet */ -ADDRESS_MAP_END +} void hng64_state::reset_net() |