6F3B0253

7. Instructions

Compare instructions (continued)

FUN

Name

Expression

Function

 

Steps

Speed

Page

No.

 

 

 

 

 

(s)

 

108

Unsigned

[ A U> B ]

Turns ON output if A >

B.

3

 

190

 

greater than

 

(Unsigned integer compare)

 

 

 

 

 

 

109

Unsigned

[ A U>= B ]

Turns ON output if A

B.

 

 

 

 

greater than or

 

(Unsigned integer compare)

3

 

191

 

equal

 

 

 

 

 

 

110

Unsigned

[ A U= B ]

Turns ON output if A =

B.

3

 

192

 

equal

 

(Unsigned integer compare)

 

 

 

 

 

 

111

Unsigned

[ A U<> B ]

Turns ON output if A

B.

3

 

193

 

not equal

 

(Unsigned integer compare)

 

 

 

 

 

 

112

Unsigned

[ A U< B ]

Turns ON output if A <

B.

3

 

194

 

less than

 

(Unsigned integer compare)

 

 

 

 

 

 

113

Unsigned

[ A U<= B ]

Turns ON output if A

B.

 

 

 

 

less than or

 

(Unsigned integer compare)

3

 

195

 

equal

 

 

 

 

 

 

Special data processing

FUN

Name

 

 

Expression

Function

Steps

Speed

Page

No.

 

 

 

 

 

 

 

 

 

 

 

(s)

 

114

Device/register

[ SET

A ]

 

If A is a device:

 

 

 

 

set

 

 

 

 

 

 

 

 

Sets device A to ON.

2

4.2

196

 

 

 

 

 

 

 

 

 

 

If A is a register:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Stores HFFFF in register A.

 

 

 

115

Device/register

[ RST

A ]

 

If A is a device:

 

 

 

 

reset

 

 

 

 

 

 

 

 

Resets device A to OFF.

2

4.2

197

 

 

 

 

 

 

 

 

 

 

If A is a register:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Stores 0 in register A.

 

 

 

118

Set carry

[ SETC ]

 

 

 

 

Sets the carry flag to ON.

1

4.2

198

119

Reset carry

[ RSTC ]

 

 

 

 

Resets the carry flag to OFF.

1

4.2

199

120

Encode

[ A ENC

 

(n)

B ]

Finds the uppermost ON bit

 

 

 

 

 

 

 

 

 

 

 

 

 

position in the bit file of size 2n

4

57.0 -

200

 

 

 

 

 

 

 

 

 

 

bits starting with register A, and

141.4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

stores it in B.

 

 

 

121

Decode

[ A DEC

 

(n)

B ]

In the bit file of size 2n bits

 

 

 

 

 

 

 

 

 

 

 

 

 

starting with register B, sets ON

 

69.5 -

 

 

 

 

 

 

 

 

 

 

 

the bit position indicated by

4

201

 

 

 

 

 

 

 

 

 

 

99.1

 

 

 

 

 

 

 

 

 

 

lower n bits of A, and resets

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OFF all other bits.

 

 

 

122

Bit count

[ A BC B ]

 

Counts the number of ON bits

3

 

202

 

 

 

 

 

 

 

 

 

 

of A and stores it in B.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

147

Flip-flop

S

 

F/F

 

 

Q

 

Sets ON device A when set

 

 

 

 

 

 

 

 

 

 

 

R

 

A

 

 

 

 

input (S) is ON, and resets OFF

 

 

 

 

 

 

 

 

 

 

 

 

 

2

26.7

215

 

 

 

 

 

 

 

 

 

 

device A when reset input (R) is

 

 

 

 

 

 

 

 

 

 

ON.

 

 

 

 

 

 

 

 

 

 

 

 

 

(Reset takes priority)

 

 

 

149

Up-down

U

 

U/D

 

 

Q

While enable input (E) is ON,

 

 

 

 

 

 

 

 

 

 

counter

C

 

 

 

 

 

 

 

counts up or down the number

 

 

 

 

 

E

 

 

A

 

 

 

 

of cycles the count input (C)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

comes ON, depending on the

2

30.1

216

 

 

 

 

 

 

 

 

 

 

up/down select input (U).

 

 

 

 

 

 

 

 

 

 

 

 

 

Up when U is ON, down when U

 

 

 

 

 

 

 

 

 

 

 

 

 

is OFF.

 

 

 

Basic Hardware and Function 111

Page 113
Image 113
Toshiba 6F3B0253 user manual Special data processing