How do I disassemble raw 16-bit x86 machine code? How do I disassemble raw 16-bit x86 machine code? linux linux

How do I disassemble raw 16-bit x86 machine code?


You can use objdump. According to this article the syntax is:

objdump -D -b binary -mi386 -Maddr16,data16 mbr


The GNU tool is called objdump, for example:

objdump -D -b binary -m i8086 <file>


I like ndisasm for this purpose. It comes with the NASM assembler, which is free and open source and included in the package repositories of most linux distros.