361
SEG, SEGP
1
2
3
4
4
6
7
8
7.5 Data processing instructions
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 00111111
1 0001 00000110
2 0010 01011011
3 0011 01001111
4 0100 01100110
5 0101 01101101
6 0110 01111101
7 0111 00100111
8 1000 01111111
9 1001 01101111
A 1010 01110111
B 1011 01111100
C 1100 00111001
D 1101 01011110
E 1110 01111001
F 1111 01110001
Head number of bit device
Lowest bit of word device
D
Y4F
00100111
8 points
Y48
SEG K7 K2Y48
After execution
Before execution
b15
0000000
0
b8
SEG K7D8
Bit device
Word device
00
1
00
11
1
b7
b0
D8
7-segment display data is
stored in lower 8 bits.
Upper 8 bits are
always filled with 0s.
S
D
B0
B6
B3
B5
B1
B4 B