ADDITION OF TWO BCD NUMBERS MICROPROCESSOR AND MICROCONTROLLER LAB MANUAL - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

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.

No comments:

Post a Comment