diff options
author | Olivier Galibert <olivier.galibert@lne.fr> | 2016-11-09 12:27:40 +0100 |
---|---|---|
committer | Olivier Galibert <olivier.galibert@lne.fr> | 2016-11-09 12:27:40 +0100 |
commit | 8536c82ba15f6cdd2d61c978226fef371d4d7125 (patch) | |
tree | efbed9f01d6783d7cf22ff8369ae212a7e02cc19 /src/mame/drivers/tranz330.cpp | |
parent | 1d8fcc8a1ebbd3e086e34b7ed8bbbb1c96d7ff49 (diff) |
addrmap: Remove device parameter [O. Galibert]
Diffstat (limited to 'src/mame/drivers/tranz330.cpp')
-rw-r--r-- | src/mame/drivers/tranz330.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/tranz330.cpp b/src/mame/drivers/tranz330.cpp index e2fc9a5eb8a..cf151b0c3f4 100644 --- a/src/mame/drivers/tranz330.cpp +++ b/src/mame/drivers/tranz330.cpp @@ -23,38 +23,38 @@ #include "includes/tranz330.h" #include "tranz330.lh" -static void construct_address_map_tranz330_mem(address_map &map, device_t &device) +static void construct_address_map_tranz330_mem(address_map &map) { map.configure(AS_PROGRAM, 8); address_map_entry8 *curentry = nullptr; - curentry = map.add(device, 0x0000, 0x7fff, curentry); + curentry = map.add(0x0000, 0x7fff, curentry); curentry->set_read_type(AMH_ROM); - curentry = map.add(device, 0x8000, 0xffff, curentry); + curentry = map.add(0x8000, 0xffff, curentry); curentry->set_read_type(AMH_RAM); curentry->set_write_type(AMH_RAM); } -static void construct_address_map_tranz330_io(address_map &map, device_t &device) +static void construct_address_map_tranz330_io(address_map &map) { map.configure(AS_IO, 8); map.set_global_mask(0xff); address_map_entry8 *curentry = nullptr; - curentry = map.add(device, 0x00, 0x03, curentry); + curentry = map.add(0x00, 0x03, curentry); 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)); - curentry = map.add(device, 0x10, 0x13, curentry); + curentry = map.add(0x10, 0x13, curentry); 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)); - curentry = map.add(device, 0x20, 0x23, curentry); + curentry = map.add(0x20, 0x23, curentry); 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)); - curentry = map.add(device, 0x30, 0x3f, curentry); + curentry = map.add(0x30, 0x3f, curentry); 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)); } |