361
SEG, SEGP
1
2
3
4
4
6
7
8
7.5
D
ata pr
ocessin
g instru
ctions
7.5.5
SEG
, SEGP
(2) If is a bit device, indicates the head number of the devices storing the 7-segment display data; if it is a word device,
indicates the number of the device storing the data.
Operation Error
(1) There is no operation error in the SEG(P) instruction.
7-segment decode display
Configuration of 7
Segments
Display Data
Hexadecimal
Bit Pattern
B7 B6 B5 B4 B3 B2 B1 B0
0
0000
0
0
1
1
1
1
1
1
1
0001
0
0
0
0
0
1
1
0
2
0010
0
1
0
1
1
0
1
1
3
0011
0
1
0
0
1
1
1
1
4
0100
0
1
1
0
0
1
1
0
5
0101
0
1
1
0
1
1
0
1
6
0110
0
1
1
1
1
1
0
1
7
0111
0
0
1
0
0
1
1
1
8
1000
0
1
1
1
1
1
1
1
9
1001
0
1
1
0
1
1
1
1
A
1010
0
1
1
1
0
1
1
1
B
1011
0
1
1
1
1
1
0
0
C
1100
0
0
1
1
1
0
0
1
D
1101
0
1
0
1
1
1
1
0
E
1110
0
1
1
1
1
0
0
1
F
1111
0
1
1
1
0
0
0
1
Head number of bit device
Lowest bit of word device
D
Y4F
0 0 1 0 0 1 1 1
8
po
i
nts
Y4
8
S
E
G
K
7
K
2
Y4
8
After
execut
i
on
Before
execut
i
on
b15
0 0 0 0 0 0 0 0
b8
S
E
G
K
7
D8
B
i
t
dev
i
ce
W
ord
dev
i
ce
0 0 1 0 0 1 1 1
b7
b0
D8
7
-
segment
d
i
sp
l
a
y
data
i
s
stored
i
n
l
ower
8
b
i
ts
.
U
pper
8
b
i
ts
are
a
l
wa
y
s
f
ill
ed
w
i
th
0s
.
S
D
B0
B6
B3
B5
B1
B4
B2