summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/30test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/30test.cpp')
-rw-r--r--src/mame/drivers/30test.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/mame/drivers/30test.cpp b/src/mame/drivers/30test.cpp
index 2c25f09ee04..b4471a80965 100644
--- a/src/mame/drivers/30test.cpp
+++ b/src/mame/drivers/30test.cpp
@@ -139,31 +139,33 @@ WRITE8_MEMBER(namco_30test_state::hc11_okibank_w)
}
-ADDRESS_MAP_START(namco_30test_state::namco_30test_map)
- AM_RANGE(0x0000, 0x003f) AM_RAM // internal I/O
- AM_RANGE(0x0040, 0x007f) AM_RAM // more internal I/O, HC11 change pending
- AM_RANGE(0x007c, 0x007c) AM_READWRITE(hc11_mux_r,hc11_mux_w)
- AM_RANGE(0x007e, 0x007e) AM_READWRITE(hc11_okibank_r,hc11_okibank_w)
- AM_RANGE(0x0080, 0x037f) AM_RAM // internal RAM
- AM_RANGE(0x0d80, 0x0dbf) AM_RAM // EEPROM read-back data goes there
- AM_RANGE(0x2000, 0x2000) AM_DEVREADWRITE("oki", okim6295_device, read, write)
+void namco_30test_state::namco_30test_map(address_map &map)
+{
+ map(0x0000, 0x003f).ram(); // internal I/O
+ map(0x0040, 0x007f).ram(); // more internal I/O, HC11 change pending
+ map(0x007c, 0x007c).rw(this, FUNC(namco_30test_state::hc11_mux_r), FUNC(namco_30test_state::hc11_mux_w));
+ map(0x007e, 0x007e).rw(this, FUNC(namco_30test_state::hc11_okibank_r), FUNC(namco_30test_state::hc11_okibank_w));
+ map(0x0080, 0x037f).ram(); // internal RAM
+ map(0x0d80, 0x0dbf).ram(); // EEPROM read-back data goes there
+ map(0x2000, 0x2000).rw(m_oki, FUNC(okim6295_device::read), FUNC(okim6295_device::write));
/* 0x401e-0x401f: time */
- AM_RANGE(0x4000, 0x401f) AM_WRITE(namco_30test_led_w) // 7-seg leds
+ map(0x4000, 0x401f).w(this, FUNC(namco_30test_state::namco_30test_led_w)); // 7-seg leds
/* 0x6000: 1st place 7-seg led */
/* 0x6001: 2nd place 7-seg led */
/* 0x6002: 3rd place 7-seg led */
/* 0x6003: current / last play score */
/* 0x6004: lamps */
- AM_RANGE(0x6000, 0x6003) AM_WRITE(namco_30test_led_rank_w)
- AM_RANGE(0x6004, 0x6004) AM_WRITE(namco_30test_lamps_w)
- AM_RANGE(0x8000, 0xffff) AM_ROM
-ADDRESS_MAP_END
+ map(0x6000, 0x6003).w(this, FUNC(namco_30test_state::namco_30test_led_rank_w));
+ map(0x6004, 0x6004).w(this, FUNC(namco_30test_state::namco_30test_lamps_w));
+ map(0x8000, 0xffff).rom();
+}
-ADDRESS_MAP_START(namco_30test_state::namco_30test_io)
- AM_RANGE(MC68HC11_IO_PORTA,MC68HC11_IO_PORTA) AM_READ(namco_30test_mux_r)
+void namco_30test_state::namco_30test_io(address_map &map)
+{
+ map(MC68HC11_IO_PORTA, MC68HC11_IO_PORTA).r(this, FUNC(namco_30test_state::namco_30test_mux_r));
// AM_RANGE(MC68HC11_IO_PORTD,MC68HC11_IO_PORTD) AM_RAM
- AM_RANGE(MC68HC11_IO_PORTE,MC68HC11_IO_PORTE) AM_READ_PORT("SYSTEM")
-ADDRESS_MAP_END
+ map(MC68HC11_IO_PORTE, MC68HC11_IO_PORTE).portr("SYSTEM");
+}
static INPUT_PORTS_START( 30test )