0% 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.

Uploaded by

anandhkr
Copyright
© Attribution Non-Commercial (BY-NC)
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% 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.

Uploaded by

anandhkr
Copyright
© Attribution Non-Commercial (BY-NC)
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
You are on page 1/ 1

ADDITION OF TWO 8-BIT NUMBERS PROGRAM Address 4100 4101 4103 4105 4108 4109 Table Mnemonics &

Operand CLR C MOV A, #98 ADD A, #54 MOV DPTR, #4500 MOV X@DPTR,A SJMP L1 opcode C3 74,98 24,54 90,45,00 F0 80,FE

L1:

Manual Calculation Addition of two 8-bit numbers. Data 1: 98 h Data 2: 54 h SUM : EC h

You might also like