BCD to 7 segment code conversion

BCD to 7 segment code conversion Algorithm

Step I       :    Initialize the data segment.
Step II     :    Load the offset of look up table in BX.
Step III   :    Load AL with key i.e. digit whose 7             
                      segment code is to be found.
Step IV    :    Compute 7 segment code using XLAT
                      instruction.
Step V     :    Display the result.
Step VI    :    Stop.

BCD to 7 segment code conversion Code