EasyManua.ls Logo

Toshiba PROSEC T1-16S - Page 174

Toshiba PROSEC T1-16S
301 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6F3B0253
172 T1-16S User’s Manual
7. Instructions
FUN 078 RTR1 1 bit rotate right
Expression
Input [ RTR1 A ] Output
Function
When the input is ON, the data of register A is rotated 1 bit to the right (LSB direction). The pushed
out bit state is stored in the left most bit (MSB) and in the carry flag (CF = S050). After the
operation, if the right most bit (LSB) is ON, the output is turned ON.
Execution condition
Input Operation Output CF
OFF No execution OFF
ON Execution When LSB = 1 ON Set or reset
When LSB = 0 OFF Set or reset
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
A Operation data
√√√√√√√√√
Example
When X007 is changed from OFF to ON, the data of RW15 is rotated 1 bit to the right.
The figure below shows an operation example.
(MSB) (LSB)
FEDCBA9876543210
RW15 0100001010001010
CF
RW15 0010000101000101 0
(Result)
R001 is turned ON

Table of Contents

Related product manuals