public void CpuWrite(int address, int value) { _subject.CpuWrite(address, value); if (Enabled) { OnCpuWrite?.Invoke(address, value); } }
public void CpuWrite(int address, int value) { foreach (var device in Devices) { if (device.CpuWriteChipSelect(address)) { device.CpuWrite(address, value); } } if (EnableTracing) { OnCpuWrite?.Invoke(address, value); } }