Toshiba 6F3B0253 Sprinkler User Manual


 
6F3B0253
Basic Hardware and Function 175
7. Instructions
FUN 081 RTL n bit rotate left
Expression
Input [ A RTL n B ] Output
Function
When the input is ON, the data of register A is rotated n bits to the left (MSB direction), and stored
in B. After the operation, if the left most bit (MSB) is ON, the output is turned ON.
Execution condition
Input Operation Output CF
OFF No execution OFF
ON Execution When MSB = 1 ON Set or reset
When MSB = 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 Source
√√√√√√√√√√
n Shift bits 1 - 16
B Destination
√√√√√√√√√
Example
When X008 is changed from OFF to ON, the data of RW18 is rotated 3 bits to the left and the
result is stored in RW20.
The figure below shows an operation example.
(MSB) (LSB)
FEDCBA9876543210
1010011100111010
CF
1 0011100111010101
R002 is turned OFF
RW18
RW20 (Result)