## 8085 program for 2's complement of a number

Finding Two's complement of a number, 2's complement program in 8085

2's complement of 8 bit number in 8085

Statement: Find the 2's complement of the number stored at memory location 4200H and store the complemented number at memory location 4300H.

Sample problem:

(4200H) = 55H

Result = (4300H) = AAH + 1 = ABH

Source program:

LDA 4200H : Get the number

CMA : Complement the number

ADI, 01H : Add one in the number

STA 4300H : Store the result

HLT : Terminate program execution

## 2 comments:

integrity constraints in dbms

canonical cover

8086 pin diagram

doubly linked list

Absolute Loaders

Three Dimensional Display Methods

Storage allocation strategies

Different Loading Schemes

You are doing a great job.Keep it up!

~Your friend Khan.

## Post a Comment