예제 #1
0
        /* (non-Javadoc)
         * @see pspsharp.Allegrex.compiler.IExecutable#exec(int, int, bool)
         *
         * Recompile the codeBlock and set its runtime executable to the recompiled
         * executable.
         */
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public int exec() throws Exception
        public override int exec()
        {
            // Recompile the codeBlock
            int         newInstanceIndex = codeBlock.NewInstanceIndex;
            IExecutable executable       = Compiler.Instance.compile(codeBlock.StartAddress, newInstanceIndex);

            // Set the executable used at runtime to the recompiled executable.
            codeBlock.Executable.Executable = executable;

            // Execute the recompiled executable
            return(executable.exec());
        }