A set of ten packed BCD numbers is stored in the memory location starting at 3050H. i. Write a program with a subroutine to add these numbers in BCD. If a carry is generated, save it in register B,...


A set of ten packed BCD numbers is stored in the memory location starting at 3050H.<br>i. Write a program with a subroutine to add these numbers in BCD. If a carry is<br>generated, save it in register B, and adjust it for BCD. The final sum will be less<br>than 9999sCD.<br>ii. Write a second subroutine to unpack the BCD sum stored in registers A and B,<br>and store them in the memory locations starting at 3070H. The most significant<br>digit (BCD4) should be stored at 3070H and the least significant digit (BCD)<br>at 3073H.<br>

Extracted text: A set of ten packed BCD numbers is stored in the memory location starting at 3050H. i. Write a program with a subroutine to add these numbers in BCD. If a carry is generated, save it in register B, and adjust it for BCD. The final sum will be less than 9999sCD. ii. Write a second subroutine to unpack the BCD sum stored in registers A and B, and store them in the memory locations starting at 3070H. The most significant digit (BCD4) should be stored at 3070H and the least significant digit (BCD) at 3073H.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here