diff options
author | 2016-06-16 10:36:30 -0500 | |
---|---|---|
committer | 2016-06-16 10:36:30 -0500 | |
commit | 3bb6c2b58656f8afedb3a1f6a69280adf957bd1b (patch) | |
tree | ef60de72196dcebe5834bcd55bfdac9295e9960c | |
parent | 7b638c3181767939b7e4b01b6200cf013ac81075 (diff) |
fix a few (nw)
-rw-r--r-- | src/devices/machine/cs8221.cpp | 4 | ||||
-rw-r--r-- | src/devices/machine/cs8221.h | 1 | ||||
-rw-r--r-- | src/mame/drivers/at.cpp | 3 | ||||
-rw-r--r-- | src/mame/drivers/pcd.cpp | 3 |
4 files changed, 8 insertions, 3 deletions
diff --git a/src/devices/machine/cs8221.cpp b/src/devices/machine/cs8221.cpp index 95a890d7bba..d7f38de1bd7 100644 --- a/src/devices/machine/cs8221.cpp +++ b/src/devices/machine/cs8221.cpp @@ -105,6 +105,10 @@ void cs8221_device::device_reset() //************************************************************************** // READ/WRITE HANDLERS //************************************************************************** +DEVICE_ADDRESS_MAP_START( map, 16, cs8221_device ) + AM_RANGE(0x0022, 0x0023) AM_DEVWRITE8("cs8221", cs8221_device, address_w, 0x00ff) + AM_RANGE(0x0022, 0x0023) AM_DEVREADWRITE8("cs8221", cs8221_device, data_r, data_w, 0xff00) +ADDRESS_MAP_END WRITE8_MEMBER( cs8221_device::address_w ) { diff --git a/src/devices/machine/cs8221.h b/src/devices/machine/cs8221.h index ea7cc4a99b4..b6a403bafba 100644 --- a/src/devices/machine/cs8221.h +++ b/src/devices/machine/cs8221.h @@ -49,6 +49,7 @@ public: DECLARE_WRITE8_MEMBER( address_w ); DECLARE_READ8_MEMBER( data_r ); DECLARE_WRITE8_MEMBER( data_w ); + DECLARE_ADDRESS_MAP(map, 16); // inline configuration static void static_set_cputag(device_t &device, const char *tag); diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp index 8263a879c04..f651d909f2e 100644 --- a/src/mame/drivers/at.cpp +++ b/src/mame/drivers/at.cpp @@ -152,8 +152,7 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( neat_io, AS_IO, 16, at_state ) ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(0x0022, 0x0023) AM_DEVWRITE8("cs8221", cs8221_device, address_w, 0x00ff) - AM_RANGE(0x0022, 0x0023) AM_DEVREADWRITE8("cs8221", cs8221_device, data_r, data_w, 0xff00) + AM_RANGE(0x0022, 0x0023) AM_DEVICE("cs8221", cs8221_device, map) AM_RANGE(0x0000, 0x00ff) AM_DEVICE("mb", at_mb_device, map) ADDRESS_MAP_END diff --git a/src/mame/drivers/pcd.cpp b/src/mame/drivers/pcd.cpp index 542ab0a32fc..1077358b1c8 100644 --- a/src/mame/drivers/pcd.cpp +++ b/src/mame/drivers/pcd.cpp @@ -449,7 +449,8 @@ static ADDRESS_MAP_START( pcd_io, AS_IO, 16, pcd_state ) AM_RANGE(0xf9d0, 0xf9d3) AM_DEVREADWRITE8("usart2",mc2661_device,read,write,0xffff) AM_RANGE(0xf9e0, 0xf9e3) AM_DEVREADWRITE8("usart3",mc2661_device,read,write,0xffff) // AM_RANGE(0xfa00, 0xfa7f) // pcs4-n (peripheral chip select) - AM_RANGE(0xfb00, 0xffff) AM_READWRITE8(nmi_io_r, nmi_io_w, 0xffff) + AM_RANGE(0xfb00, 0xfb01) AM_READWRITE8(nmi_io_r, nmi_io_w, 0x00ff) + AM_RANGE(0xfb02, 0xffff) AM_READWRITE8(nmi_io_r, nmi_io_w, 0xffff) ADDRESS_MAP_END static ADDRESS_MAP_START( pcx_io, AS_IO, 16, pcd_state ) |