Previous 199869 Revisions Next

r21016 Wednesday 13th February, 2013 at 04:47:34 UTC by R. Belmont
(MESS) Apple II: Allow Super Serial Card to connect to MESS's serial terminal and null modem devices. [R. Belmont]
[src/mess/machine]a2ssc.c

trunk/src/mess/machine/a2ssc.c
r21015r21016
99#include "emu.h"
1010#include "includes/apple2.h"
1111#include "machine/a2ssc.h"
12#include "machine/terminal.h"
13#include "machine/null_modem.h"
14#include "machine/serial.h"
1215
1316
1417/***************************************************************************
r21015r21016
2326
2427#define SSC_ROM_REGION  "ssc_rom"
2528#define SSC_ACIA_TAG    "ssc_acia"
29#define SSC_RS232_TAG   "ssc_rs232"
2630
31static SLOT_INTERFACE_START( rs232_devices )
32   SLOT_INTERFACE("serial_terminal", SERIAL_TERMINAL)
33   SLOT_INTERFACE("null_modem", NULL_MODEM)
34SLOT_INTERFACE_END
2735
36static const rs232_port_interface rs232_intf =
37{
38   DEVCB_DEVICE_LINE_MEMBER(SSC_ACIA_TAG, mos6551_device, rxd_w),
39   DEVCB_DEVICE_LINE_MEMBER(SSC_ACIA_TAG, mos6551_device, dcd_w),
40   DEVCB_DEVICE_LINE_MEMBER(SSC_ACIA_TAG, mos6551_device, dsr_w),
41   DEVCB_NULL,
42   DEVCB_DEVICE_LINE_MEMBER(SSC_ACIA_TAG, mos6551_device, cts_w)
43};
44
2845MACHINE_CONFIG_FRAGMENT( ssc )
2946   MCFG_MOS6551_ADD(SSC_ACIA_TAG, XTAL_1_8432MHz, DEVWRITELINE(DEVICE_SELF, a2bus_ssc_device, acia_irq_w))
47   MCFG_MOS6551_RXD_TXD_CALLBACKS(NULL, DEVWRITELINE(SSC_RS232_TAG, rs232_port_device, tx))
48
49   MCFG_RS232_PORT_ADD(SSC_RS232_TAG, rs232_intf, rs232_devices, NULL, NULL)
3050MACHINE_CONFIG_END
3151
3252ROM_START( ssc )
r21015r21016
160180
161181UINT8 a2bus_ssc_device::read_cnxx(address_space &space, UINT8 offset)
162182{
163   return m_rom[offset+0x700];
183   return m_rom[(offset&0xff)+0x700];
164184}
165185
166186/*-------------------------------------------------
r21015r21016
212232      case 0xb:
213233         m_acia->write(space, offset-8, data);
214234         break;
215
216235   }
217236}
218237

Previous 199869 Revisions Next


© 1997-2024 The MAME Team