我想做汇编编译器。为此,我应该研究汇编操作码,所以我在网上找到了这个。当我测试用 NASM 编译一些代码时,如下所示:
add eax, eax
它以二进制输出:
6601C0
但是,当我看到汇编操作码的参考时,它显示以下屏幕:
其中 ADD 操作码是 00, 01, 02, 03, 04, 05。哪个操作码是正确的?我可以使用所有这些,还是应该使用 01(基于使用 NASM 编译的二进制文件)。
x86 assembly machine-code opcode instruction-encoding
assembly ×1
instruction-encoding ×1
machine-code ×1
opcode ×1
x86 ×1