I see the following instruction format description of ADD
according to X86 SDM manual.
This is somehow different from what I have seen before in 8086 instruction format. There we have
OPCODE | DIRECTION | WIDTH MOD | REG | R/M
6 1 1 2 3 3
According to the figure, if we assume 04
as a one byte instruction code, then it will be 00000100
. I guess Ib
is the immediate byte. Therefore, the second byte will be the immediate number.
Sound confusing. Any comment?