Programming language, User's manual – Toshiba T2N User Manual

Page 242

Advertising
background image

User's manual

229

5. Programming Language

(A) MOV (B)

(A)+1·(A) DMOV (B) + 1·(B)

(A) NOT (B)

(A) + 1·(A) DNOT (B) +1·(B)

(A) XCHG (B)

(A) + 1·(A) DXCH (B)+1·(B)

(A) TINZ (n) (B)

(A) TMOV (n) (B)

(A) TNOT (n) (B)

(A) + (B)

(C)

(A) - (B)

(C)

(A)

(B)

(C) +1·(C)

(A) / (B)

(C)

(A) +1·(A) D+(B) +1· (b)

(C)+1·(C)

(A) +1·(A) D–(B) +1· (b)

(C)+1·(C)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Transfer
instructions

18

Data transfer

Transfers contents of (A) to (B).

3~5

1.20

19

Double-length data
transfer

Transfers contents of (A)+1 and (A) to (B)+1 and (B).

3~4

79

20

Invert and transfer

Transfers the bit-reversed data comprising the
contents of (A) to (B).

3

60

21

Double-length invert and
transfer

Transfers the bit-reversed data comprising the
contents of (A)+1 and (A) to (B)+1 and (B).

3~4

82

22

Data exchange

Exchanges the contents of (A) with the contents of
(B).

3~5

144

23

Double-length data
exchange

Exchanges the contents of (A)+ • (A)1 with the
contents of (B)+1 • (B)

3

168

24

Table initialization

Initializes the contents of the table of size n, headed
by (B), by the contents of (A).

4

134+2n

25

Table transfer

Transfers the contents of the table of size n, headed
by (A), to the table headed by (B).

4

206+3.5n

26

Table invert and transfer

Transfers the bit-reversed data comprising the
contents of the table of size n headed by (A) to the
table headed by (B).

4

206+8.5n

27

Addition

Adds the contents of (B) to the contents of (A), and
stores the result in (C).

4~6

1.63

28

Subtraction

Subtracts the contents of (B) from the contents of (A),
and stores the result in (C).

4~6

1.63

29

Multiplication

Multiplies the contents of (A) by the contents of (B)
and stores the result in (C)+1 • (C).

4~6

84

30

Division

Divides the contents of (A) by the contents of (B),
stores the quotient in (C), and the remainder in
(C)+1.

4~6

95

31

Double-length addition

Adds the contents of (B)+1 • (B) to the contents of
(A)+1 and (A), and stores the result in (C)+1 • (C).

4~8

102

32

Double-length subtraction

Subtracts the contents of (B)+1 and (B) from the
content of (A)+1 • (A), and stores the result in (C)+1
• (C).

4~8

103

Advertising