You are on page 1of 5

MICROPROCESSOR LABORATORY

JADAVPUR UNIVERSITY

NAME:VAISHNA BISWAS

DEPARTMENT OF ELECTRONICS
AND TELECOMMUNICATION
ENGINEERING

THIRD YEAR, FIRST SEMESTER

ROLL NUMBER:001710701001

GROUP: G1

CO-WORKERS:
1)UPAYAN CHATTERJEE(ROLL -001710701002)
2)UDDIPAN KUNDU(ROLL -001710701003)
ASSIGNMENT NO.:3

TITLE:
FAMILIARIZATION WITH THE 8085 MICROPROCESSOR
KIT

OBJECTIVE:
To write down simple illustrative programs and to implement
them using the 8085 microprocessor kit
Q1)Write a program to find the maximum of five numbers and
store it in a particular address
FLOW CHART:
TABLE:

ADDRESS MNEMONICS MACHINE COMMENTS


CODE/OPCODE
C000H LDA F100H 3A Load Accumulator with
C001H 00 value stored at address
C002H F1 F100.
C003H M0V B,A 47 Moves value of register
A to B register.
C004H LDA F101H 3A Load Accumulator with
C005H 00 value stored at address
C006H F1 F101.
C007H CMP B B8 Compares the values of
A and B registers.
C008H JC C00CH D2 Jumps to the address
0C C00CH if carry flag is
C009H 1.
C00AH C0
C00BH MOV B,A 47 Moves value of register
A to B register.
C00CH LDA F102H 3A Load Accumulator with
C00DH 02 value stored at address
C00EH F1 F102.
C00FH CMP B B8 Compares the values of
A and B registers.
C010H JC C014H D2 Jumps to the address
C014H if carry flag is 1.
C011H 14
C012H C0
C013H MOV B,A 47 Moves value of register
A to B register.
C014H LDA F103H 3A Load Accumulator with
C015H 03 value stored at address
C016H F1 F103.
C017H CMP B B8 Compares the values of
A and B registers.
C018H JC C01CH D2 Jumps to the address
1C C01CH if carry flag is
C019H 1.
CO1AH C0
C01BH MOV B,A 47 Moves value of register
A to B register.
C01CH LDA F104H 3A Load Accumulator with
C01DH 04 value stored at address
F104.
C01EH F1
C01FH CMP B B8 Compares the values of
A and B registers.
ADDRESS MNEMONICS MACHINE COMMENTS
CODE/OPCODE

C020H JC C024H D2 Jumps to the address C024H if carry flag is 1.

24

C021H

C022H C0

C023H MOV B,A 47 Moves value of register A to B register.

C024H MOV A,B 78 Moves value of register B to A register.

C025H STA F105H 32 Store value of Accumulator in B100 address.

C026H 05

C027H F1

C028H CF RST1 Indicates end of the program.

Initially, the value on the address F100H is stored to register B and then the value in the
address F101H is loaded in A and compared. If content of B is larger than that in A then
contents of A is stored in B and A is loaded with the next value in the series and the process
continues.

INPUT DATA:

F100H F101H F102H F103H F104H


25H 14H FFH 01H 25H

Output in the address F105H is 25H.

You might also like