6F3B0253

7. Instructions

Rotate operations

FUN

Name

Expression

Function

Steps

Speed

Page

No.

 

 

 

 

 

(s)

 

078

1 bit rotate

[ RTR1 A ]

 

Rotates data of A 1 bit to the

 

 

 

 

right

 

 

right (LSB direction). The

2

6.8

172

 

 

 

 

carry flag changes according

 

 

 

 

 

 

 

 

 

 

 

to the result.

 

 

 

079

1 bit rotate left

[ RTL1 A ]

 

Rotates data of A 1 bit to the

 

 

 

 

 

 

 

left (MSB direction). The

2

6.8

173

 

 

 

 

carry flag changes according

 

 

 

 

 

 

 

 

 

 

 

to the result.

 

 

 

080

n bit rotate

[ A RTR n

B ]

Rotates data of A n bits to

 

 

 

 

right

 

 

the right (LSB direction) and

 

 

 

 

 

 

 

stores the result in B. The

4

10.2

174

 

 

 

 

carry flag changes according

 

 

 

 

 

 

 

to the result.

 

 

 

081

n bit rotate left

[ A RTL n

B ]

Rotates data of A n bits to

 

 

 

 

 

 

 

the left (MSB direction) and

 

 

 

 

 

 

 

stores the result in B. The

4

10.2

175

 

 

 

 

carry flag changes according

 

 

 

 

 

 

 

to the result.

 

 

 

Compare instructions

FUN

Name

Expression

Function

 

Steps

Speed

Page

No.

 

 

 

 

 

(s)

 

096

Greater than

[ A > B ]

Turns ON output if A >

B.

3

6.1

178

097

Greater than or

[ A >= B ]

Turns ON output if A

B.

3

5.3

179

 

equal

 

 

 

 

 

 

 

 

 

 

098

Equal

[ A = B ]

Turns ON output if A =

B.

3

5.0

180

099

Not equal

[ A <> B ]

Turns ON output if A

B.

3

5.0

181

100

Less than

[ A < B ]

Turns ON output if A <

B.

3

6.1

182

101

Less than or

[ A <= B ]

Turns ON output if A

B.

3

5.3

183

 

equal

 

 

 

 

 

 

 

 

 

 

102

Double-word

[ A+1A D> B+1B ]

Turns ON output

 

3

6.1

184

 

greater than

 

if A+1A > B+1B.

 

 

 

 

 

 

 

103

Double-word

[ A+1A D>= B+1B ]

Turns ON output

 

 

 

 

 

greater than or

 

if A+1A B+1B.

 

3

5.3

185

 

equal

 

 

 

 

 

 

104

Double-word

[ A+1A D= B+1B ]

Turns ON output

 

3

5.0

186

 

equal

 

if A+1A = B+1B.

 

 

 

 

 

 

 

105

Double-word

[ A+1A D<> B+1B ]

Turns ON output

 

3

5.0

187

 

not equal

 

if A+1A B+1B.

 

 

 

 

 

 

 

106

Double-word

[ A+1A D< B+1B ]

Turns ON output

 

3

6.1

188

 

less than

 

if A+1A < B+1B.

 

 

 

 

 

 

 

107

Double-word

[ A+1A D<= B+1B ]

Turns ON output

 

 

 

 

 

less than or

 

if A+1A B+1B.

 

3

5.3

189

 

equal

 

 

 

 

 

 

110 T1-16S User’s Manual

Page 112
Image 112
Toshiba 6F3B0253 user manual Rotate operations, Compare instructions