相关疑难解决方法(0)

x86指令编码表

我正在重写我的汇编程序.在此期间,我对实施反汇编感到好奇.我想让它变得简单和紧凑,并且我可以利用这些概念.

可以从操作码确定x86指令编码的其余部分(也可能需要前缀字节,一点).我知道很多人都写过表格.

我对助记符和指令编码不感兴趣,因为那是一个实际的难题.对于每个操作码编号,我需要知道:

  • 这条指令包含modrm吗?
  • 这个指令有多少个直接字段?
  • 什么编码立即使用?
  • 是指示指针的直接字段 - 相对地址?
  • modrm用于操作数和寄存器字段的寄存器是什么类型的?

sandpile.org有一些我需要的东西,但它的格式不容易解析.

在我开始自己编写和验证这些表之前,我决定写这个问题.你知道这种桌子存在吗?在一种不需要太多努力解析的形式.

b   byte
w   word
v   word or dword (or qword), depends on operand size attribute (0x66)
z   word or dword (or dword), depends on operand size attribute
J   instruction-relative address (next character describes type)
G   instruction group, has modrm-field (next character describes operand type)
R   has modrm-field (next two characters describe register and operand type)
M   modrm, but operand field must point to memory
O   direct offset (next …
Run Code Online (Sandbox Code Playgroud)

x86 assembly code-generation disassembly

10
推荐指数
2
解决办法
3871
查看次数

标签 统计

assembly ×1

code-generation ×1

disassembly ×1

x86 ×1