public void LuaMain(Prototype prototype) { int regsQuantity = prototype.MaxStackSize; luaState = new LuaAPI.LuaState(prototype); luaState.InitGlobal(prototype); luaState.RunLuaClosureAction = RunLuaClosure; //OpCode returnOp = Instruction.OpCodeTable[38]; Console.WriteLine(); while (true) { Instruction pc = new Instruction(luaState.Fetch()); Console.WriteLine(pc.InstructionName); if (pc.OpCode != 38) { pc.Execute(this); } else { return; } } }