dps1: Preliminary Am9519 hookup (nw)

This commit is contained in:
AJR 2018-02-10 16:13:37 -05:00
parent 80af4cf4d3
commit b25be7d1e4

View File

@ -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