summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-02-10 16:02:22 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-02-10 16:02:49 -0500
commit80af4cf4d3efe428acc9a51df5ec2e21f1a6dd4f (patch) (github)
treefb6b1036e3a9d4e854189a49292eefb3bc1e1dc3
parente572431fb8b6bf9058165a5275ae27da2ef23e2b (diff)
downloadmame-80af4cf4d3efe428acc9a51df5ec2e21f1a6dd4f.tar.bz2
mame-80af4cf4d3efe428acc9a51df5ec2e21f1a6dd4f.zip
superslv: Replace 8259 device with Am9519 (nw)
-rw-r--r--src/mame/drivers/superslave.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/superslave.cpp b/src/mame/drivers/superslave.cpp
index 07222c25f0a..7607fd77ca7 100644
--- a/src/mame/drivers/superslave.cpp
+++ b/src/mame/drivers/superslave.cpp
@@ -25,8 +25,8 @@ Oxx,yy = Out port
//#include "bus/s100/s100.h"
#include "cpu/z80/z80.h"
#include "cpu/z80/z80daisy.h"
+#include "machine/am9519.h"
#include "machine/com8116.h"
-#include "machine/pic8259.h"
#include "machine/ram.h"
#include "machine/z80dart.h"
#include "machine/z80pio.h"
@@ -268,7 +268,8 @@ static ADDRESS_MAP_START( superslave_io, AS_IO, 8, superslave_state )
AM_RANGE(0x0c, 0x0f) AM_DEVREADWRITE(Z80DART_1_TAG, z80dart_device, ba_cd_r, ba_cd_w)
AM_RANGE(0x10, 0x10) AM_MIRROR(0x03) AM_WRITE(baud_w)
AM_RANGE(0x14, 0x17) AM_DEVREADWRITE(Z80PIO_TAG, z80pio_device, read_alt, write_alt)
- AM_RANGE(0x18, 0x1c) AM_DEVREADWRITE(AM9519_TAG, pic8259_device, read, write)
+ AM_RANGE(0x18, 0x18) AM_MIRROR(0x02) AM_DEVREADWRITE(AM9519_TAG, am9519_device, data_r, data_w)
+ AM_RANGE(0x19, 0x19) AM_MIRROR(0x02) AM_DEVREADWRITE(AM9519_TAG, am9519_device, stat_r, cmd_w)
AM_RANGE(0x1d, 0x1d) AM_WRITE(memctrl_w)
AM_RANGE(0x1e, 0x1e) AM_NOP // master communications
AM_RANGE(0x1f, 0x1f) AM_READWRITE(status_r, cmd_w)
@@ -380,8 +381,8 @@ MACHINE_CONFIG_START(superslave_state::superslave)
MCFG_Z80_DAISY_CHAIN(superslave_daisy_chain)
// devices
- MCFG_DEVICE_ADD(AM9519_TAG, PIC8259, 0)
- MCFG_PIC8259_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
+ MCFG_DEVICE_ADD(AM9519_TAG, AM9519, 0)
+ MCFG_AM9519_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_DEVICE_ADD(Z80PIO_TAG, Z80PIO, XTAL(8'000'000)/2)
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))