Decoding i386 opcodes to instructions

六月ゝ 毕业季﹏ 提交于 2021-01-03 10:45:18

问题


I'm trying to Is there any good resource available to learn 'decoding' of i386 opcodes? Most of the websites talk about how to encode instructions, but I don't find anywhere something telling as to how to decode opcodes to instructions.

I've looked at the source code of some disassemblers, but I want some documentation as to how to decode opcodes to instructions.

Thanks and Regards,
Hrishikesh Murali


回答1:


Read the processor manuals, they have it described, though maybe not in complete details:

  1. Intel Manuals, in particular see Chapter 2 in Volume 2A and Appendix A in Volume 2B.
  2. AMD Manuals, see Programmer's Manual Volume 3.

See also How to interpret the opcode manually?




回答2:


if you want to lean at a more programmatic level, olly's old disasm engine is a very simple disassembler to learn from (written in C), and if you want to cover the more recent opcodes (and hidden/aliased opcodes), bea-engine is a great open-source disassem engine.



来源:https://stackoverflow.com/questions/6942023/decoding-i386-opcodes-to-instructions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!