Exemplo n.º 1
0
        static ProcessorModel CreateProcessorModel()
        {
            string sourceFileName = "../../AssemblerCode.txt";

            string[] inputLines = File.ReadAllLines(sourceFileName);

            var commands = ExtractCommands(inputLines);

            var model = new ProcessorModel();

            model.SetProgram(commands);

            return(model);
        }
Exemplo n.º 2
0
 public MovCommand(ProcessorModel parent) : base(parent)
 {
 }
 public CommandRegister(ProcessorModel parent) : base(parent)
 {
 }
 public ValueRegister(ProcessorModel parent) : base(parent)
 {
 }
 public StatusRegister(ProcessorModel parent) : base(parent)
 {
 }
 public Register(ProcessorModel parent)
 {
     this.Parent = parent;
     value       = new BitValue(new bool[ProcessorModel.BIT_LENGTH]);
 }
Exemplo n.º 7
0
 public Command(ProcessorModel parent)
 {
     this.Parent = parent;
 }