This document contains a program to add two 8-bit numbers, 98 and 54, and store the result in memory location 4500. The program uses instructions to clear the carry flag, move 98 into the accumulator, add 54 to the accumulator, move the result of 152 (EC hex) into memory location 4500, and jump to the label L1. The manual calculation shows 98 + 54 = EC as the sum of the two 8-bit numbers.
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)
26 views1 page
Addition of Two 8
This document contains a program to add two 8-bit numbers, 98 and 54, and store the result in memory location 4500. The program uses instructions to clear the carry flag, move 98 into the accumulator, add 54 to the accumulator, move the result of 152 (EC hex) into memory location 4500, and jump to the label L1. The manual calculation shows 98 + 54 = EC as the sum of the two 8-bit numbers.