CSPspEmu.Core.Cpu.Dynarec.DynarecFunctionCompiler.InternalFunctionCompiler.EmitCpuInstruction C# (CSharp) Method

EmitCpuInstruction() private method

private EmitCpuInstruction ( ) : AstNodeStm
return AstNodeStm
            private AstNodeStm EmitCpuInstruction()
            {
                try
                {
                    var Nodes = ast.Statements();

                    if (CpuProcessor.NativeBreakpoints.Contains(PC))
                    {
                        Nodes.AddStatement(ast.Statement(ast.CallStatic((Action)IsDebuggerPresentDebugBreak)));
                    }

                    TryPutLabelAT(PC, Nodes);

                    if (_DynarecConfig.UpdatePCEveryInstruction)
                    {
                        Nodes.AddStatement(ast.AssignPC(PC));
                    }

                    Nodes.AddStatement(_GetAstCpuInstructionAT(PC));

                    return Nodes;
                }
                finally
                {
                    PC += 4;
                    InstructionsEmitedSinceLastWaypoint++;
                }
            }