Question: write assembly code for: Decimal ( BCD ) summation of a vector of 8 words and storing the result in total. Without Conversion to binarySum

write assembly code for: Decimal (BCD) summation of a vector of 8 words and storing the result in total. Without Conversion to binarySum one packed decimal (BCD) number to another. The length in bytes of both numbers is in the byte variable LENGTH. The numbers themselves are in the variables NUM1 and NUM2 respectively. Add the number contained in NUM1 to the one contained in NUM2. Store the sum in NUM3.Sample Problem:Input: LENGTH 6(Number of bytes in each number)NUM1(The first number is 36701985783410)367019857834NUM2(The second number is 12663459326910)126634593269Output: NUM3(Sum is49365445110310)493654451103That is 367019857834+126634593269=493654451103
write assembly code for: Decimal (BCD) summation of a vector of 8 words and storing the result in total. Without Conversion to binary
Sum one packed decimal (BCD) number to another. The length in bytes of both numbers is in the byte variable LENGTH. The numbers themselves are in the variables NUM1 and NUM2 respectively. Add the number contained in NUM1 to the one contained in NUM2. Store the sum in NUM3.
Sample Problem:
NUM1(The first number is (:36701985783410
write assembly code for: Decimal ( BCD )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!