You have no items in your shopping cart.

Subtotal: 0.00

Addition of two numbers using 8085

8-BIT ADDITION

AIM

To perform 8-bit addition of two 8-bit data and store the result in memory.

THEORY

The first data is brought to Accumulator A and the second one in any one of the other registers, say B. The addition is done using ADD. The result is then stored at 8652. The ADD instruction affects flags depending on result.

 
ASSEMBLY PROGRAM TO ADD TWO 8 BIT NUMBER

ADDRESS

OPCODE

MNEMONICS

8500

3A 50 86

LDA 8650

8503

47

MOV B,A

8504

3A 51 86

LDA 8651

8507

80

ADD B

8508

32 52 86

STA 8652

850B

76

HLT


PROCEDURE
  • Key in the opcodes from the address specified.
  • Enter data at 8650 and 8651 as specified in the Example.
  • Execute the program and check for the result at 8652.
  • Change data at 8650 and 8651 and execute each time and check for result.
EXAMPLE

The two data to be added are at 8650 and 8651. The result is stored at 8652.
DATA: (8650) = 23
(8651) = 35
RESULT: (8652) = 58.

RESULT

Thus the Addition of two 8 bit numbers is stored in the resultant memory