Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Apparatus: 8085 trainer Kit, Power Supply (+5 V)

Sr.
No Experiment Title

Write an 8085 Assembly Language Program (ALP) for exchanging two 8 bit numbers stored on
Memory Locations 2050 H and 2051 H.
1

Write an 8085 Assembly Language Program (ALP) to add two 8 bit numbers stored on Memory
Locations 2050 H and 2051 H and store result on Memory Location 2052 H.
2

Write an 8085 Assembly Language Program (ALP) to add two 16 bit numbers stored on
3 memory.

Write an 8085 assembly language program to find the minimum from two 8-bit numbers.
4

Write an 8085 assembly language program to get the minimum from a block of N 8-bit
numbers.
5
Write an 8085 assembly language program to add blocks of 8-bit numbers.
6

Write an 8085 ALP to find even and odd number from array and store them at ML 2010 and
7 2011 respectively

Write an 8085 assembly language program to add two decimal numbers using DAA
instruction.
8
Write an 8085 ALP to find even and odd numbers from the array and store them at ML 2010 and
9 2011 respectively.

Write an 8085 Assembly Language Program (ALP) to find 1’s binary representation of a given 8
bit number stored on Memory Location 2050 H and store the result (complimented number)
on Memory Location 2051 H.
10
Write an 8085 Assembly Language Program (ALP) to arrange an array of ten data bytes in an
ascending order. An array of ten data bytes is stored on Memory Location 2050 H onwards.
11

Write an 8085 Assembly Language Program (ALP) to find 2’s complement of a given 8 bit
number stored on Memory Location 2050 H and store the result (complimented number) on
12 Memory Location 2051 H.

13 Write an 8085 ALP to reverse an array of 8-bit numbers

Write an 8085 Assembly Language Program (ALP) to multiply two numbers stored on Memory
Locations 2050 H and 2051 H and store the result on Memory Location 2052 H.
14
Write an 8085 ALP to convert BCD to binary number.
15
Practical 1

Aim: Write an 8085 Assembly Language Program (ALP) for exchanging two 8 bit numbers
stored on Memory Locations 2050 H and 2051 H.
Apparatus: 8085 trainer Kit, Power Supply (+5 V)
Program:

LDA 2500
MOV B,A
LDA 2501
STA 2500
MOV A,B
STA 2501
HLT
Practical 2
Aim: Write an 8085 Assembly Language Program (ALP) to add two 8 bit numbers stored
on Memory Locations 2050 H and 2051 H and store result on Memory Location 2052 H.

Program:

LDA 2050
MOV H, A
LDA 2051
ADD H
MOV L, A
MVI A, 00
ADC A
MOV H, A
SHLD 2052
HLT
Practical 3

Aim: Write an 8085 Assembly Language Program (ALP) to add two 16 bit numbers
stored on memory.

Program:
LDA 2050
MOV B, A
LDA 2051
ADD B
STA 2052
HLT
Practical 4
Aim: Write an 8085 assembly language program to find the minimum from two 8-bit
numbers.

Program:

LDA 2050
MOV B, A
LDA 2051
CMP B
JC STORE
MOV A, B
STORE: STA 2052
HLT
PRACTICAL: 5

Aim: Write an 8085 assembly language program to get the minimum from a block of N
8-bit numbers.

Program:

LXI H,1100
MOV C,M
INX H
DCR C
MOV A,M
loop: INX H
CMP M
JC skip
MOV A,M
skip: DCR C
JNZ loop
STA 1110
HLT
PRACTICAL: 6

Aim: Write an 8085 assembly language program to add blocks of 8-bit numbers.

Program:

LXI H, 8000H
MOV C,M
LXI H, 8001H
XRA A
MOV E,A
LOOP: ADD M
JNC SKIP
INR E
SKIP: DCR C
INX H
JNZ LOOP
LXI H, 8010H
MOV M, A
INX H
MOV M,E
HLT
PRACTICAL: 7

Aim: Write an 8085 ALP to find even and odd number from array and store them at ML 2010
and 2011 respectively

Program:
LXI H,8000h
LXI D,9000h
MVI B,00h
MOV C,M
L2: INX H
MOV A,M
ANI 01h
JNZ L1
INR B
MOV A,M
STAX D
INX D
L1: DCR C
JNZ L2
MOV A,B
STA 5000H
LXI H,8000h
LXI D,9007h
MVI B,00h
MOV C,M
L4: INX H
MOV A,M
ANI 01h
JZ L3
INR B
MOV A,M
STAX D
INX D
L3: DCR C
JNZ L4
MOV A,B
STA 5001h
HLT

PRACTICAL: 8

Aim: Write an 8085 assembly language program to add two decimal


numbers using DAA instruction.

Program:

LXI H,8000H
MOV A, M
INX H
ADD M
DAA
LXI H,8001H
MOV M, A
JNC DONE
MVI A, 01H
INX HLT
PRACTICAL 9

Aim: Write an 8085 ALP to find even and odd numbers from an array and
store them at ML 2010 and 2011 respectively.
Program:
LXI D,9000h
MVI B,00h
MOV C,M
L2: INX H
MOV A,M
ANI 01h
JNZ L1
INR B
MOV A,M
STAX D
INX D
L1: DCR C
JNZ L2
MOV A,B
STA 5000H
LXI H,8000h
LXI D,9007h
MVI B,00h
MOV C,M
L4: INX H
MOV A,M
ANI 01h
JZ L3
INR B
MOV A,M
STAX D
INX D
L3: DCR C
JNZ L4
MOV A,B
STA 5001h
HLT
PRACTICAL: 10
Aim: Write an 8085 Assembly Language Program (ALP) to find 1’s binary representation
of a given 8 bit number stored on Memory Location 2050 H and store the result
(complimented number) on Memory Location 2051 H.

Program:

LDA 2050h
CMA
STA 2051h
hlt
PRACTICAL: 11
Aim: Write an 8085 Assembly Language Program (ALP) to arrange an array
of ten data bytes in an ascending order. An array of ten data bytes is stored on
Memory Location 2050 H onwards.

Program:
START: LXI H, 2040H
MVI D,00h
MOV C, M
DCR C
INX H
CHECK: MOV A, M
INX H
CMP M
JC NEXTBYTE
JZ NEXTBYTE
MOV B, M
MOV M, A
DCX H
MOV M, B
INX H
MVI D,01h
NEXTBYTE: DCR C
JNZ CHECK
MOV A, D
CPI 01h
JZ START
HLT
PRACTICAL: 12
Aim: Write an 8085 Assembly Language Program (ALP) to find 2’s complement of a given
8 bit number stored on Memory Location 2050 H and store the result (complimented
number) on Memory Location 2051 H.

Program:

LDA 2050h
CMA
ADI 01
STA 2051h
hlt
PRACTICAL: 13

Aim: Write an 8085 ALP to reverse an array of 8-bit numbers

Program:
LXI H,8000
MOV C,M
LXI D,9000
MOV A,L
ADD C
MOV L,A
LOOP: MOV A,M
STAX D
INX D
DCX H
DCR C
JNZ LOOP
HLT
PRACTICAL: 14
Aim: Write an 8085 Assembly Language Program (ALP) to multiply two numbers stored on
Memory Locations 2050 H and 2051 H and store the result on Memory Location 2052 H.

Program:

LDA 2050H
MOV C,A
LDA 2051H
MOV B,A
SUB A
BACK: ADD B
DCR C
JNZ BACK
STA 2052H
HLT
PRACTICAL: 15

Aim: Write an 8085 ALP to convert BCD to binary number

Program:

lda bcd
mov e,a
ani 0f0h
rlc
rlc
rlc
rlc
mov b,a
xra a
mvi c,0ah
loop1: add b
dcr c
jnz loop1
mov b,a
mov a,e
ani 0fh
add b
sta bin
hlt
bcd: db 23h
bin: db 00h

You might also like