0% found this document useful (0 votes)
110 views3 pages

8 Bit Division: Observation: S.No Input Output

The document describes an algorithm for dividing two 8-bit numbers using repeated subtraction. It loads the divisor and dividend from memory addresses 4500 and 4501, then repeatedly subtracts the divisor from the dividend, counting the number of subtractions as the quotient. It stores the quotient and remainder in memory addresses 4502 and 4503. The algorithm is tested using an 8085 microprocessor kit and successfully divides the 8-bit numbers as intended.

Uploaded by

mohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views3 pages

8 Bit Division: Observation: S.No Input Output

The document describes an algorithm for dividing two 8-bit numbers using repeated subtraction. It loads the divisor and dividend from memory addresses 4500 and 4501, then repeatedly subtracts the divisor from the dividend, counting the number of subtractions as the quotient. It stores the quotient and remainder in memory addresses 4502 and 4503. The algorithm is tested using an 8085 microprocessor kit and successfully divides the 8-bit numbers as intended.

Uploaded by

mohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

8 BIT DIVISION

AIM:

To divide two 8-bit numbers and store the result in memory.

ALGORITHM:

LOGIC: Division is done using the method Repeated subtraction.


1. Load Divisor and Dividend
2. Subtract divisor from dividend
3. Count the number of times of subtraction which equals the quotient
4. Stop subtraction when the dividend is less than the divisor .The
dividend now becomes the remainder. Otherwise go to step 2.
5. Stop the program execution.

OBSERVATION:

S.NO INPUT OUTPUT


ADDRESS DATA ADDRESS DATA
1 4500 4502
4501 4503
2 4500 4502
4501 4503

RESULT:
Thus an ALP was written for 8-bit division using repeated subtraction
method and executed using 8085 p kits

24
FLOWCHART:
START

B  00

[HL] 4500

AM

[HL]  [HL]+1

M  A-M

[B]  [B] +1

NO
IS A<0
YES
A  A+ M

B  B-1

[HL] [HL]+1

[M] [A]

[HL] [HL]+1

[M] [B]

STOP
25

You might also like