示例#1
0
 public void CpuWrite(int address, int value)
 {
     _subject.CpuWrite(address, value);
     if (Enabled)
     {
         OnCpuWrite?.Invoke(address, value);
     }
 }
示例#2
0
 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);
     }
 }