示例#1
0
文件: Repl.cs 项目: joshpeterson/mos
 public Repl(ProgrammingModel model, Memory memory)
 {
     registry = new InstructionRegistry();
       this.model = model;
       this.memory = memory;
       assembler = new Assembler(registry.All);
       fetcher = new Fetcher(model, memory);
       decoder = new Decoder(registry.All);
       executor = new Executor(registry.All, model, memory);
       coreLoop = new CoreLoop(fetcher, decoder, executor);
 }
示例#2
0
 public CoreLoop(Fetcher fetcher, Decoder decoder, Executor executor)
 {
     this.fetcher = fetcher;
       this.decoder = decoder;
       this.executor = executor;
 }