B-6
INSTRUCTION FORMATS AND ENCODINGS
.
B.2.INTEGER INSTRUCTION FORMATS AND ENCODINGS
Table B-10 shows the formats and encodings of the integer instructions.
Table B-9. Encoding of Operation Direction (d) Bit
d
Source
Destination
0reg Field
ModR/M or SIB Byte
1ModR/M or SIB Byte
reg Field
Table B-10. Integer Instruction Formats and Encodings
Instruction and Format
Encoding
AAA ASCII Adjust after Addition
0011 0111
AAD ASCII Adjust AX before Division
1101 0101 : 0000 1010
AAM ASCII Adjust AX after Multiply
1101 0100 : 0000 1010
AAS ASCII Adjust AL after Subtraction
0011 1111
ADC ADD with Carry
register1 to register2
0001 000w : 11 reg1 reg2
register2 to register1
0001 001w : 11 reg1 reg2
memory to register
0001 001w : mod reg r/m
register to memory
0001 000w : mod reg r/m
immediate to register
1000 00sw : 11 010 reg : immediate data
immediate to AL, AX, or EAX
0001 010w : immediate data
immediate to memory
1000 00sw : mod 010 r/m : immediate data
ADD Add
register1 to register2
0000 000w : 11 reg1 reg2
register2 to register1
0000 001w : 11 reg1 reg2
memory to register
0000 001w : mod reg r/m
register to memory
0000 000w : mod reg r/m
immediate to register
1000 00sw : 11 000 reg : immediate data
immediate to AL, AX, or EAX
0000 010w : immediate data
immediate to memory
1000 00sw : mod 000 r/m : immediate data