diff options
author | 2018-04-20 21:16:45 +1000 | |
---|---|---|
committer | 2018-04-20 21:16:45 +1000 | |
commit | 4eb6db52039bfbc7e4994c7a780f5732b1fc663f (patch) | |
tree | 6f7a5d5ec5f8776f38c504c831c36c38f1bcf6db | |
parent | d7f5f63ce82d2e2d4e1b0de7842aeb12700becd2 (diff) |
(nw) commit these address map changes while i can
-rw-r--r-- | src/devices/cpu/tms1000/tms1100.cpp | 14 | ||||
-rw-r--r-- | src/devices/cpu/tms1000/tp0320.cpp | 9 | ||||
-rw-r--r-- | src/devices/video/hd61830.cpp | 7 | ||||
-rw-r--r-- | src/devices/video/huc6271.cpp | 7 | ||||
-rw-r--r-- | src/devices/video/msm6255.cpp | 7 | ||||
-rw-r--r-- | src/mame/drivers/sg1000.cpp | 3 |
6 files changed, 27 insertions, 20 deletions
diff --git a/src/devices/cpu/tms1000/tms1100.cpp b/src/devices/cpu/tms1000/tms1100.cpp index 2f417b2658d..9f7d6a040b8 100644 --- a/src/devices/cpu/tms1000/tms1100.cpp +++ b/src/devices/cpu/tms1000/tms1100.cpp @@ -22,13 +22,15 @@ DEFINE_DEVICE_TYPE(TMS1370, tms1370_cpu_device, "tms1370", "Texas Instruments TM // internal memory maps -ADDRESS_MAP_START(tms1100_cpu_device::program_11bit_8) - AM_RANGE(0x000, 0x7ff) AM_ROM -ADDRESS_MAP_END +void tms1100_cpu_device::program_11bit_8(address_map &map) +{ + map(0x000, 0x7ff).rom(); +} -ADDRESS_MAP_START(tms1100_cpu_device::data_128x4) - AM_RANGE(0x00, 0x7f) AM_RAM -ADDRESS_MAP_END +void tms1100_cpu_device::data_128x4(address_map &map) +{ + map(0x00, 0x7f).ram(); +} // device definitions diff --git a/src/devices/cpu/tms1000/tp0320.cpp b/src/devices/cpu/tms1000/tp0320.cpp index b27543e9e1b..62ca7072ab2 100644 --- a/src/devices/cpu/tms1000/tp0320.cpp +++ b/src/devices/cpu/tms1000/tp0320.cpp @@ -27,10 +27,11 @@ DEFINE_DEVICE_TYPE(TP0320, tp0320_cpu_device, "tp0320", "Texas Instruments TP032 // internal memory maps -ADDRESS_MAP_START(tp0320_cpu_device::data_192x4) - AM_RANGE(0x00, 0x7f) AM_RAM - AM_RANGE(0x80, 0xbf) AM_RAM AM_MIRROR(0x40) // DAM -ADDRESS_MAP_END +void tp0320_cpu_device::data_192x4(address_map &map) +{ + map(0x00, 0x7f).ram(); + map(0x80, 0xbf).ram().mirror(0x40); // DAM +} // device definitions diff --git a/src/devices/video/hd61830.cpp b/src/devices/video/hd61830.cpp index a5343a0cb3c..30dea02423b 100644 --- a/src/devices/video/hd61830.cpp +++ b/src/devices/video/hd61830.cpp @@ -25,9 +25,10 @@ const device_type HD61830B = HD61830; // default address map -ADDRESS_MAP_START(hd61830_device::hd61830) - AM_RANGE(0x0000, 0xffff) AM_RAM -ADDRESS_MAP_END +void hd61830_device::hd61830(address_map &map) +{ + map(0x0000, 0xffff).ram(); +} // internal character generator ROM diff --git a/src/devices/video/huc6271.cpp b/src/devices/video/huc6271.cpp index 8f4b3102f97..7af976a820a 100644 --- a/src/devices/video/huc6271.cpp +++ b/src/devices/video/huc6271.cpp @@ -27,9 +27,10 @@ DEFINE_DEVICE_TYPE(HUC6271, huc6271_device, "huc6271", "Hudson HuC6271 \"Rainbow // huc6271_device - constructor //------------------------------------------------- -ADDRESS_MAP_START(huc6271_device::data_map) - AM_RANGE(0x000000, 0x0fffff) AM_RAM -ADDRESS_MAP_END +void huc6271_device::data_map(address_map &map) +{ + map(0x000000, 0x0fffff).ram(); +} huc6271_device::huc6271_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, HUC6271, tag, owner, clock) diff --git a/src/devices/video/msm6255.cpp b/src/devices/video/msm6255.cpp index c30810214b1..a8cab0ba266 100644 --- a/src/devices/video/msm6255.cpp +++ b/src/devices/video/msm6255.cpp @@ -61,9 +61,10 @@ void msm6255_device::map(address_map &map) } // default address map -ADDRESS_MAP_START(msm6255_device::msm6255) - AM_RANGE(0x00000, 0xfffff) AM_RAM -ADDRESS_MAP_END +void msm6255_device::msm6255(address_map &map) +{ + map(0x00000, 0xfffff).ram(); +} diff --git a/src/mame/drivers/sg1000.cpp b/src/mame/drivers/sg1000.cpp index 984a5bf6d80..9a10230bf94 100644 --- a/src/mame/drivers/sg1000.cpp +++ b/src/mame/drivers/sg1000.cpp @@ -195,13 +195,14 @@ void sg1000_state::sc3000_io_map(address_map &map) /* This is how the I/O ports are really mapped, but MAME does not support overlapping ranges void sg1000_state::sc3000_io_map(address_map &map) +{ map.global_mask(0xff); map(0x00, 0x00).mirror(0xdf).rw(UPD9255_TAG, FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0x00, 0x00).mirror(0x7f).w(SN76489AN_TAG, FUNC(sn76489a_device::write)); map(0x00, 0x00).mirror(0xae).rw(TMS9918A_TAG, FUNC(tms9918a_device::vram_read), FUNC(tms9918a_device::vram_write)); map(0x01, 0x01).mirror(0xae).rw(TMS9918A_TAG, FUNC(tms9918a_device::register_read), FUNC(tms9918a_device::register_write)); map(0x60, 0x60).mirror(0x9f).r(this, FUNC(sg1000_state::sc3000_r_r)); -ADDRESS_MAP_END +} */ /*------------------------------------------------- |