6F3B0253
174 T1-16S User’s Manual
7. Instructions

FUN 080 RTR n bit rotate right

Expression
Input [ A RTR n B ] Output
Function
When the input is ON, the data of register A is rotated n bits to the right (LSB direction), and stored
in B. After the operation, if the right most bit (LSB) is ON, the output is turned ON.
Execution condition
Input Operation O utput CF
OFF No execution OFF
ON Ex ecution W hen LSB = 1 ON Set or reset
When LSB = 0 O FF Set or reset
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
ASource √√√√√√√√√√ √
nShift bits 1 - 16
BDestination √√√√√√√√√ √
Example
When X007 is changed from OFF to ON, the data of RW18 is rotated 5 bits to the right and the
result is stored in RW20.
The figure below shows an operation example.
(MSB) (LSB)
FEDCBA9876543210
RW18 0100001010011010
CF
RW20 1101001000010100 1
(Result)
R001 is turned OFF