summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/pv2000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pv2000.cpp')
-rw-r--r--src/mame/drivers/pv2000.cpp30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/mame/drivers/pv2000.cpp b/src/mame/drivers/pv2000.cpp
index ceec19c2b83..9f93b991382 100644
--- a/src/mame/drivers/pv2000.cpp
+++ b/src/mame/drivers/pv2000.cpp
@@ -178,34 +178,36 @@ WRITE8_MEMBER( pv2000_state::cass_out )
/* Memory Maps */
-ADDRESS_MAP_START(pv2000_state::pv2000_map)
- AM_RANGE(0x0000, 0x3fff) AM_ROM
+void pv2000_state::pv2000_map(address_map &map)
+{
+ map(0x0000, 0x3fff).rom();
- AM_RANGE(0x4000, 0x4000) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
- AM_RANGE(0x4001, 0x4001) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
+ map(0x4000, 0x4000).rw("tms9928a", FUNC(tms9928a_device::vram_read), FUNC(tms9928a_device::vram_write));
+ map(0x4001, 0x4001).rw("tms9928a", FUNC(tms9928a_device::register_read), FUNC(tms9928a_device::register_write));
- AM_RANGE(0x7000, 0x7fff) AM_RAM
+ map(0x7000, 0x7fff).ram();
//AM_RANGE(0x8000, 0xbfff) ext ram?
//AM_RANGE(0xc000, 0xffff) // mapped by the cartslot
-ADDRESS_MAP_END
+}
-ADDRESS_MAP_START(pv2000_state::pv2000_io_map)
- ADDRESS_MAP_GLOBAL_MASK(0xff)
+void pv2000_state::pv2000_io_map(address_map &map)
+{
+ map.global_mask(0xff);
//theres also printer and tape I/O (TODO)
- AM_RANGE(0x00, 0x00) AM_WRITE(cass_conf_w)
+ map(0x00, 0x00).w(this, FUNC(pv2000_state::cass_conf_w));
//keyboard/joystick
- AM_RANGE(0x10, 0x10) AM_READ(keys_hi_r)
- AM_RANGE(0x20, 0x20) AM_READWRITE(keys_lo_r, keys_w)
+ map(0x10, 0x10).r(this, FUNC(pv2000_state::keys_hi_r));
+ map(0x20, 0x20).rw(this, FUNC(pv2000_state::keys_lo_r), FUNC(pv2000_state::keys_w));
//sn76489a
- AM_RANGE(0x40, 0x40) AM_READ(keys_mod_r) AM_DEVWRITE("sn76489a", sn76489a_device, write)
+ map(0x40, 0x40).r(this, FUNC(pv2000_state::keys_mod_r)).w("sn76489a", FUNC(sn76489a_device::write));
/* Cassette input. Gets hit a lot after a GLOAD command */
- AM_RANGE(0x60, 0x60) AM_READWRITE(cass_in,cass_out)
-ADDRESS_MAP_END
+ map(0x60, 0x60).rw(this, FUNC(pv2000_state::cass_in), FUNC(pv2000_state::cass_out));
+}
static INPUT_PORTS_START( pv2000 )