B-8
INSTRUCTION FORMATS AND ENCODINGS
BTS Bit Test and Set
register, immediate
0000 1111 : 1011 1010 : 11 101 reg: imm8 data
memory, immediate
0000 1111 : 1011 1010 : mod 101 r/m : imm8 data
register1, register2
0000 1111 : 1010 1011 : 11 reg2 reg1
memory, reg
0000 1111 : 1010 1011 : mod reg r/m
CALL Call Procedure (in same segment)
direct
1110 1000 : full displacement
register indirect
1111 1111 : 11 010 reg
memory indirect
1111 1111 : mod 010 r/m
CALL Call Procedure (in other segment)
direct
1001 1010 : unsigned full offset, selector
indirect
1111 1111 : mod 011 r/m
CBW Convert Byte to Word
1001 1000
CDQ Convert Doubleword to Qword
1001 1001
CLC Clear Carry Flag
1111 1000
CLD Clear Direction Flag
1111 1100
CLI Clear Interrupt Flag
1111 1010
CLTS Clear Task-Switched Flag in CR0
0000 1111 : 0000 0110
CMC Complement Carry Flag
1111 0101
CMOVcc Conditional Move
register2 to register1
0000 1111: 0100 tttn : 11 reg1 reg2
memory to register
0000 1111: 0100 tttn : mod mem r/m
CMP Compare Two Operands
register1 with register2
0011 100w : 11 reg1 reg2
register2 with register1
0011 101w : 11 reg1 reg2
memory with register
0011 100w : mod reg r/m
register with memory
0011 101w : mod reg r/m
immediate with register
1000 00sw : 11 111 reg : immediate data
immediate with AL, AX, or EAX
0011 110w : immediate data
immediate with memory
1000 00sw : mod 111 r/m
CMPS/CMPSB/CMPSW/CMPSD Compare String
Operands
1010 011w
CMPXCHG Compare and Exchange
register1, register2
0000 1111 : 1011 000w : 11 reg2 reg1
memory, register
0000 1111 : 1011 000w : mod reg r/m
Table B-10. Integer Instruction Formats and Encodings (Contd.)
Instruction and Format
Encoding