
Chapter 5. Application instructions
5-72
5.11 Data processing instructions
5.11.1 SEG, SEGP
SEG
(7 segment)
FUN(174) SEG
FUN(175) SEGP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
O O O O O O O
O O
O O O O*
O O
O O
SEG
SEGP
O
7
O
* Available only when do not use computer link module or data link module
1) Functions
-
The format of ‘Cw ’
a) s : The start bit of [ S ].
b) d : The start bit of [ D ]
c) x : Don’t care
d) x : Numbers of decoded nibbles. (range : 0 ~ F)
-
Decodes the data of z
×
4 bits block that start from the s
th
bit of device specified at [ S ] into 7
segment display data and stores the r esult to the z
×8
bits block that starts from the s
th
bit of device
[ D ].
Operand setting
SEG
SEGP
S
D
S
D
The device at which source
data is stored
The device which will store
7 segment display data
D
D
S
S
Cw
Cw
Information for start bit and
numbers of transferred bits
Cw
Cw
h
s
d
x
z