Instruction Set
4-26
CLC
Clear Carry Flag
CLC
What It Does
CLC clears the Carry Flag (CF) to 0.
Syntax
Description
CLC clears CF.
Operation It Performs
Flag Settings After Instruction
Examples
This example rotates the bits of a byte to the left, making sure that the high bit remains 0.
Form
Opcode
Description
Clocks
Am186 Am188
CLC
F8
Clear Carry Flag
2
2
CLC
/* clear carry flag */
CF = 0;
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
–
–
–
–
–
– res – res – res 0
; rotate byte, maintaining 0 in high bit
MOV
AL,01101011b
; AL = 01101011b
CLC
; CF = 0
RCR
AL,1
; AL = 00110101b, CF = 1
Содержание Am186 Series
Страница 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Страница 10: ...Table of Contents x...
Страница 18: ...Programming 1 8...
Страница 40: ...Instruction Set Listing 3 14...