public static void RegisterTo(IVirtualMachine vm) { var instruction = new Instruction(); instruction.AddToDictionary(vm.Instructions); vm.RegisterCommand('[', b => { if (b.Memory[b.MemoryPointer] == 0) { b.InstructionPointer = instruction.Begin[b.InstructionPointer]; } }); vm.RegisterCommand(']', b => b.InstructionPointer = instruction.End[b.InstructionPointer] - 1); }