9
LatticeMico
8
Microcontroller
Lattice Semiconductor
User’s Guide
ROR Rd, Rb
Rotate right. Register B is shifted right one bit, the highest order bit is replaced with the lowest order bit. The result
is written back to Register Rd. The zero flag is set to 1 if all the bits of the result are 0.
RORC Rd, Rb
Rotate right through carry. The contents of Register B are shifted right one bit, the carry flag is shifted into the high-
est order bit, the lowest order bit is shifted into the carry flag. The zero flag is set to 1 if all the bits of the result are
0.
ROL Rd, Rb
Rotate left. Register B is shifted left by one bit. The highest order bit is shifted into the lowest order bit. The zero flag
is set to 1 if all the bits of the result are 0.
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
0
0
Rd
Rd
Rd
Rd
Rd
Rb
Rb
Rb
Rb
Rb
0
0
0
CY Flag Updated
Zero Flag Updated
No
Yes
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
0
0
Rd
Rd
Rd
Rd
Rd
Rb
Rb
Rb
Rb
Rb
0
0
1
CY Flag Updated
Zero Flag Updated
Yes
Yes
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
1
0
0
Rd
Rd
Rd
Rd
Rd
Rb
Rb
Rb
Rb
Rb
0
1
0
CY Flag Updated
Zero Flag Updated
No
Yes
MSB
C
MSB
MSB