03-08-2013, 02:26 PM
SUBTRACTION OF TWO 8 BIT NUMBERS
AIM:
To perform the subtraction of two 8 bit numbers using 8085.
ALGORITHM:
Start the program by loading the first data into Accumulator.
Move the data to a register (B register).
Get the second data and load into Accumulator.
Subtract the two register contents.
Check for carry.
If carry is present take 2’s complement of Accumulator.
Store the value of borrow in memory location.
Store the difference value (present in Accumulator) to a memory
location and terminate the program.
RESULT:
Thus the program to subtract two 8-bit numbers was executed.