47 using namespace X86ISA;
51 assert(machInst.
modRM.mod != 3);
56 base = machInst.
sib.base | (machInst.
rex.b << 3);
59 if (machInst.
sib.base == INTREG_RBP && machInst.
modRM.mod == 0)
62 if (
index == INTREG_RSP)
66 unsigned rm = machInst.
modRM.rm;
74 index = (
rm % 2) ? INTREG_RDI : INTREG_RSI;
95 if (machInst.
modRM.mod == 0 && machInst.
modRM.rm == 5) {
108 int segFromInst = machInst.
legacy.seg;
120 int segFromInst = machInst.
legacy.seg;