![Infineon Technologies TC1784 User Manual Download Page 787](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_2055446787.webp)
TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-122
V1.1, 2011-05
PCP, V2.09
10.18.30 RL, Rotate Left
This section describes the RL instruction of the PCP.
10.18.31 RR, Rotate Right
This section describes the RR instruction of the PCP.
RL
Syntax
RL Ra, #imm5
Description
Rotate the contents of register Ra to the left by the number of
bit positions specified through the 5-bit value imm5. The
values defined for imm5 are 1, 2, 4 and 8. The carry flag,
R7.C, is set to the last bit shifted out of bit 31 of register Ra.
Operation
tmp = R[a]
R[a] = R[a] << imm5; imm5 = 1, 2, 4, 8
R7_C = last bit shifted out of R[a]
tmp = tmp >> 32 - imm5
R[a] = tmp OR R[a]
Flags
N, Z
RR
Syntax
RR Ra, #imm5
Description
Rotate the contents of register Ra to the right by the number
of bit positions specified through the 5-bit value imm5. The
values allowed for imm5 are 1, 2, 4 and 8.
Operation
tmp = R[a]
R[a] = R[a] >> imm5; imm5 = 1, 2, 4, 8
tmp = tmp << 32 - imm5
R[a] = tmp OR R[a]
Flags
N, Z
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...