0% found this document useful (0 votes)
2 views4 pages

Exp 03 04

The document outlines two experiments using the 8085 Microprocessor: one for multiplying two 8-bit numbers and the other for dividing them. Each experiment includes the aim, required apparatus, detailed procedures, programs with memory addresses and machine codes, results, precautions, industrial applications, and viva questions. The multiplication program stores the result in memory locations 2504 and 2505, while the division program stores the result in location 201C.

Uploaded by

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

Exp 03 04

The document outlines two experiments using the 8085 Microprocessor: one for multiplying two 8-bit numbers and the other for dividing them. Each experiment includes the aim, required apparatus, detailed procedures, programs with memory addresses and machine codes, results, precautions, industrial applications, and viva questions. The multiplication program stores the result in memory locations 2504 and 2505, while the division program stores the result in location 201C.

Uploaded by

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

Experiment No: 3

AIM: - Write a program using 8085 Microprocessor for multiplication of two 8 bit numbers.

APPARATUS REQUIRED: - 8085 Development Kit.

PROCEDURE:-
The following steps are required to implement the program-

1. Enter the numbers at memory location 2501, 2502 and 2503.


2. The result is to be stored in the memory location 2504 & 2505.
3. Used GOTO Command for Executions.
4. Reset to be used before seeing the result at the location 2504.

PROGRAM:-
Memory Machine Label Mnemonics Operands Comments
address codes

2000 2A,01,25 LHLD 2501H Get multiplicand in H-L pair.

2003 EB XCHG Multiplicand in D-E pair.

2004 3A,03,25 LDA 2503H Multiplier in accumulator.

2007 21,00,00 LXI H,0000 Initial value of product=00 in H-L pair

200A 0E,08 MVI C,08 Count=8 in register C

200C 29 LOOP DAD H Shift partial product left by 1 bit.

200D 17 RAL Rotate multiplier left one bit. Is


multiplier’s bit =1?

200E D2,12,20 JNC AHEAD No, go to AHEAD.

2011 19 DAD D Product=product+Multiplicand


2012 0D AHEAD DCR C Decrement count

2013 C2,0C,20 JNZ LOOP

2016 22,04,25 SHLD 2504H Store result

2019 76 HLT Stop

DATA
2501- 84 H, LSBs of multiplicand.

2502- 00H, MSBs of multiplicand.

2503- 56H, Multiplier.

RESULT:-
2504 -58 H, LSBs of product.

2505 – 2C H, MSBs of product.

PRECAUTIONS:-

1. Enter the opcode/data carefully.


2. Don’t pull out any IC and components from any of the experiment at board.
3. Handle all test equipment’s carefully.
4. In case of electric fire, switch off the main supply then use fire extinguisher.
5. Switch off the kit when not in use.

INDUSTRIAL APPLICATION:-

1. To enhance the capability of assembly language programing for industrial / research use.

2. In application desiring the multiplication of data in industry.


VIVA QUESTIONS:-

1. What is meant by a bus?

2. What are the various registers in8085?

3. Why crystal is a preferred clock source?

4. In 8085 which is called as High order / Low order Register?

5. Name 5 different addressing modes?


Experiment No: 5 (B)
AIM: - Write a program using 8085 Microprocessor for division of two 8 bit numbers.

APPARATUS REQUIRED: -8085 Development Kit.

PROCEDURE:-

The following steps are required to implement the program-

1. Enter the numbers at memory location 201A & 201B.


2. The result is to be stored in the memory location 201C.
3. Used GOTO Command for Executions.
4. Reset to be used before seeing the result at the location 201C.
PROGRAM:-

Memory Machine Label Mnemonics Operands Comments


address codes
2000 21,1A,20 START LXI H, 201A Set the memory pointer to 210A and store
the dividend in AC
2003 7E MOV A,M

2004 23 INX H Store the divisor in B register


2005 46 MOV B,M
2006 0E,00 MVI C,00 Clear the counter
2008 B8 CONT CMP B Compare the dividend & divisor for
dividend greater than divisor. If not jump
2009 DA, 11,20 JC ROUND
200C 90 SUB B Subtract the divisor from the dividend
200D 0C INC C
200E C3,08,20 JMP CONT Repeat
2011 07 ROUND RLC Multiply the dividend by two if it was less
than the divisor.
2012 B8 CMP B Test for dividend greater than the divisor
2013 DA,17,20 JC DONE If not jump
2016 0C INR C
2017 23 DONE INX H Store the result in 201C.
2018 71 MOV M,C
2019 76 HLT Stop

Observation Table:-

LOCATION DATA
201A 20
201B 02
RESULT:-
LOCATION DATA
201C 10

PRECAUTIONS:-

1. Enter the opcode/data carefully.


2. Don’t pull out any IC and components from any of the experiment at board.
3. Handle all test equipment’s carefully.
4. In case of electric fire, switch of the main supply then use fire extinguisher.
5. Switch off the kit when not in use.

INDUSTRIAL APPLICATION:-

1. To enhance the capability of assembly language programing for industrial / research use.

2. In applications desiring the division of data in industry.


VIVA QUESTIONS:-

1. In what way interrupts are classified in 8085?

2. What is the difference between primary & secondary storage device?

3. Which Stack is used in 8085?

4. How many bit combinations are there in a byte?

SIGNATURE OF LAB INCHARGE

You might also like