summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/nitedrvr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/nitedrvr.cpp')
-rw-r--r--src/mame/drivers/nitedrvr.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/mame/drivers/nitedrvr.cpp b/src/mame/drivers/nitedrvr.cpp
index 42b6191761a..300859ed9c2 100644
--- a/src/mame/drivers/nitedrvr.cpp
+++ b/src/mame/drivers/nitedrvr.cpp
@@ -48,20 +48,21 @@
/* Memory Map */
-ADDRESS_MAP_START(nitedrvr_state::nitedrvr_map)
- AM_RANGE(0x0000, 0x00ff) AM_RAM AM_MIRROR(0x100) // SCRAM
- AM_RANGE(0x0200, 0x027f) AM_READNOP AM_WRITE(nitedrvr_videoram_w) AM_MIRROR(0x180) AM_SHARE("videoram") // PFW
- AM_RANGE(0x0400, 0x042f) AM_READNOP AM_WRITEONLY AM_MIRROR(0x1c0) AM_SHARE("hvc") // POSH, POSV, CHAR
- AM_RANGE(0x0430, 0x043f) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w) AM_MIRROR(0x1c0)
- AM_RANGE(0x0600, 0x07ff) AM_READ(nitedrvr_in0_r)
- AM_RANGE(0x0800, 0x09ff) AM_READ(nitedrvr_in1_r)
- AM_RANGE(0x0a00, 0x0bff) AM_WRITE(nitedrvr_out0_w)
- AM_RANGE(0x0c00, 0x0dff) AM_WRITE(nitedrvr_out1_w)
- AM_RANGE(0x8000, 0x807f) AM_READONLY AM_MIRROR(0x380) AM_SHARE("videoram") // PFR
- AM_RANGE(0x8400, 0x87ff) AM_READWRITE(nitedrvr_steering_reset_r, nitedrvr_steering_reset_w)
- AM_RANGE(0x9000, 0x9fff) AM_ROM // ROM1-ROM2
- AM_RANGE(0xfff0, 0xffff) AM_ROM // ROM2 for 6502 vectors
-ADDRESS_MAP_END
+void nitedrvr_state::nitedrvr_map(address_map &map)
+{
+ map(0x0000, 0x00ff).ram().mirror(0x100); // SCRAM
+ map(0x0200, 0x027f).nopr().w(this, FUNC(nitedrvr_state::nitedrvr_videoram_w)).mirror(0x180).share("videoram"); // PFW
+ map(0x0400, 0x042f).nopr().writeonly().mirror(0x1c0).share("hvc"); // POSH, POSV, CHAR
+ map(0x0430, 0x043f).w("watchdog", FUNC(watchdog_timer_device::reset_w)).mirror(0x1c0);
+ map(0x0600, 0x07ff).r(this, FUNC(nitedrvr_state::nitedrvr_in0_r));
+ map(0x0800, 0x09ff).r(this, FUNC(nitedrvr_state::nitedrvr_in1_r));
+ map(0x0a00, 0x0bff).w(this, FUNC(nitedrvr_state::nitedrvr_out0_w));
+ map(0x0c00, 0x0dff).w(this, FUNC(nitedrvr_state::nitedrvr_out1_w));
+ map(0x8000, 0x807f).readonly().mirror(0x380).share("videoram"); // PFR
+ map(0x8400, 0x87ff).rw(this, FUNC(nitedrvr_state::nitedrvr_steering_reset_r), FUNC(nitedrvr_state::nitedrvr_steering_reset_w));
+ map(0x9000, 0x9fff).rom(); // ROM1-ROM2
+ map(0xfff0, 0xffff).rom(); // ROM2 for 6502 vectors
+}
/* Input Ports */