ASM program to perform addition of two BCD numbers

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

1
2
3
4
5
6
7
8
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.

Chitra
Chitra

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in