Home
last modified time | relevance | path

Searched refs:modrm (Results 1 – 25 of 32) sorted by relevance

12

/external/google-breakpad/src/third_party/libdisasm/
Dia32_modrm.c93 static void byte_decode(unsigned char b, struct modRM_byte *modrm) { in byte_decode() argument
96 modrm->mod = b >> 6; /* top 2 bits */ in byte_decode()
97 modrm->reg = (b & 56) >> 3; /* middle 3 bits */ in byte_decode()
98 modrm->rm = b & 7; /* bottom 3 bits */ in byte_decode()
144 x86_op_t *op, struct modRM_byte *modrm ) { in modrm_decode16() argument
149 switch( modrm->rm ) { in modrm_decode16()
174 if ( modrm->mod != MOD16_MOD_NODISP ) { in modrm_decode16()
189 if ( modrm->mod == MOD16_MOD_DISP8 ) { in modrm_decode16()
194 } else if ( modrm->mod == MOD16_MOD_DISP16 ) { in modrm_decode16()
214 struct modRM_byte modrm; in ia32_modrm_decode() local
[all …]
Dia32_invariant.c64 static void byte_decode(unsigned char b, struct modRM_byte *modrm) { argument
66 static inline void byte_decode(unsigned char b, struct modRM_byte *modrm) {
70 modrm->mod = b >> 6; /* top 2 bits */
71 modrm->reg = (b & 56) >> 3; /* middle 3 bits */
72 modrm->rm = b & 7; /* bottom 3 bits */
76 struct modRM_byte modrm; local
84 byte_decode(*in, &modrm); /* get bitfields */
94 if ( ! mode_16 && modrm.rm == MODRM_RM_SIB &&
95 modrm.mod != MODRM_MOD_NOEA ) {
105 if ( sib.base == SIB_BASE_EBP && ! modrm.mod ) {
[all …]
Dia32_operand.c41 unsigned int op_value, unsigned char modrm, in decode_operand_value() argument
90 ia32_reg_decode( modrm, op, REG_CTRL_OFFSET ); in decode_operand_value()
93 ia32_reg_decode( modrm, op, REG_DEBUG_OFFSET ); in decode_operand_value()
96 ia32_reg_decode( modrm, op, gen_regs ); in decode_operand_value()
99 ia32_reg_decode( modrm, op, REG_MMX_OFFSET ); in decode_operand_value()
102 ia32_reg_decode( modrm, op, REG_SEG_OFFSET ); in decode_operand_value()
105 ia32_reg_decode( modrm, op, REG_TEST_OFFSET ); in decode_operand_value()
108 ia32_reg_decode( modrm, op, REG_SIMD_OFFSET ); in decode_operand_value()
382 unsigned char modrm ) { in ia32_decode_operand() argument
417 op_size, raw_op, modrm, gen_regs ); in ia32_decode_operand()
Dia32_insn.c265 unsigned char modrm; in ia32_decode_insn() local
295 modrm = GET_BYTE( buf, buf_len ); in ia32_decode_insn()
307 raw_insn->dest_flag, prefixes, modrm ); in ia32_decode_insn()
314 raw_insn->src_flag, prefixes, modrm ); in ia32_decode_insn()
320 raw_insn->aux_flag, prefixes, modrm ); in ia32_decode_insn()
Dia32_operand.h10 unsigned char modrm );
/external/elfutils/libcpu/
Di386_data.h49 unsigned int modrm : 1; member
169 uint_fast8_t modrm = data[0]; in general_mod$r_m() local
176 if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80) in general_mod$r_m()
179 else if ((modrm & 0xc0) == 0x40) in general_mod$r_m()
182 else if ((modrm & 0xc0) == 0) in general_mod$r_m()
187 if ((modrm & 0xc7) == 6) in general_mod$r_m()
196 if ((modrm & 0x4) == 0) in general_mod$r_m()
198 "xp"[(modrm >> 1) & 1], "sd"[modrm & 1]); in general_mod$r_m()
201 ((const char [4][3]) { "si", "di", "bp", "bx" })[modrm & 3]); in general_mod$r_m()
213 if ((modrm & 7) != 4) in general_mod$r_m()
[all …]
Di386_disasm.c591 if (instrtab[cnt].modrm) in i386_disasm()
593 uint_fast8_t modrm = codep[-1]; in i386_disasm() local
599 if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80) in i386_disasm()
601 else if ((modrm & 0xc0) == 0x40) in i386_disasm()
608 if ((modrm & 0xc0) != 0xc0 && (modrm & 0x7) == 0x4) in i386_disasm()
612 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80 in i386_disasm()
613 || ((modrm & 0xc7) == 0x4 && (codep[0] & 0x7) == 0x5)) in i386_disasm()
615 else if ((modrm & 0xc0) == 0x40) in i386_disasm()
906 ADD_STRING (tttn[codep[-1 - instrtab[cnt].modrm] & 0x0f]); in i386_disasm()
Di386_parse.y117 int modrm; member
851 instr->modrm = 1; in fillin_arg()
1204 fprintf (outfile, " .modrm = %d,", instr->modrm); in instrtable_out()
/external/capstone/bindings/java/capstone/
DX86.java74 public byte modrm; field in X86.UnionOpInfo
110 public byte modrm; field in X86.OpInfo
128 modrm = e.modrm; in OpInfo()
/external/capstone/bindings/vb6/
DCX86Inst.cls85 Public modrm As Byte
126 push r, "modrm: " & Hex(modrm)
173 Me.modrm = cs.modrm
/external/syzkaller/pkg/ifuzz/
Ddecode.go140 modrm := text1[0]
142 mod := modrm >> 6
143 rm := modrm & 7
Dencode.go198 modrm := mod<<6 | reg<<3 | rm
199 code = append(code, modrm)
/external/capstone/bindings/ocaml/
Dx86.ml34 modrm: int; RecordField
Dtest_x86.ml62 printf "\tmodrm: 0x%x\n" x86.modrm;
/external/capstone/bindings/python/capstone/
Dx86.py73 a.modrm, a.sib, a.disp, a.sib_index, a.sib_scale, \
/external/capstone/cstool/
DREADME33 modrm: 0xd8
Dcstool_x86.c29 printf("\tmodrm: 0x%x\n", x86->modrm); in print_insn_detail_x86()
/external/v8/src/x64/
Ddisasm-x64.cc650 byte modrm = *data; in PrintOperands() local
652 get_modrm(modrm, &mod, &regop, &rm); in PrintOperands()
686 byte modrm = *(data + 1); in PrintImmediateOp() local
688 get_modrm(modrm, &mod, &regop, &rm); in PrintImmediateOp()
731 byte modrm = *(data + 1); in F6F7Instruction() local
733 get_modrm(modrm, &mod, &regop, &rm); in F6F7Instruction()
785 byte modrm = *(data + count); in ShiftInstruction() local
787 get_modrm(modrm, &mod, &regop, &rm); in ShiftInstruction()
Dassembler-x64.cc204 byte modrm = operand.data().buf[0]; in OperandBuilder() local
205 DCHECK_LT(modrm, 0xC0); // Disallow mode 3 (register target). in OperandBuilder()
206 bool has_sib = ((modrm & 0x07) == 0x04); in OperandBuilder()
207 byte mode = modrm & 0xC0; in OperandBuilder()
209 int base_reg = (has_sib ? operand.data().buf[1] : modrm) & 0x07; in OperandBuilder()
230 data_.buf[0] = (modrm & 0x3F) | (is_baseless ? 0x00 : 0x80); in OperandBuilder()
236 data_.buf[0] = (modrm & 0x3F) | 0x40; // Mode 1. in OperandBuilder()
241 data_.buf[0] = (modrm & 0x3F); // Mode 0. in OperandBuilder()
/external/v8/src/ia32/
Ddisasm-ia32.cc525 byte modrm = *data; in PrintOperands() local
527 get_modrm(modrm, &mod, &regop, &rm); in PrintOperands()
553 byte modrm = *(data+1); in PrintImmediateOp() local
555 get_modrm(modrm, &mod, &regop, &rm); in PrintImmediateOp()
582 byte modrm = *++data; in F7Instruction() local
584 get_modrm(modrm, &mod, &regop, &rm); in F7Instruction()
624 byte modrm = *++data; in D1D3C1Instruction() local
626 get_modrm(modrm, &mod, &regop, &rm); in D1D3C1Instruction()
/external/linux-kselftest/tools/testing/selftests/x86/
Dmpx-mini-test.c231 uint8_t modrm; in get_next_inst_ip() local
254 modrm = *ip++; in get_next_inst_ip()
257 rm = modrm & 7; in get_next_inst_ip()
258 mod = (modrm >> 6); in get_next_inst_ip()
/external/capstone/bindings/python/
Dtest_x86.py49 print("\tmodrm: 0x%x" % (insn.modrm))
/external/capstone/tests/
Dtest_x86.c52 printf("\tmodrm: 0x%x\n", x86->modrm); in print_insn_detail()
/external/capstone/bindings/java/
DTestX86.java59 System.out.printf("\tmodrm: 0x%x\n", operands.modrm); in print_ins_detail()
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Disassembler/X86/
Dx86-64.txt602 # Make sure we ignore EVEX.X when modrm.rm encodes a GPR.
606 # Make sure we ignore EVEX.X when modrm.rm encodes a k-register.

12