0% found this document useful (0 votes)
18 views15 pages

2021BCS0103

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)
18 views15 pages

2021BCS0103

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/ 15

321 Micropre8093 lab.

Naishnoi Ruddy CSE


Lab to SOsS
Labl : psümiu
ung all the
Ung ALP 8085 MP,
I, To add ThL numbs adohustig mode).
mods (exapt împltat
locafer 3624 4

Ue the imnediat data as 25H & memo

w th 2.8 H as ib data

Sol data 25H into asguliv A


MVI A , 25H Joadig Tmmediat
MVI B, 28H doadng Trme dfiat data nbo HL
landg Trmnediat data ao24H
- LXI H s2024H

(/Load dat fom mem Dry


MoV C, M
A DD

MOV M,A
HLT
Logtcal AND OpUaen otth Tmmedatu Qota
MVI A, 30H
ANI 30H

HLT
Logical AND opatien oith memowy Locati en

LXI H 325 H
MOV A M
ANI 30H

Logical XOR opuoatien ith Dnmedtat Qat


MVI A 30H
X RI 30H
OR loord
hom g
do calaulatthe
to ata R6-s
Ra.s
wut
heALthe and
program ofr
exewtng
'sH
and
the oSH ISH Gntunpb
Locaten data suut addws and E
MS
whn
Tmmedat
Btoecn 2ocatser. pot
(2H
memoy the
Trstcton
stoe 4. numb
ugh
Through Rs
H,3125H nconditonal that
to
2050H
25H Thro bwo 12H
A, H1S
B, H
O5
X
Sp
15H M
) SIM
tIMp data
30H
Zugical M
A, ADPs
xOR
LXIMoV XRIHLT u
puatoten , s
A H
MVI LAI
STA
MOVBoRA
T
HL
te or
soial. addithen MVI
allgnut
MVI
do
To berd
Sol
3
CSE 321 LAB I

Name-S.Vaishnavi Reddy

Roll no-2021BCS0103
1. To add three numbers using ALP of 8085 MP, using all the
processor's addressing modes (except implicit addressing
mode). Use the immediate data as 25 H & memory location
2624 H with 28H as its data (wherever necessary). Assume any
immediate data as the third operand for addition.

BEFORE EXECUTION
AFTER EXECUTION
2.To do logical AND & EXOR operations in different ways using
immediate data 30 H, memory location 3125H [71H].

AND OPERATION
1st Method

BEFORE EXECUTION
AFTER EXECUTION
2nd Method

BEFORE EXECUTION

AFTER EXECUTION
3rd Method

BEFORE EXECUTION

AFTER EXECUTION
EXOR
1st Method

BEFORE EXECUTION

AFTER EXECUTION
2nd Method

BEFORE EXECUTION

AFTER EXECUTION
3rd Method

BEFORE EXECUTION

AFTER EXECUTION
3. To do unconditional jumping after executing the ALP to do
OR operations between immediate data 15 H and data from
2050 H (12 H). Store the result of the program in 2125 H and
jump to that location.

BEFORE EXECUTION
AFTER EXECUTION
4. Send serial data through port address 05H after calculating
the addition of two numbers 12 H and 15 H and write the word
alignment for SIM instruction when interrupts are disabled.

You might also like