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++;
}
}