Home
last modified time | relevance | path

Searched refs:modrm (Results 1 – 25 of 27) 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.c593 if (instrtab[cnt].modrm) in i386_disasm()
595 uint_fast8_t modrm = codep[-1]; in i386_disasm() local
601 if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80) in i386_disasm()
603 else if ((modrm & 0xc0) == 0x40) in i386_disasm()
610 if ((modrm & 0xc0) != 0xc0 && (modrm & 0x7) == 0x4) in i386_disasm()
614 if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80 in i386_disasm()
615 || ((modrm & 0xc7) == 0x4 in i386_disasm()
619 else if ((modrm & 0xc0) == 0x40) in i386_disasm()
911 ADD_STRING (tttn[codep[-1 - instrtab[cnt].modrm] & 0x0f]); in i386_disasm()
Di386_parse.y117 int modrm; member
852 instr->modrm = 1; in fillin_arg()
1205 fprintf (outfile, " .modrm = %d,", instr->modrm); in instrtable_out()
/external/capstone/suite/cstest/
Dissues.cs19 …0x00 0x00 0x00 ; Opcode:0x83 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x3d ; disp: 0x21…
23 …0x00 0x00 0x00 ; Opcode:0x0f 0x95 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x44 ; disp: 0x5e…
27 …0x00 0x00 0x00 ; Opcode:0x0f 0x94 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x44 ; disp: 0x1f…
31 …0x00 0x00 0x00 ; Opcode:0xdb 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x7c ; disp: 0x40…
35 …0x00 0x00 0x00 ; Opcode:0xdd 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0xd9 ; disp: 0x0 …
39 …0x00 0x00 0x00 ; Opcode:0xdf 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x7c ; disp: 0x68…
75 …0x00 0x66 0x00 ; Opcode:0xa3 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 4 ; modrm: 0x0 ; disp: 0x804…
103 …0x64 0x00 0x00 ; Opcode:0xa3 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 4 ; modrm: 0x0 ; disp: 0x0 ;…
115 …0x00 0x00 0x00 ; Opcode:0x0f 0x29 0x00 0x00 ; rex: 0x0 ; addr_size: 8 ; modrm: 0x8d ; disp: 0xff…
175 …0x00 0x00 0x00 ; Opcode:0xa3 0x00 0x00 0x00 ; rex: 0x0 ; addr_size: 4 ; modrm: 0x0 ; disp: 0x100…
[all …]
/external/capstone/bindings/java/capstone/
DX86.java85 public byte modrm; field in X86.UnionOpInfo
125 public byte modrm; field in X86.OpInfo
147 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
Dmx86.bas398 modrm As Byte ' ModR/M byte UNSIGNED
/external/capstone/bindings/ocaml/
Dx86.ml34 modrm: int; RecordField
Dtest_x86.ml61 printf "\tmodrm: 0x%x\n" x86.modrm;
/external/capstone/bindings/python/capstone/
Dx86.py81 a.modrm, a.sib, a.disp, a.sib_index, a.sib_scale, \
D__init__.py642 self.modrm, self.sib, self.disp, \
/external/capstone/cstool/
DREADME33 modrm: 0xd8
Dcstool_x86.c197 printf("\tmodrm: 0x%x\n", x86->modrm); in print_insn_detail_x86()
/external/capstone/bindings/python/
Dtest_x86.py146 print("\tmodrm: 0x%x" % (insn.modrm))
/external/capstone/suite/cstest/src/
Dx86_detail.c210 add_str(&result, " ; modrm: 0x%x", x86->modrm); in get_detail_x86()
/external/capstone/bindings/java/
DTestX86.java62 System.out.printf("\tmodrm: 0x%x\n", operands.modrm); in print_ins_detail()
/external/capstone/tests/
Dtest_x86.c202 printf("\tmodrm: 0x%x\n", x86->modrm); in print_insn_detail()
/external/llvm-project/llvm/test/MC/Disassembler/X86/
Dx86-64.txt617 # Make sure we ignore EVEX.X when modrm.rm encodes a GPR.
621 # Make sure we ignore EVEX.X when modrm.rm encodes a k-register.
/external/capstone/bindings/python/pyx/
Dccapstone.pyx33 self.modrm, self.sib, self.disp, \
/external/capstone/arch/X86/
DX86Disassembler.c888 pub->detail->x86.modrm = inter->orgModRM; in update_pub_insn()

12