public override void OnProcedureEntered() { FpuStackItems = 0; // We're making an assumption that the direction flag is always clear // when a procedure is entered. This is true of the vast majority of // x86 code out there, and the assumption is certainly made by most // compilers and code libraries. SetFlagGroup(arch.GetFlagGroup((uint)FlagM.DF), Constant.False()); }
public override void OnProcedureEntered() { // We're making an assumption that the direction flag is always clear // when a procedure is entered. This is true of the vast majority of // x86 code out there, and the assumption is certainly made by most // compilers and code libraries. If you know the DF flag is set on // procedure entry, you can manually set that flag using a user- // defined register value. SetFlagGroup(arch.GetFlagGroup(Registers.eflags, (uint)FlagM.DF), Constant.False()); }
public Identifier FlagGroup(FlagM flags) { return(binder.EnsureFlagGroup(arch.GetFlagGroup((uint)flags)));; }