コード例 #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);
        }
コード例 #2
0
 public MovCommand(ProcessorModel parent) : base(parent)
 {
 }
コード例 #3
0
 public CommandRegister(ProcessorModel parent) : base(parent)
 {
 }
コード例 #4
0
 public ValueRegister(ProcessorModel parent) : base(parent)
 {
 }
コード例 #5
0
 public StatusRegister(ProcessorModel parent) : base(parent)
 {
 }
コード例 #6
0
 public Register(ProcessorModel parent)
 {
     this.Parent = parent;
     value       = new BitValue(new bool[ProcessorModel.BIT_LENGTH]);
 }
コード例 #7
0
 public Command(ProcessorModel parent)
 {
     this.Parent = parent;
 }