Instruction Set
4-33
CMC
Complement Carry Flag
CMC
What It Does
CMC toggles the value of the Carry Flag (CF).
Syntax
Description
CMC reverses the setting of CF.
Operation It Performs
Flag Settings After Instruction
Related Instructions
Form
Opcode
Description
Clocks
Am186 Am188
CMC
F5
Complement Carry Flag
2
2
If you want to
See
Clear the value of CF to 0
CLC
Rotate the bits of a component and CF to the left
RCL
Rotate the bits of a component and CF to the right
RCR
Set the value of CF to 1
STC
CMC
/* toggle value of carry flag */
CF = ~ CF;
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Processor Status
Flags Register
reserved
OF DF
IF TF SF ZF
AF
PF
CF
? = undefined; – = unchanged
CF contains the complement of its original value
–
–
–
–
–
– res – res – res
Summary of Contents for Am186 Series
Page 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Page 10: ...Table of Contents x...
Page 18: ...Programming 1 8...
Page 40: ...Instruction Set Listing 3 14...