summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tranz330.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2016-11-09 22:38:37 +0100
committer Olivier Galibert <galibert@pobox.com>2016-11-10 09:22:06 +0100
commit1333280f8a688510806efb8d8c4efc328d30c373 (patch)
tree17475405562107730080f742b7a4621af3ac4fb6 /src/mame/drivers/tranz330.cpp
parent6a4e6097ad553c98ccd34f4cb81bb05d183d8ef7 (diff)
addrmap: Stream it [O. Galibert]
Diffstat (limited to 'src/mame/drivers/tranz330.cpp')
-rw-r--r--src/mame/drivers/tranz330.cpp30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/mame/drivers/tranz330.cpp b/src/mame/drivers/tranz330.cpp
index 2b55abfb8e1..1228b707a62 100644
--- a/src/mame/drivers/tranz330.cpp
+++ b/src/mame/drivers/tranz330.cpp
@@ -27,13 +27,8 @@ static void construct_address_map_tranz330_mem(address_map &map)
{
map.configure(AS_PROGRAM, 8);
- address_map_entry *curentry = nullptr;
- curentry = map.add(0x0000, 0x7fff);
- curentry->set_read_type(AMH_ROM);
-
- curentry = map.add(0x8000, 0xffff);
- curentry->set_read_type(AMH_RAM);
- curentry->set_write_type(AMH_RAM);
+ map.add(0x0000, 0x7fff)->set_read_type(AMH_ROM);
+ map.add(0x8000, 0xffff)->set_read_type(AMH_RAM)->set_write_type(AMH_RAM);
}
static void construct_address_map_tranz330_io(address_map &map)
@@ -41,22 +36,17 @@ static void construct_address_map_tranz330_io(address_map &map)
map.configure(AS_IO, 8);
map.set_global_mask(0xff);
- address_map_entry *curentry = nullptr;
- curentry = map.add(0x00, 0x03);
- curentry->set_handler(read8_delegate(&z80pio_device::read_alt, "z80pio_device::read_alt", PIO_TAG, (z80pio_device *)nullptr),
- write8_delegate(&z80pio_device::write_alt, "z80pio_device::write_alt", PIO_TAG, (z80pio_device *)nullptr));
+ map.add(0x00, 0x03)->set_handler(read8_delegate(&z80pio_device::read_alt, "z80pio_device::read_alt", PIO_TAG, (z80pio_device *)nullptr),
+ write8_delegate(&z80pio_device::write_alt, "z80pio_device::write_alt", PIO_TAG, (z80pio_device *)nullptr));
- curentry = map.add(0x10, 0x13);
- curentry->set_handler(read8_delegate(&z80ctc_device::read, "z80ctc_device::read", CTC_TAG, (z80ctc_device *)nullptr),
- write8_delegate(&z80ctc_device::write, "z80ctc_device::write", CTC_TAG, (z80ctc_device *)nullptr));
+ map.add(0x10, 0x13)->set_handler(read8_delegate(&z80ctc_device::read, "z80ctc_device::read", CTC_TAG, (z80ctc_device *)nullptr),
+ write8_delegate(&z80ctc_device::write, "z80ctc_device::write", CTC_TAG, (z80ctc_device *)nullptr));
- curentry = map.add(0x20, 0x23);
- curentry->set_handler(read8_delegate(&z80dart_device::ba_cd_r, "z80dart_device::ba_cd_r", DART_TAG, (z80dart_device *)nullptr),
- write8_delegate(&z80dart_device::ba_cd_w, "z80dart_device::ba_cd_w", DART_TAG, (z80dart_device *)nullptr));
+ map.add(0x20, 0x23)->set_handler(read8_delegate(&z80dart_device::ba_cd_r, "z80dart_device::ba_cd_r", DART_TAG, (z80dart_device *)nullptr),
+ write8_delegate(&z80dart_device::ba_cd_w, "z80dart_device::ba_cd_w", DART_TAG, (z80dart_device *)nullptr));
- curentry = map.add(0x30, 0x3f);
- curentry->set_handler(read8_delegate(&msm6242_device::read, "msm6242_device::read", RTC_TAG, (msm6242_device *)nullptr),
- write8_delegate(&msm6242_device::write, "msm6242_device::write", RTC_TAG, (msm6242_device *)nullptr));
+ map.add(0x30, 0x3f)->set_handler(read8_delegate(&msm6242_device::read, "msm6242_device::read", RTC_TAG, (msm6242_device *)nullptr),
+ write8_delegate(&msm6242_device::write, "msm6242_device::write", RTC_TAG, (msm6242_device *)nullptr));
}
static void construct_ioport_tranz330(device_t &owner, ioport_list &portlist, std::string &errorbuf)