This program adds two 16-bit numbers stored in memory locations 4500 and 4501. It clears the carry flag, loads the first addend into the accumulator, adds the second addend, and stores the sum in the destination memory. It repeats this for the second byte, incrementing the destination pointer after each store. If no carry, it jumps to the label L2, otherwise it increments the counter and stores it as the final result.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
165 views1 page
Addition of Two 16 Bit Numbers
This program adds two 16-bit numbers stored in memory locations 4500 and 4501. It clears the carry flag, loads the first addend into the accumulator, adds the second addend, and stores the sum in the destination memory. It repeats this for the second byte, incrementing the destination pointer after each store. If no carry, it jumps to the label L2, otherwise it increments the counter and stores it as the final result.