Home | History | Annotate | Download | only in libcpu

Lines Matching refs:modrm

49   unsigned int modrm : 1;
169 uint_fast8_t modrm = data[0];
176 if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80)
179 else if ((modrm & 0xc0) == 0x40)
182 else if ((modrm & 0xc0) == 0)
187 if ((modrm & 0xc7) == 6)
196 if ((modrm & 0x4) == 0)
198 "xp"[(modrm >> 1) & 1], "sd"[modrm & 1]);
201 ((const char [4][3]) { "si", "di", "bp", "bx" })[modrm & 3]);
213 if ((modrm & 7) != 4)
218 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80)
221 else if ((modrm & 0xc0) == 0x40)
224 else if ((modrm & 0xc0) == 0)
233 (prefixes & has_rex_b) ? hiregs[modrm & 7] :
235 aregs[modrm & 7]);
246 else if ((modrm & 0xc7) != 5)
252 (prefixes & has_rex_b) ? hiregs[modrm & 7] :
254 aregs[modrm & 7]);
291 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80
292 || ((modrm & 0xc7) == 0x4 && (sib & 0x7) == 0x5))
295 else if ((modrm & 0xc0) == 0x40)
304 if ((modrm & 0xc0) != 0 || (sib & 0x3f) != 0x25
319 if ((modrm & 0xc7) != 0x4 || (sib & 0x7) != 0x5)
391 uint_fast8_t modrm = d->data[d->opoff1 / 8];
392 if ((modrm & 0xc0) == 0xc0)
397 uint_fast8_t byte = modrm & 7;
421 uint_fast8_t modrm = d->data[d->opoff1 / 8];
422 if ((modrm & 0xc0) == 0xc0)
427 uint_fast8_t byte = modrm & 7;
936 uint_fast8_t modrm = d->data[d->opoff1 / 8];
937 if ((modrm & 0xc0) == 0xc0)
955 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
962 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
981 uint_fast8_t modrm = d->data[d->opoff1 / 8];
982 if ((modrm & 0xc0) == 0xc0)
1016 uint_fast8_t modrm = data[d->opoff1 / 8];
1017 if ((modrm & 0xc0) == 0xc0)
1038 "r%db", 8 + (modrm & 7));
1041 char *cp = stpcpy (bufp + *bufcntp, hiregs[modrm & 7]);
1049 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1050 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1063 cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
1070 cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
1089 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1090 if ((modrm & 0xc0) == 0xc0)
1097 bufp[(*bufcntp)++] = "acdb"[modrm & 3];
1098 bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
1110 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1111 if ((modrm & 0xc0) == 0xc0)
1115 uint_fast8_t byte = modrm & 7;
1135 uint_fast8_t modrm = d->data[d->opoff1 / 8];
1136 if ((modrm & 0xc0) == 0xc0)
1140 uint_fast8_t byte = modrm & 7;