Question: Write an 8 0 5 1 ALP to add two multi - byte BCD numbers together and store the result in RAM locations 4 0

Write an 8051 ALP to add two multi-byte BCD numbers together and store the result in RAM
locations 40H-44H. The two multi-byte items are stored in the ROM space starting at 120 H
and 150 H . See the following example data.
ORG 120 H
DATA_1: DB 54H,76H,65H,98H;number 98657654 H
DATA_2 DB 93H,56H,77H,38H ;number 38775693H
Pick your own data for your program. Notice that you must first bring the data from ROM
space into the CPU's RAM and then add them together. Use a simulator to single-step the
program and examine the data.
Write an 8 0 5 1 ALP to add two multi - byte 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!