57
2
3
4
5
6
7
8
2.5 Application Instructions
2.5.5 Data processing instructions
Category
Instruction Symbol
Symbol Processing Details
Execution
Condition
Number of Basic Steps
Subset
See for Description
Bit checks
SUM
3
Page
356
SUMP
DSUM
3
DSUMP
Decode
DECO
4-
Page
358
DECOP
Encode
ENCO
4-
Page
359
ENCOP
7-segment
decode
SEG
3
Page
360
SEGP
Separating
and linking
DIS
• Separates 16-bit data designated by (S) into
4-bit units, and stores at the lower 4 bits of n
points from (D). (n 4)
4-
Page
362
DISP
UNI
• Links the lower 4 bits of n points from the
device designated by (S) and stores at the
device designated by (D). (n 4)
4-
Page
363
UNIP
NDIS
• Separates the data in the devices starting
from the one specified by (S1) into bits
specified by the devices from (S2), and stores
them to the devices starting from the one
specified by (D).
4-
Page
365
NDISP
NUNI
• Links the data in the devices starting from the
one specified by (S1) with bits specified by
the devices from (S2), and stores them to the
devices starting from the one specified by (D).
NUNIP
WTOB
• Breaks n points of 16-bit data from the device
designated by (S) into 8-bit units, and stores
in sequence at the device designated by (D).
4-
Page
368
WTOBP
BTOW
• Links the lower 8 bits of 16-bit data of n points
from the device designated by (S) into 16-bit
units, and stores in sequence at the device
designated by (D).
BTOWP
SUM SD
b0
b15
(S)
(D): Number of 1s
SUMP SD
DSUM SD
(S)(S + 1)
(D): Number of 1s
DSUMP SD
DECO nDS
(D)
Decode
Decode from 8 to 256
(S)
n
2
n
bits
DECOP nDS
ENCO nDS
(S)
Encode
(D)
n
2 bits
n
Decode from 256 to 8
ENCOP nDS
SEG SD
(S)
(D)
7SEG
0to
SEGP SD
DIS nSD
DISP nSD
UNI nSD
UNIP nSD
NDIS S1 S2D
NDISP S1 S2D
NUNI S1 S2D
NUNIP S1 S2D
WTOB nSD
WTOBP nSD
BTOW nSD
BTOWP nSD