Questions tagged [xed]

Intel x86 Encoder Decoder Software Library

The Intel x86 Encoder Decoder Software Library is an open-source library that can be used to decode and encode x86 machine code.

https://intelxed.github.io/

5 questions
2
votes
1 answer

How can I compile a set of ASM instructions in X86 Encoder Decoder (XED) syntax

I need to generate random ASM instructions. I found a really helpful XML file from UOPS which makes the random instruction generator program really simple. However, the XML file provides the instructions in Intel's X86 Encoder Decoder (XED) syntax,…
user10732596
1
vote
1 answer

GitHub XED Building Instructions

I'm trying to follow the abbreviated GITHUB building instructions as shown here and here git clone https://github.com/intelxed/xed.git xed git clone https://github.com/intelxed/mbuild.git mbuild cd xed ./mfile.py The first three commands works…
JkT
  • 103
  • 7
1
vote
1 answer

Intel XED (disassembler) -as [Address to start disassembling] option doesn't work

This one works fine yet provides all of the machine addresses as beginning at zero: xed -i Halt7.obj I really need the machine addresses to begin at their COFF object file offsets. Here is what I have tried: They give me the help message (list…
polcott
  • 143
  • 1
  • 13
0
votes
0 answers

Intel XED: different function call addresses when decoding the same instruction

Consider the C code below: #include void greet(void){ printf("Hello!\n"); } int main (){ greet(); return 0; } I compiled it with gcc to a 64-bit ELF called hello. Then in my first experiment, I disassembled (decoded) the…
Farzam
  • 131
  • 2
  • 13
0
votes
1 answer

intel xed decoded instruction doesn't perfectly match the 8086 assembly code

I am playing a little bit with xed with in mind the purpose to write a little emulator of the intel 8086 and I want to use xed as the decoder. But when I am writing a little code in asm (compiled with nasm): [CPU 8086] mov al, 0x7F xor bx, bx xchg…
Adrien
  • 439
  • 4
  • 15