示例#1
0
 private void ExecuteCycle()
 {
     var(instruction, operands) = _Program.Fetch(State);
     _InstructionSet[instruction](State, operands);
 }
示例#2
0
 public Executor(InstructionSet <VmState, Instruction, Operands> instructionSet, IProgram <VmState, Instruction, Operands> program, VmState vmState)
 {
     _InstructionSet = instructionSet;
     _Program        = program;
     State           = vmState;
 }