FPΣ
13.8 Table of Instructions
13 - 55
No. Name Boolean Operand Description Steps
F80 16-bit binary
data → 4-digit
BCD data
BCD S, D Converts the 16 bits of binary data specified by “S” to
four digits of BCD data and stores it in “D”.
Example: K100 → H100
5
F81 4-digit BCD
data → 16-bit
binary data
BIN S, D Converts the four digits of BCD data specified by “S” to
16 bits of binary data and stores it in “D”.
Example: H100 → K100
5
F82 32-bit binary
data → 8-digit
BCD data
DBCD S, D Converts the 32 bits of binary data specified by (S+1,
S) to eight digits of BCD data and stores it in (D+1, D).
7
F83 8-digit BCD
data → 32-bit
binary data
DBIN S, D Converts the eight digits of BCD data specified by
(S+1, S) to 32 bits of binary data and stores it in (D+1,
D).
7
F84 16-bit data in-
vert
INV D Inverts each bit of data of “D”. 3
F85 16-bit data
complement of
2
NEG D Inverts each bit of data of “D” and adds 1 (inverts the
sign).
3
F86 32-bit data
complement of
2
DNEG D Inverts each bit of data of (D+1, D) and adds 1 (inverts
the sign).
3
F87 16-bit data ab-
solute
ABS D Gives the absolute value of the data of “D”. 3
F88 32-bit data ab-
solute
DABS D Gives the absolute value of the data of (D+1, D). 3
F89 16-bit data sign
extension
EXT D Extends the 16 bits of data in “D” to 32 bits in (D+1, D). 3
F90 Decode DECO S, n, D Decodes part of the data of “S” and stores it in “D”. The
part is specified by “n”.
7
F91 7-segment
decode
SEGT S, D Converts the data of “S” for use in a 7-segment display
and stores it in (D+1, D).
5
F92 Encode ENCO S, n, D Encodes part of the data of “S” and stores it in “D”. The
part is specified by “n”.
7
F93 16-bit data
digit combine
UNIT S, n, D The least significant digit of each of the “n” words of
data beginning at “S” are stored (united) in order in “D”.
7
F94 16-bit data
digit distribute
DIST S, n, D Each of the digits of the data of “S” are stored in
(distributed to) the least significant digits of the areas
beginning at “D”.
7
F95 ASCII code
conversion
ASC S, D Twelve characters of the character constants of “S” are
converted to ASCII code and stored in “D” to “D+5”.
15
F96 16-bit table
data search
SRC S1, S2, S3 The data of “S1” is searched for in the areas in the
range “S2” to “S3” and the result is stored in DT90037
and DT90038.
7
F97 32-bit table
data search
DSRC S1, S2, S3 The data of (S1+1, S1) is searched for in the 32-bit
data designated by “S3”, beginning from “S2”, and the
result is stored in DT90037 and DT90038.
9