summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-02-10 16:13:37 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-02-10 16:13:49 -0500
commitb25be7d1e48bbd14ed8a54713d179ae3f5857da0 (patch)
treec1db89342504982528795f2a828eeb3512c7e427
parent80af4cf4d3efe428acc9a51df5ec2e21f1a6dd4f (diff)
dps1: Preliminary Am9519 hookup (nw)
-rw-r--r--src/mame/drivers/dps1.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mame/drivers/dps1.cpp b/src/mame/drivers/dps1.cpp
index 9d532cef5bd..1397f4b4480 100644
--- a/src/mame/drivers/dps1.cpp
+++ b/src/mame/drivers/dps1.cpp
@@ -12,8 +12,10 @@ ToDo:
- Need artwork of the front panel switches and LEDs, and port FF.
***************************************************************************************************************/
+
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "machine/am9519.h"
#include "machine/upd765.h"
#include "machine/mc2661.h"
#include "bus/rs232/rs232.h"
@@ -75,7 +77,11 @@ static ADDRESS_MAP_START( io_map, AS_IO, 8, dps1_state )
// other allocated ports, optional
// AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("uart2", mc2661_device, read, write) // S2651
// AM_RANGE(0x08, 0x0b) parallel ports
- AM_RANGE(0x10, 0x17) AM_NOP // pair of AM9519 interrupt controllers
+ // AM_RANGE(0x10, 0x11) // interrupt response
+ AM_RANGE(0x14, 0x14) AM_DEVREADWRITE("am9519a", am9519_device, data_r, data_w)
+ AM_RANGE(0x15, 0x15) AM_DEVREADWRITE("am9519a", am9519_device, stat_r, cmd_w)
+ AM_RANGE(0x16, 0x16) AM_DEVREADWRITE("am9519b", am9519_device, data_r, data_w)
+ AM_RANGE(0x17, 0x17) AM_DEVREADWRITE("am9519b", am9519_device, stat_r, cmd_w)
// AM_RANGE(0x18, 0x1f) control lines 0 to 7
AM_RANGE(0xe0, 0xe3) AM_NOP //unknown device
ADDRESS_MAP_END
@@ -200,6 +206,10 @@ MACHINE_CONFIG_START(dps1_state::dps1)
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart",mc2661_device,dsr_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart",mc2661_device,cts_w))
+ MCFG_DEVICE_ADD("am9519a", AM9519, 0)
+
+ MCFG_DEVICE_ADD("am9519b", AM9519, 0)
+
// floppy
MCFG_UPD765A_ADD("fdc", false, true)
//MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(dps1_state, fdc_int_w)) // doesn't appear to be used