2012-12-05 21:07:51 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Computers.Commodore64.MOS
|
|
|
|
|
{
|
2012-12-06 04:29:08 +00:00
|
|
|
|
// the functions on this port are at the point of
|
|
|
|
|
// view of an external device.
|
|
|
|
|
|
2012-12-05 21:07:51 +00:00
|
|
|
|
public class SerialPort
|
|
|
|
|
{
|
2012-12-06 04:29:08 +00:00
|
|
|
|
public Func<bool> DeviceReadAtn;
|
|
|
|
|
public Func<bool> DeviceReadClock;
|
|
|
|
|
public Func<bool> DeviceReadData;
|
|
|
|
|
public Func<bool> DeviceReadReset;
|
|
|
|
|
public Action<bool> DeviceWriteAtn;
|
|
|
|
|
public Action<bool> DeviceWriteClock;
|
|
|
|
|
public Action<bool> DeviceWriteData;
|
|
|
|
|
public Action<bool> DeviceWriteSrq;
|
|
|
|
|
|
|
|
|
|
public Func<bool> SystemReadAtn;
|
|
|
|
|
public Func<bool> SystemReadClock;
|
|
|
|
|
public Func<bool> SystemReadData;
|
|
|
|
|
public Func<bool> SystemReadSrq;
|
|
|
|
|
public Action<bool> SystemWriteAtn;
|
|
|
|
|
public Action<bool> SystemWriteClock;
|
|
|
|
|
public Action<bool> SystemWriteData;
|
|
|
|
|
public Action<bool> SystemWriteReset;
|
|
|
|
|
|
|
|
|
|
// Connect() needs to set System functions above
|
|
|
|
|
|
2012-12-05 21:07:51 +00:00
|
|
|
|
public void HardReset()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|