Add 8 Bit BCD Numbers

Posted on

Add 8 bit BCD numbers

Add 8 Bit BCD Numbers is the program written in assembly language and describes the algorithm of adding two 8 bit BCD numbers through Assembly program code. This program will take numbers as input one by one and then add those BCD numbers. You can find complete steps and algorithm below step by step.

Algorithm :

Step I       :    Initialize the data memory.

Step II     :    Get the first BCD number in AL.

Step III   :    Get the second BCD number in BL.

Step IV    :    Add the two BCD numbers.

Step V     :    Using DAA, adjust result to valid BCD number.

Step VI    :    Display the result.

Step VII  :    Stop.

  Program : 

 

 

Source projectgeek.com