03-08-2013, 02:29 PM
DIVISION OF TWO 8 BIT NUMBERS
AIM:
To perform the division of two 8 bit numbers using 8085.
ALGORITHM:
Start the program by loading HL register pair with address of memory location.
Move the data to a register(B register).
Get the second data and load into Accumulator.
Compare the two numbers to check for carry.
Subtract the two numbers.
Increment the value of carry .
Check whether repeated subtraction is over and store the value of product and
carry in memory location.
Terminate the program.
RESULT:
Thus the program to divide two 8-bit numbers was executed.