0% found this document useful (0 votes)
16 views16 pages

Microprocessor Lab Report 3

The document outlines a lab experiment focused on solving and implementing basic assembly language queries. It includes several programming tasks such as reading and displaying decimal and hexadecimal numbers, prompting user input, and displaying results. The conclusion emphasizes the understanding and application of assembly language concepts through these exercises.

Uploaded by

mahinmahfuzuro
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)
16 views16 pages

Microprocessor Lab Report 3

The document outlines a lab experiment focused on solving and implementing basic assembly language queries. It includes several programming tasks such as reading and displaying decimal and hexadecimal numbers, prompting user input, and displaying results. The conclusion emphasizes the understanding and application of assembly language concepts through these exercises.

Uploaded by

mahinmahfuzuro
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

Expeimend No - D3

Erperiment Naome i- Basie querves in Asonbly


Logg
Objecive i- The prumary objetie of Ris
lab 15 to solve ond implement s0me
qveues is assembly
Lquipment emvB0s6 pplication

Series
OWhite a progran t dis play a

Read two dèeimal dit hose sun


('s less than 1D display tum and
their sUm n he next line wih
ogpropráade message.
mode! small
. 5tack t00h
.dada
db Oah, Ddh, "The bum of $
and $
|mg
db

?
b db
?
eode
Tmain prtoc
intialige
ar data
moV ds. ax

; display?
mov ah, 2.
mov
int 2h
input
int 24 h
mov a, al
mt 21h
mov b,

i dsplay dine
moV ah, 99
Lea dz ms
int 2h
mov ah, 2
Mov dd, a
Irt 2!h
mov ah, 9
loa da, mg
int h
mov ah, 2.
mo d, b
int 2/h
may ah,9
len da,mgl
ínt 21h
mov al, a
add a , b
Sub al, 'o'
Moy e, al.

SVm

moV ah. 2

int h
ah teh
2h

endp
end ann.
) Wite pragrara to prtompt the
VserL 6Oread iest. middle and bst
frichads persons name, and
display them down mongin
eode'
model Small
SBack 100h
" data
db " Endern 3 Iitials : $"
a db ?
b dh 7
db ?

proe
moy ax, daa
mov ds, ax

iprümt mesoge

int 2.
input
moy
h, 1
int 2h
mOv a, a
int 2h
mov b, al
it 2lh

; new ine
moy oh, 2
mod d, Oah
int 2 h
dd dh
int lh.

;Ast output
dA. a
int 2lh
line

2h
mo
int 21h.
2hd ovt put
hov d, b
int 2\
New ne
mMy dl, Oah
int 2) h
mov dl, bdh
in 2h

3nd out put


int 2/h

mov ah, 4ch


int 21h
main endp
end man
( Write a
Pngram
read One

te hex A-F and dúplay it


mext ine in deeimal.

ode i
. mpdel 5mal
. Sdadk A00h
data
'Enten A Hey Digit (a-): $
Oob, Hh,"n deeomal i is: 19"
db ?
eode
mann

data
ds. a,

print firesd messag


hea
int 24 h
irput
int 24 h
al, 11h
mov a al

print seeond dine

dx,
int 2h

ah, 2
dd, a
int 2h

ah, teh
nt 24h
main endp
end nan
(I) Wite a
(9 to disploy a
Prgron
solid bor of aslerv'sks.

.mode! Small
stack 100h
data

Code
man

prunt ine 10 tms

ua d,
int 2h
int 2h
int
int
int 2h
21h
int
int
moy ah, eh
int 21h
manin erd
Write
Prqgrom t display "?
cead ttrue initias, Jisplay he m
-the muddle of 44 X 11 boy of
astenisks and becp the enputen.

nodel small
stack 00h
data
mg db Oah Ddh,

msg1 do
a db
b db 7

Co de
man proe
ax, data
ds. aar
MoV

mov

int 2|h

i inputs
mov ah, 1
int 2h
mov a, al
int 2 h
mov b, al
int
e, al

:prunt hine 5 tiny


Moy h, 9
Lea da, m

int Uh
int 2h
int
int 2h
int 2lh

int h
i print die wth inihals
mov ah9

int 2h

moy ah,
dd, a

mov , b
In4

int 2h t.
moy
int
Mov

it h

iprun ine 6 tmes


Moy h,
lon du,
int 2/h
int 2h
int
int 2h
int 2ih

mov d,
int 2]h

Mov

int 21h
main endp
end mann
were implimeed
Result ?- AssembBy
Assem bly quenios
qverues
and expeeted
he lgie emo ladiong.
uteones

Un derstand
The lab helped to
Coneusioni-

And 50lve 50me bnsie queraes of

assmblg argage

You might also like