summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/timetrv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/timetrv.cpp')
-rw-r--r--src/mame/drivers/timetrv.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/mame/drivers/timetrv.cpp b/src/mame/drivers/timetrv.cpp
index 03b62dafd9a..39fd71c5867 100644
--- a/src/mame/drivers/timetrv.cpp
+++ b/src/mame/drivers/timetrv.cpp
@@ -84,21 +84,23 @@ READ8_MEMBER(timetrv_state::in_r)
return 0xff;
}
-ADDRESS_MAP_START(timetrv_state::timetrv_map)
- AM_RANGE(0x00000, 0x0ffff) AM_RAM //irq vectors + work ram
- AM_RANGE(0x10000, 0x107ff) AM_DEVREADWRITE("eeprom", eeprom_parallel_28xx_device, read, write)
- AM_RANGE(0xc0000, 0xfffff) AM_ROM
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(timetrv_state::timetrv_io)
- AM_RANGE(0x0122, 0x0123) AM_WRITENOP //eeprom write bits
- AM_RANGE(0x1000, 0x1003) AM_DEVREADWRITE("ppi1", i8255_device, read, write)
- AM_RANGE(0x1080, 0x1083) AM_DEVREADWRITE("ppi2", i8255_device, read, write)
- AM_RANGE(0x1100, 0x1107) AM_DEVREADWRITE("uart", ins8250_device, ins8250_r, ins8250_w)
- AM_RANGE(0x1180, 0x1187) AM_RAM AM_SHARE("led_vralo")//led string,part 1
- AM_RANGE(0x1200, 0x1207) AM_RAM AM_SHARE("led_vrahi")//led string,part 2
- AM_RANGE(0xff80, 0xffff) AM_RAM //am80188-em-like cpu internal regs?
-ADDRESS_MAP_END
+void timetrv_state::timetrv_map(address_map &map)
+{
+ map(0x00000, 0x0ffff).ram(); //irq vectors + work ram
+ map(0x10000, 0x107ff).rw("eeprom", FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write));
+ map(0xc0000, 0xfffff).rom();
+}
+
+void timetrv_state::timetrv_io(address_map &map)
+{
+ map(0x0122, 0x0123).nopw(); //eeprom write bits
+ map(0x1000, 0x1003).rw("ppi1", FUNC(i8255_device::read), FUNC(i8255_device::write));
+ map(0x1080, 0x1083).rw("ppi2", FUNC(i8255_device::read), FUNC(i8255_device::write));
+ map(0x1100, 0x1107).rw("uart", FUNC(ins8250_device::ins8250_r), FUNC(ins8250_device::ins8250_w));
+ map(0x1180, 0x1187).ram().share("led_vralo");//led string,part 1
+ map(0x1200, 0x1207).ram().share("led_vrahi");//led string,part 2
+ map(0xff80, 0xffff).ram(); //am80188-em-like cpu internal regs?
+}
static INPUT_PORTS_START( timetrv )