SEG

SEG, SEGP

 

SEG instruction converts source data to 7-segment code and saves the code into the byte of Destination.

 

 

S

Source

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

SEG

SEGP

S

o

o

o

o

o

o

o

o

-

o

o

o

o

3

o

-

-

D

o

-

o

o

o

-

o

o

-

o

o

o

-

 

  • When enabled, the SEG instruction converts data source to 7-segment code and places the code in the Destination.

 

7-Segment Display Table

 

 

Example)

If X01 is ON, the SEG instruction converts H1234 to 7-segments code and places to D0 and D1.