summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-11-19 03:33:09 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-11-19 03:33:09 -0500
commit8ff47b6ec33dc99add94ab3d9079d0071c2e0307 (patch)
tree67dcd825999df135008b095162272868af1254da
parenta2b1739996ebdfd0d4bff9b68a84ec9ab459bc7f (diff)
mt420: One more device (nw)
-rw-r--r--src/mame/drivers/microterm.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/microterm.cpp b/src/mame/drivers/microterm.cpp
index 372bef2e463..f0e2f4532d7 100644
--- a/src/mame/drivers/microterm.cpp
+++ b/src/mame/drivers/microterm.cpp
@@ -9,6 +9,7 @@ Skeleton driver for Micro-Term terminals.
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/eepromser.h"
+#include "machine/mc2661.h"
#include "machine/mc68681.h"
//#include "video/scn2674.h"
//#include "screen.h"
@@ -44,7 +45,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( mt420_io_map, AS_IO, 8, microterm_state )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0xe0, 0xef) AM_DEVREADWRITE("duart", mc68681_device, read, write)
- AM_RANGE(0xf1, 0xf1) AM_READNOP
+ AM_RANGE(0xf0, 0xf3) AM_DEVREADWRITE("asci", mc2661_device, read, write)
ADDRESS_MAP_END
static ADDRESS_MAP_START( mt5510_mem_map, AS_PROGRAM, 8, microterm_state )
@@ -66,12 +67,14 @@ static MACHINE_CONFIG_START( mt420 )
MCFG_CPU_PROGRAM_MAP(mt420_mem_map)
MCFG_CPU_IO_MAP(mt420_io_map)
- MCFG_DEVICE_ADD("duart", MC68681, XTAL_3_6864MHz)
+ MCFG_DEVICE_ADD("duart", MC68681, XTAL_3_6864MHz) // SCN2681
MCFG_MC68681_IRQ_CALLBACK(INPUTLINE("maincpu", 0))
MCFG_MC68681_OUTPORT_CALLBACK(DEVWRITELINE("eeprom", eeprom_serial_93cxx_device, di_write)) MCFG_DEVCB_BIT(5)
MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("eeprom", eeprom_serial_93cxx_device, cs_write)) MCFG_DEVCB_BIT(4)
MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("eeprom", eeprom_serial_93cxx_device, clk_write)) MCFG_DEVCB_BIT(3)
+ MCFG_DEVICE_ADD("asci", MC2661, XTAL_3_6864MHz) // SCN2641
+
MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
MCFG_EEPROM_SERIAL_DO_CALLBACK(DEVWRITELINE("duart", mc68681_device, ip6_w))
MACHINE_CONFIG_END
@@ -81,7 +84,7 @@ static MACHINE_CONFIG_START( mt5510 )
MCFG_CPU_PROGRAM_MAP(mt5510_mem_map)
MCFG_CPU_IO_MAP(mt5510_io_map)
- MCFG_DEVICE_ADD("duart", MC68681, XTAL_3_6864MHz)
+ MCFG_DEVICE_ADD("duart", MC68681, XTAL_3_6864MHz) // SCN2681
MCFG_MC68681_IRQ_CALLBACK(INPUTLINE("maincpu", 0))
MCFG_MC68681_OUTPORT_CALLBACK(DEVWRITELINE("eeprom1", eeprom_serial_93cxx_device, di_write)) MCFG_DEVCB_BIT(6)
MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("eeprom2", eeprom_serial_93cxx_device, di_write)) MCFG_DEVCB_BIT(5)