diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/gridlee.cpp | |
parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (diff) |
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible
soon.
Diffstat (limited to 'src/mame/drivers/gridlee.cpp')
-rw-r--r-- | src/mame/drivers/gridlee.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/gridlee.cpp b/src/mame/drivers/gridlee.cpp index 7f4e3c2ac95..932b68e14fb 100644 --- a/src/mame/drivers/gridlee.cpp +++ b/src/mame/drivers/gridlee.cpp @@ -83,7 +83,6 @@ #include "includes/gridlee.h" #include "cpu/m6809/m6809.h" -#include "machine/74259.h" #include "sound/samples.h" #include "machine/nvram.h" #include "machine/watchdog.h" @@ -300,10 +299,10 @@ WRITE_LINE_MEMBER(gridlee_state::coin_counter_w) *************************************/ /* CPU 1 read addresses */ -static ADDRESS_MAP_START( cpu1_map, AS_PROGRAM, 8, gridlee_state ) +ADDRESS_MAP_START(gridlee_state::cpu1_map) AM_RANGE(0x0000, 0x07ff) AM_RAM AM_SHARE("spriteram") AM_RANGE(0x0800, 0x7fff) AM_RAM_WRITE(gridlee_videoram_w) AM_SHARE("videoram") - AM_RANGE(0x9000, 0x9000) AM_SELECT(0x0070) AM_DEVWRITE_MOD("latch", ls259_device, write_d0, rshift<4>) + ;map(0x9000, 0x9000).select(0x0070).lw8("latch_w", [this](address_space &space, offs_t offset, u8 data, u8 mem_mask){ m_latch->write_d0(space, offset >> 4, data, mem_mask); }); AM_RANGE(0x9200, 0x9200) AM_WRITE(gridlee_palette_select_w) AM_RANGE(0x9380, 0x9380) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w) AM_RANGE(0x9500, 0x9501) AM_READ(analog_port_r) |