Search This Blog

Wednesday, March 9, 2011

Program to find teo's Complement......

Program to find two's complement of data stored at memory address 2100H....

For two's complement again we will use XRI operation and add 01H to its answers. Meaning we are finding ones complement then adding it with 1 to get the twos complement.

LDA 2100H;
ADI A, 01;
STA 2101H;

No comments:

Post a Comment