我正在编写自己的汇编程序并尝试对 ADC 指令进行编码,我对立即值有疑问,尤其是在将 8 位值添加到 AX 寄存器时。
添加 16 位值时:adc ax, 0xff33被编码为15 33 ff正确的。但是如果adc ax, 0x33被编码为会重要15 33 00吗?
adc ax, 0xff33
15 33 ff
adc ax, 0x33
15 33 00
Nasm 将83 d0 33其编码为显然是正确的,但我的方法也正确吗?
83 d0 33
x86 assembly machine-code opcode instruction-encoding
assembly ×1
instruction-encoding ×1
machine-code ×1
opcode ×1
x86 ×1