4 ms·
I've recently taken an interest in CPU architecture and your wonderful article couldn't have come at a better time for me. Thank you. Beginner question: In th
by theresLand 4y ago
I've recently taken an interest in CPU architecture and your wonderful article couldn't have come at a better time for me. Thank you.
Beginner question:
In the example of the 3-byte instruction using the immediate value:
ADD AX,1234
Is this instruction 3 bytes long because 'ADD AX' is encoded in 1 byte while the immediate value '1234' is two bytes long?
- colejohnson66 4y agoYes. ADD AX,Iw is encoded as the single byte, 0x01. That byte indicates that a two byte immediate (Iw, which is 1234 here) follows.