Lines Matching refs:dis_mode
196 eff_opr_mode(int dis_mode, int rex_w, int pfx_opr) in eff_opr_mode() argument
198 if (dis_mode == 64) { in eff_opr_mode()
200 } else if (dis_mode == 32) { in eff_opr_mode()
203 UD_ASSERT(dis_mode == 16); in eff_opr_mode()
210 eff_adr_mode(int dis_mode, int pfx_adr) in eff_adr_mode() argument
212 if (dis_mode == 64) { in eff_adr_mode()
214 } else if (dis_mode == 32) { in eff_adr_mode()
217 UD_ASSERT(dis_mode == 16); in eff_adr_mode()
280 done = (u->dis_mode == 64 && (curr & 0xF0) == 0x40) ? 0 : 1; in decode_prefixes()
285 if (u->dis_mode == 64 && (last & 0xF0) == 0x40) { in decode_prefixes()
334 return u->dis_mode == 64 ? 64 : 32; in resolve_operand_size()
351 if ( u->mnemonic == UD_Iswapgs && u->dis_mode != 64 ) { in resolve_mnemonic()
412 if (u->dis_mode == 64 && u->pfx_rex) { in decode_gpr()
713 uint8_t mask = u->dis_mode == 64 ? 0xf : 0x7; in decode_vex_immreg()
837 if (u->dis_mode == 64) { in decode_operand()
974 if ( u->dis_mode == 64 ) { /* set 64bit-mode flags */ in resolve_mode()
1019 } else if ( u->dis_mode == 32 ) { /* set 32bit-mode flags */ in resolve_mode()
1022 } else if ( u->dis_mode == 16 ) { /* set 16bit-mode flags */ in resolve_mode()
1114 if (u->dis_mode != 64 && MODRM_MOD(inp_peek(u)) != 0x3) { in decode_vex()
1166 idx = u->dis_mode != 64 ? 0 : 1; in decode_ext()
1169 idx = eff_opr_mode(u->dis_mode, REX_W(u->pfx_rex), u->pfx_opr) / 32; in decode_ext()
1172 idx = eff_adr_mode(u->dis_mode, u->pfx_adr) / 32; in decode_ext()