public static GetRegister ( int i ) : RegisterStorage | ||
i | int | |
리턴 | RegisterStorage |
public bool HasSameValues(X86State st2) { for (int i = 0; i < valid.Length; ++i) { if (valid[i] != st2.valid[i]) { return(false); } if (valid[i]) { RegisterStorage reg = Registers.GetRegister(i); ulong u1 = (ulong)(regs[reg.Number] & ((1UL << reg.DataType.BitSize) - 1UL)); ulong u2 = (ulong)(st2.regs[reg.Number] & ((1UL << reg.DataType.BitSize) - 1UL)); if (u1 != u2) { return(false); } } } return(true); }
public override RegisterStorage GetSubregister(int offset, int size) { if (offset == 0) { if (size == 16) { return(Registers.GetRegister(Number + Registers.ax.Number - Registers.ah.Number)); } if (size == 8) { return(this); } } if (offset == 8) { if (size == 8) { return(this); } } return(null); }
public override bool TryGetRegister(string name, out RegisterStorage reg) { reg = Registers.GetRegister(name); return(reg != RegisterStorage.None); }
public override RegisterStorage GetRegister(int i) { return(Registers.GetRegister(i)); }
public RegisterStorage GetRegister(int i) { return(Registers.GetRegister(i)); }
public override void SetRegisterStateValues(Expression value, bool isValid, Dictionary <Storage, Expression> ctx) { base.SetRegisterStateValues(value, isValid, ctx); ctx[Registers.GetRegister(this.regWord)] = Constant.Invalid; ctx[Registers.GetRegister(this.regDword)] = Constant.Invalid; }