Home | History | Annotate | Download | only in libcpu

Lines Matching refs:modrm

46   unsigned int modrm : 1;
166 uint_fast8_t modrm = data[0];
173 if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80)
176 else if ((modrm & 0xc0) == 0x40)
179 else if ((modrm & 0xc0) == 0)
184 if ((modrm & 0xc7) == 6)
193 if ((modrm & 0x4) == 0)
195 "xp"[(modrm >> 1) & 1], "sd"[modrm & 1]);
198 ((const char [4][3]) { "si", "di", "bp", "bx" })[modrm & 3]);
210 if ((modrm & 7) != 4)
215 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80)
218 else if ((modrm & 0xc0) == 0x40)
221 else if ((modrm & 0xc0) == 0)
230 (prefixes & has_rex_b) ? hiregs[modrm & 7] :
232 aregs[modrm & 7]);
243 else if ((modrm & 0xc7) != 5)
249 (prefixes & has_rex_b) ? hiregs[modrm & 7] :
251 aregs[modrm & 7]);
288 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80
289 || ((modrm & 0xc7) == 0x4 && (sib & 0x7) == 0x5))
292 else if ((modrm & 0xc0) == 0x40)
301 if ((modrm & 0xc0) != 0 || (sib & 0x3f) != 0x25
316 if ((modrm & 0xc7) != 0x4 || (sib & 0x7) != 0x5)
388 uint_fast8_t modrm = d->data[d->opoff1 / 8];
389 if ((modrm & 0xc0) == 0xc0)
394 uint_fast8_t byte = modrm & 7;
418 uint_fast8_t modrm = d->data[d->opoff1 / 8];
419 if ((modrm & 0xc0) == 0xc0)
424 uint_fast8_t byte = modrm & 7;
933 uint_fast8_t modrm = d->data[d->opoff1 / 8];
934 if ((modrm & 0xc0) == 0xc0)
952 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
959 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
978 uint_fast8_t modrm = d->data[d->opoff1 / 8];
979 if ((modrm & 0xc0) == 0xc0)
1013 uint_fast8_t modrm = data[d->opoff1 / 8];
1014 if ((modrm & 0xc0) == 0xc0)
1035 "r%db", 8 + (modrm & 7));
1038 char *cp = stpcpy (bufp + *bufcntp, hiregs[modrm & 7]);
1046 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1047 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1060 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
1067 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
1086 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1087 if ((modrm & 0xc0) == 0xc0)
1094 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1095 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1107 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1108 if ((modrm & 0xc0) == 0xc0)
1112 uint_fast8_t byte = modrm & 7;
1132 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1133 if ((modrm & 0xc0) == 0xc0)
1137 uint_fast8_t byte = modrm & 7;