public void Install(IBusDevice device) { if (!Tracers.ContainsKey(device) && !Devices.Contains(device)) { Devices.Insert(0, device); } }
public void ConnectDevice(IBusDevice device) { if (!_connectedDevices.Contains(device)) { _connectedDevices.Add(device); } device.ConnectToBus(this); }
public void Uninstall(IBusDevice device) { if (Tracers.ContainsKey(device)) { var tracer = Tracers[device]; Tracers.Remove(device); Devices.Remove(tracer); } else { Devices.Remove(device); } }
public ITracer InstallTraced(IBusDevice device) { if (Tracers.ContainsKey(device)) { return(Tracers[device]); } if (Devices.Contains(device)) { Devices.Remove(device); } var tracer = new DeviceTracer(device); Tracers[device] = tracer; Devices.Insert(0, tracer); return(tracer); }
public Mcp23x1x(IBusDevice device, int deviceAddress, int reset = -1, int interruptA = -1, int interruptB = -1) : base(device, deviceAddress, reset, interruptA, interruptB) { }
/// <summary> /// Create a CPU device using the specified device as a read/write target. /// </summary> /// <param name="name">Name of the CPU device.</param> /// <param name="busDevice">Device to target with read/write operations.</param> public Cpu6502Device(string name, IBusDevice busDevice) : base(name) { _cpu = new Mos6502(new Mos6502Configuration(0xFF, false, _busRead, _busWrite, () => busDevice.Rdy, () => busDevice.Irq, () => busDevice.Nmi)); _busWrite = busDevice.CpuWrite; _busRead = busDevice.CpuRead; }
/// <summary> /// Create a PPU device. /// </summary> /// <param name="name">Name of the device.</param> /// <param name="system">System to perform reads from.</param> public PpuDevice(string name, IBusDevice system) : base(name) { _system = system; }
public BusDeviceInterface(IBusDevice device, int selectMask, int chipSelect) { BusDevice = device; DeviceSelectMask = selectMask; DeviceChipSelect = chipSelect; }
public CPU(IBusDevice bus) : base(bus) { }
public CPU(IBusDevice bus, e6502Type cpuType) : base(bus, cpuType) { }
public Mcp23x0x(IBusDevice device, int deviceAddress, int reset = -1, int interrupt = -1) : base(device, deviceAddress, reset, interrupt) { }
public McpMock(IBusDevice device, BankStyle bankStyle) : base(device, 0x20, bankStyle: bankStyle) { }
public DeviceTracer(IBusDevice subject) { _subject = subject; Enabled = true; }
public void ConnectDevice(IBusDevice device) { }