
Instruction Set
4-190
RCR
RCR
Flag Settings After Instruction
If
count=0, flags are unaffected. Otherwise, flags are affected as shown below:
Examples
This example rotates the bits of a byte to the left, making sure that the high bit remains 0.
Tips
Use RCR to change the order of the bits within a component and the value of one of the bits.
Related Instructions
If you want to
See
Clear CF to 0
CLC
Toggle the value of CF
CMC
Rotate the bits of a component and the value of CF to the left
RCL
Rotate the bits of a component to the left
ROL
Rotate the bits of a component to the right
ROR
Multiply an integer by a power of 2
SAL/SHL
Divide an integer by a power of 2
SAR
Shift the bits of the operand downward
SHR
Set CF to 1
STC
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
Undefined unless single-bit rotation, then:
OF=1 if result larger than destination operand
OF=0 otherwise
?
–
–
–
–
– res – res – res
CF=value of bit shifted into it
; 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...