using System; namespace BizHawk.Emulation.Computers.Commodore64.MOS { // the functions on this port are at the point of // view of an external device. public class SerialPort { public Func DeviceReadAtn; public Func DeviceReadClock; public Func DeviceReadData; public Func DeviceReadReset; public Action DeviceWriteAtn; public Action DeviceWriteClock; public Action DeviceWriteData; public Action DeviceWriteSrq; public Func SystemReadAtn; public Func SystemReadClock; public Func SystemReadData; public Func SystemReadSrq; public Action SystemWriteAtn; public Action SystemWriteClock; public Action SystemWriteData; public Action SystemWriteReset; // Connect() needs to set System functions above public SerialPort() { DeviceReadAtn = (() => { return true; }); DeviceReadClock = (() => { return true; }); DeviceReadData = (() => { return true; }); DeviceReadReset = (() => { return true; }); DeviceWriteAtn = ((bool val) => { }); DeviceWriteClock = ((bool val) => { }); DeviceWriteData = ((bool val) => { }); DeviceWriteSrq = ((bool val) => { }); SystemReadAtn = (() => { return true; }); SystemReadClock = (() => { return true; }); SystemReadData = (() => { return true; }); SystemReadSrq = (() => { return true; }); SystemWriteAtn = ((bool val) => { }); SystemWriteClock = ((bool val) => { }); SystemWriteData = ((bool val) => { }); SystemWriteReset = ((bool val) => { }); } public void HardReset() { } } }