6F3B0250

7. Instructions

FUN 079

RTL1

1 bit rotate left

Expression

Input -[ RTL1 A ]- Output

Function

When the input is ON, the data of register A is rotated 1 bit to the left (MSB direction). The pushed out bit state is stored in the right most bit (LSB) and in the carry flag (CF = S050). 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.

XW

YW

RW

SW

T

C

D

I

J

K

 

 

A

Operation data

 

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

 

Ö

Example

When X008 is changed from OFF to ON, the data of RW15 is rotated 1 bit to the left. The figure below shows an operation example.

CF 1

(MSB)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(LSB)

 

 

F E D C B A 9 8 7 6 5 4 3 2 1 0

 

 

1

 

1

1

0

0

1

1

1

0

0

1

1

1

0

1

 

0

 

RW15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RW15 (Result)

 

1

 

1

0

0

1

1

1

0

0

1

1

1

0

1

0

 

1

 

 

 

 

 

 

 

 

R002 is turned ON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Basic Hardware and Function 191

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 193
Image 193
Toshiba 6F3B0250, PROSEC T1 T1S user manual RTL1, Bit rotate left