summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cardline.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-02-27 22:21:06 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-02-27 22:21:06 -0500
commit5e3a7e9bf04044e4b1326203d3de213326f2627e (patch)
treef583f78b68e1d7a4e18e386cf9080afcdd20ee57 /src/mame/drivers/cardline.cpp
parent81fa4120669622146f0dce93bb357f85c7274b4e (diff)
mcs51: Use callbacks for parallel ports (nw)
Diffstat (limited to 'src/mame/drivers/cardline.cpp')
-rw-r--r--src/mame/drivers/cardline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/cardline.cpp b/src/mame/drivers/cardline.cpp
index 2c3e4d3ce8b..40317c9d05f 100644
--- a/src/mame/drivers/cardline.cpp
+++ b/src/mame/drivers/cardline.cpp
@@ -233,8 +233,6 @@ ADDRESS_MAP_START(cardline_state::mem_io)
AM_RANGE(0x3003, 0x3003) AM_WRITE(a3003_w)
AM_RANGE(0xc000, 0xdfff) AM_WRITE(vram_w) AM_SHARE("videoram")
AM_RANGE(0xe000, 0xffff) AM_WRITE(attr_w) AM_SHARE("colorram")
- /* Ports */
- AM_RANGE(MCS51_PORT_P1, MCS51_PORT_P1) AM_READWRITE(hsync_r, video_w)
ADDRESS_MAP_END
@@ -323,6 +321,8 @@ MACHINE_CONFIG_START(cardline_state::cardline)
MCFG_MCS51_PORT1_CONFIG(0x10)
MCFG_CPU_PROGRAM_MAP(mem_prg)
MCFG_CPU_IO_MAP(mem_io)
+ MCFG_MCS51_PORT_P1_IN_CB(READ8(cardline_state, hsync_r))
+ MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(cardline_state, video_w))
//MCFG_CPU_VBLANK_INT_DRIVER("screen", cardline_state, irq1_line_hold)
/* video hardware */