summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/ieee488/c8280.c
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2015-05-22 22:07:25 +0300
committer Curt Coder <curtcoder@mail.com>2015-05-22 22:07:25 +0300
commit326d57e8eba3e2abb6de1844f5f3092d14c82dd9 (patch)
tree1012d5d21759aa8d40f367cb91fd80119c24d812 /src/emu/bus/ieee488/c8280.c
parent274254c4bdd27a5ccf2f449e62f6bcc3dee990a3 (diff)
(MESS) c8280: Refactored to use the new 6532. (nw)
Diffstat (limited to 'src/emu/bus/ieee488/c8280.c')
-rw-r--r--src/emu/bus/ieee488/c8280.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/emu/bus/ieee488/c8280.c b/src/emu/bus/ieee488/c8280.c
index 444989c8242..003459c9591 100644
--- a/src/emu/bus/ieee488/c8280.c
+++ b/src/emu/bus/ieee488/c8280.c
@@ -73,10 +73,10 @@ const rom_entry *c8280_device::device_rom_region() const
//-------------------------------------------------
static ADDRESS_MAP_START( c8280_main_mem, AS_PROGRAM, 8, c8280_device )
- AM_RANGE(0x0000, 0x007f) AM_MIRROR(0x100) AM_RAM // 6532 #1
- AM_RANGE(0x0080, 0x00ff) AM_MIRROR(0x100) AM_RAM // 6532 #2
- AM_RANGE(0x0200, 0x021f) AM_MIRROR(0xd60) AM_DEVREADWRITE(M6532_0_TAG, riot6532_device, read, write)
- AM_RANGE(0x0280, 0x029f) AM_MIRROR(0xd60) AM_DEVREADWRITE(M6532_1_TAG, riot6532_device, read, write)
+ AM_RANGE(0x0000, 0x007f) AM_MIRROR(0x100) AM_DEVICE(M6532_0_TAG, mos6532_t, ram_map)
+ AM_RANGE(0x0080, 0x00ff) AM_MIRROR(0x100) AM_DEVICE(M6532_1_TAG, mos6532_t, ram_map)
+ AM_RANGE(0x0200, 0x021f) AM_MIRROR(0xd60) AM_DEVICE(M6532_0_TAG, mos6532_t, io_map)
+ AM_RANGE(0x0280, 0x029f) AM_MIRROR(0xd60) AM_DEVICE(M6532_1_TAG, mos6532_t, io_map)
AM_RANGE(0x1000, 0x13ff) AM_MIRROR(0xc00) AM_RAM AM_SHARE("share1")
AM_RANGE(0x2000, 0x23ff) AM_MIRROR(0xc00) AM_RAM AM_SHARE("share2")
AM_RANGE(0x3000, 0x33ff) AM_MIRROR(0xc00) AM_RAM AM_SHARE("share3")
@@ -292,16 +292,16 @@ static MACHINE_CONFIG_FRAGMENT( c8280 )
MCFG_CPU_ADD(M6502_DOS_TAG, M6502, XTAL_12MHz/8)
MCFG_CPU_PROGRAM_MAP(c8280_main_mem)
- MCFG_DEVICE_ADD(M6532_0_TAG, RIOT6532, XTAL_12MHz/8)
- MCFG_RIOT6532_IN_PA_CB(READ8(c8280_device, dio_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8(c8280_device, dio_w))
+ MCFG_DEVICE_ADD(M6532_0_TAG, MOS6532n, XTAL_12MHz/8)
+ MCFG_MOS6530n_IN_PA_CB(READ8(c8280_device, dio_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(c8280_device, dio_w))
- MCFG_DEVICE_ADD(M6532_1_TAG, RIOT6532, XTAL_12MHz/8)
- MCFG_RIOT6532_IN_PA_CB(READ8(c8280_device, riot1_pa_r))
- MCFG_RIOT6532_OUT_PA_CB(WRITE8(c8280_device, riot1_pa_w))
- MCFG_RIOT6532_IN_PB_CB(READ8(c8280_device, riot1_pb_r))
- MCFG_RIOT6532_OUT_PB_CB(WRITE8(c8280_device, riot1_pb_w))
- MCFG_RIOT6532_IRQ_CB(INPUTLINE(M6502_DOS_TAG, INPUT_LINE_IRQ0))
+ MCFG_DEVICE_ADD(M6532_1_TAG, MOS6532n, XTAL_12MHz/8)
+ MCFG_MOS6530n_IN_PA_CB(READ8(c8280_device, riot1_pa_r))
+ MCFG_MOS6530n_OUT_PA_CB(WRITE8(c8280_device, riot1_pa_w))
+ MCFG_MOS6530n_IN_PB_CB(READ8(c8280_device, riot1_pb_r))
+ MCFG_MOS6530n_OUT_PB_CB(WRITE8(c8280_device, riot1_pb_w))
+ MCFG_MOS6530n_IRQ_CB(INPUTLINE(M6502_DOS_TAG, INPUT_LINE_IRQ0))
MCFG_CPU_ADD(M6502_FDC_TAG, M6502, XTAL_12MHz/8)
MCFG_CPU_PROGRAM_MAP(c8280_fdc_mem)
@@ -431,9 +431,10 @@ void c8280_device::device_reset()
m_riot0->reset();
m_riot1->reset();
-
m_fdc->reset();
+ m_riot1->pa7_w(1);
+
m_fk5 = 0;
m_floppy = NULL;
m_fdc->set_floppy(m_floppy);
@@ -449,8 +450,7 @@ void c8280_device::ieee488_atn(int state)
{
update_ieee_signals();
- // set RIOT PA7
- m_riot1->porta_in_set(!state << 7, 0x80);
+ m_riot1->pa7_w(state);
}