Programming language, Prosec t2n – Toshiba T2N User Manual

Page 247

Advertising
background image

5. Programming Language

234

PROSEC T2N

RTR 1 (A)

RTL 1 (A)

(A) RTR n

(B)

(A) RTL n

(B)

(A) TRTR (m) (B)

(A) TRTL (m) (B)

RRC 1 (A)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Rotate

78

1 bit rotate right

Rotates the data in (A) 1 bit to the right (LSB
direction). The carry flag changes according to the
result.

2

92

79

1 bit rotate left

Rotates the data in (A) 1 bit to the left (MSB
direction). The carry flag changes according to the
result.

2

92

80

n bits rotate right

Rotates the data in (A) n bits to the right (LSB
direction). The carry flag changes according to the
result.

4~5

97

81

n bits rotate left

Rotates the data in (A) n bits to the left (MSB
direction). The carry flag changes according to the
result.

4~5

97

82

m-it file n bits rotate right

When (B) is a register:
Takes the table of m words, headed by (B), and
rotates it to the right (low address direction) by the
number of words specified by (A).

When (B) is a device:
Takes the bit file of m bits, headed by (B), and
rotates it to the right (LSB direction) by the number of
bits specified by (A). The carry flag changes
according to the result.

4~5

83

m-bit file n bits rotate left

When (B) is a register:
Takes the table of m words, headed by (B), and
rotates it to the left (high address direction) by the
number of words specified by (A).

When (B) is a device:
Takes the bit file of m bits, headed by (B), and
rotates it to the left (MSB direction) by the number of
bits specified by (A). The carry flag changes
according to the result.

4~5

84

1 bit rotate right with carry

Rotates the data in (A) 1 bit to the right (LSB
direction) including the carry flag. The carry flag
changes according to the result.

2

102

Advertising