Google Search

Thursday, October 13, 2011

ADDITION OF TWO BCD NUMBERS MICROPROCESSOR AND MICROCONTROLLER LAB MANUAL


                    ADDITION OF TWO BCD NUMBERS

Aim: -   To write an assembly language program for addition of two BCD numbers.

            MOV AL, A
            ADD AL, B
             DAA
             MOV R, AL
             MOV AL, 00
             ADC AL , 00
            MOV R+1, AL
             END

Result: Addition of two BCD numbers is obtained.

0 comments:

Post a Comment