beautypg.com

Instructions – Toshiba 6F3B0253 User Manual

Page 113

background image

6F3B0253

Basic Hardware and Function

111

7. Instructions

Compare instructions (continued)

FUN

No.

Name

Expression

Function

Steps

Speed

(

µ

s)

Page

108 Unsigned

greater than

[ A U> B ]

Turns ON output if A

>

B.

(Unsigned integer compare)

3

190

109 Unsigned

greater than or
equal

[ A U>= B ]

Turns ON output if A

B.

(Unsigned integer compare)

3

191

110 Unsigned

equal

[ A U= B ]

Turns ON output if A

=

B.

(Unsigned integer compare)

3

192

111 Unsigned

not equal

[ A U<> B ]

Turns ON output if A

B.

(Unsigned integer compare)

3

193

112 Unsigned

less than

[ A U< B ]

Turns ON output if A

<

B.

(Unsigned integer compare)

3

194

113 Unsigned

less than or
equal

[ A U<= B ]

Turns ON output if A

B.

(Unsigned integer compare)

3

195

Special data processing

FUN

No.

Name

Expression

Function

Steps

Speed

(

µ

s)

Page

If A is a device:
Sets device A to ON.

114 Device/register

set

[ SET A ]

If A is a register:
Stores HFFFF in register A.

2

4.2

196

If A is a device:
Resets device A to OFF.

115 Device/register

reset

[ RST A ]

If A is a register:
Stores 0 in register A.

2

4.2

197

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 2

n

bits starting with register A, and
stores it in B.

4

57.0 -
141.4

200

121 Decode

[ A DEC (n) B ]

In the bit file of size 2

n

bits

starting with register B, sets ON
the bit position indicated by
lower n bits of A, and resets
OFF all other bits.

4

69.5 -

99.1

201

122 Bit count

[ A BC B ]

Counts the number of ON bits
of A and stores it in B.

3

202

147 Flip-flop

S F/F Q
R A

Sets ON device A when set
input (S) is ON, and resets OFF
device A when reset input (R) is
ON.
(Reset takes priority)

2

26.7

215

149 Up-down

counter

U U/D Q
C
E A

While enable input (E) is ON,
counts up or down the number
of cycles the count input (C)
comes ON, depending on the
up/down select input (U).
Up when U is ON, down when U
is OFF.

2

30.1

216