public Connector(UserSystem system)
        {
            System = system;

            Lines = new LinkedList <Line>();
            Names = new LinkedList <string>();
        }
Example #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="cpu">
 /// CPU for which code is specified.
 /// </param>
 /// <param name="breakPoints">
 /// Locations in code where there are breakpoints.
 /// </param>
 /// <param name="system">
 /// System on which program is executed.
 /// </param>
 /// <param name="separators">
 /// Array that has informations about points where instruction separators are.
 /// </param>
 /// <param name="entryPoint">
 /// Entry point of the program.
 /// </param>
 /// <param name="psw">
 /// Program status word before exection.
 /// </param>
 /// <param name="output">
 /// Text box representing output.
 /// </param>
 public Executor(CPU cpu, UserSystem system, LinkedList <int> separators, LinkedList <int> breakPoints, TextBoxBase output, byte[] binary, int entryPoint = 0)
 {
     this.cpu         = cpu;
     this.system      = system;
     this.entryPoint  = entryPoint;
     this.separators  = separators;
     this.breakPoints = breakPoints;
     this.output      = output;
     this.binary      = binary;
 }
 public Clipboard(LinkedList <SystemComponent> componentsList, UserSystem system, string projectFolder)
 {
     InitializeComponent();
     this.Visible        = true;
     this.componentsList = componentsList;
     foreach (var component in componentsList)
     {
         componentsListBox.Items.Add(component);
         component.DetachAllSignals();
     }
     this.system        = system;
     system.MyClipboard = this;
     TicksChanged();
     addComponentButton.Enabled        = false;
     frequencyInput.Value              = (decimal)system.Frequency;
     LoadSystemDialog.InitialDirectory = projectFolder + "System";
     SaveSystemDialog.InitialDirectory = projectFolder + "System";
 }
Example #4
0
 /// <summary>
 /// Creates one object of
 /// </summary>
 public Signal(UserSystem system) : base(system)
 {
     ConnectedSignals = new LinkedList <Signal>();
 }
Example #5
0
 public Bus(UserSystem system) : base(system)
 {
     Signals = new LinkedList <Signal>();
     Names   = new LinkedList <string>();
 }