summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gridlee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gridlee.cpp')
-rw-r--r--src/mame/drivers/gridlee.cpp5
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)