summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-01-14 17:43:28 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-01-14 17:43:30 -0500
commit183b56a7d10c967e0911edc088cab508cb8adb8d (patch) (github)
tree3aa96dab7727c86303a8690617ccca65e9ae546f /src/mame/drivers/apexc.cpp
parent3f90200e4f41d792d9d8a27771be202538839732 (diff)
downloadmame-183b56a7d10c967e0911edc088cab508cb8adb8d.tar.bz2
mame-183b56a7d10c967e0911edc088cab508cb8adb8d.zip
cpu/apexc: Replace single-location tape I/O space with callbacks (nw)
Diffstat (limited to 'src/mame/drivers/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index fb4c5f6ca9e..4335bad4df0 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -852,11 +852,6 @@ static ADDRESS_MAP_START(apexc_mem_map, AS_PROGRAM, 32, apexc_state )
#endif
ADDRESS_MAP_END
-static ADDRESS_MAP_START(apexc_io_map, AS_IO, 8, apexc_state )
- AM_RANGE(0x00, 0x00) AM_READ(tape_read)
- AM_RANGE(0x00, 0x00) AM_WRITE(tape_write)
-ADDRESS_MAP_END
-
static MACHINE_CONFIG_START( apexc )
@@ -864,7 +859,8 @@ static MACHINE_CONFIG_START( apexc )
/* APEXC CPU @ 2.0 kHz (memory word clock frequency) */
MCFG_CPU_ADD("maincpu", APEXC, 2000)
MCFG_CPU_PROGRAM_MAP(apexc_mem_map)
- MCFG_CPU_IO_MAP(apexc_io_map)
+ MCFG_APEXC_TAPE_READ_CB(READ8(apexc_state, tape_read))
+ MCFG_APEXC_TAPE_PUNCH_CB(WRITE8(apexc_state, tape_write))
/* dummy interrupt: handles the control panel */
MCFG_CPU_VBLANK_INT_DRIVER("screen", apexc_state, apexc_interrupt)