We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 81
COMPUTER GROU STER - IV] DIPLOMA IN ENGINEERING AND TECHNOLOGY
A LABORATORY MANUAL
oe
_ MICROPROCE
Scanned with CamScannerPractical No. 1:
Practical Significance
8086 was the first 164
chip. Microprocessors are
tasks, ranging from general computing to real time moni
students will be able to identify the various pins and their f
1 Relevant Program Outcomes (POs)
POI- Basic knowledge
PO2- Discipline knowledge
PO10- Life-long leaming ye
it Competency and roca
“Develop assembly la rogram using 8086
‘This practical is ex develop the following skills
1. Identify Pe of given pins.
2. Ngati ithe
Course Outcome(s)
rnalyze the functional block diagram of 8086.
Practical Outcomes
‘a, Identify the various pins of the given, microprocessor.
-
Relevant Affective Domain related Outeomes
a, Follow precautionary a
1: Identify the various pins of the 8086 microprocessor
‘It microprocessor available in 40-pin DIP (Dual Inline Package)
Applicable to a wide range of information
iction of pins in maximum and minimum mode.
canr
Scanned with CamScannerScanned with CamScanr
Scanned with CamScannerScanned with CamScanr
Scanned with CamScannerTools and
Practical No, 2: Use Assembly language Programming Fuetion,
Practical Significance
Assembly language i used to write program it the ae ‘Tey. ie br’ ni
form of operations i.e. for addition add and oe te ica
‘memory location, In operating system, s¥s and for debuaging “ef
assembly language using tots like asgemlt, Tinker red for ui te
Hence, students wil be able to a Yip,
Se
This practical is expected to develop the following skills
1. Use editor to write asembly language program flename.asm file
2. Use assembler and linker to create filename.exe file
3. Use debugger in single step mode to locate/trce the errors and correcting
errors
IV Relevant Course Outcome(s)
4. Use assembly language programming tools.
asa pia
Scanned with CamScanneraed, then ype asm lena as on
Xl press Enter Key t i
ian £9 to reat lename oh file
Type slink flename.obj or ting Hef
lnc fenan a ink filename on command prompt and press Enter Key
g F nally. type debug filename.exe or td filename.exe on the command prompt and
ares Enter Key to debug your program stp by sep
h, Observe the contents of registers, ‘memory location used geek of flags.
ut Re ‘ces used (Additioy
aw ReMinedoua tion
ATARI MODI,
&... Echiinr,,
thn.
Dpto ge”
XII Observations be)
1) Observe and ee of Register using debugger TD or Debug
xy Table 1: Contents of Registers
Registers Flag Register
il Purpose | AX | e000 Carry Flag. oe
registers BX oo00 Zero Flag, Zz lo
CX | wooo Sign Flag si Spgs
Dx [ooeo | OverflowFlg | OF | o
Index Register [Sl_| Boo0.) °
DI | e000 <
BP | e000 A
‘SP 0.
Ds ba
anr
Scanned with CamScannerEames — Se
ae came nh ——
y ome bem —=—— ~
ot Aonuma ene
Scanned with CamScanr
Scanned with CamScannerr 7 “
OM
Micrpeess
No.3: Writean assembly language program to pep
Practical NO" snd subtraction of two 8 and 16-bit numbers "™ \
tial Si
1 TTghlevel language programming, the mathematica
subiracton (-) can be used to perform arth
Tanguage the mnemonics are used to perform ari
addition, SUB/SBB for subtraction, In operate’ system, system
device drivers, memory management Ae 'S are normally wnittes
language where addition and subtr cio W reauited. Hence, student
use mnemonics of the inact s
sembly language program
Malan: regan OR @EOy
Por facta
PO 2: Discipline kpWledge
PO3- and practice
PO. ing tools
S, mney and Skills,
{ <> “Develop assembly language program u ing 8086"
sign fo
ad
tion. Howey tion 6
Operation such Ai a
This practical is expected to develop the following skill
J Pas eit to create assembly language rogram ie asm fie |
2. Use assembler and linker to create exe file !
> tee debuge in sogle sep mae wo loatenace the enor ang :
coming
errors
IV Relevant Course Outcome(s)
= ‘Write assembly language program forgiven problem,
Practical Outcomes
Write an Assembly Language
b. ‘Write an Assembly
v
t Affective Domain Related Outcomes
- & Follow precautionary measures,
=
Scanned with CamScannerlala
CH
/=|a)a\5\\«\9|
2 Ohare ee cous of nem Jct
Sree Digs teen etpepa
Scanned with CamScanr
Scanned with CamScannerFda noone in
ad seeied_ovenbol
gubsbach Secoed 4 fea
Scanned with CamScanr
Scanned with CamScannersonar
) bse and wie
Soe TD Se SS omy a Seen
promis ate:
heat
herein
Scanned with CamScanr
Scanned with CamScannerSoa
ek sre one age eg
te cm A mae ea
Mov Ato»
8 AL io 92
Scanned with CamScanr
Scanned with CamScannerScanned with CamScanr
Scanned with CamScanner>" J
~
can ALP to multiply (vo given 8 and 16 Dit unsigng4
and signed numbers.
nificance -al sign for mul
1 Fi gage pring te mahal in Fr oan
Inia eng antec operation. However, in assembly language the mnemy
contin mrarm arithmetic operation such MUL for u ultiplication nt
ed multiplication. In operating system, gram Such as Yee
iw management modules are-not rig ein in assembly lang
ave Ton tod ssn i require Henge wil be ale to axe ge
Wernction for unsigned and IMUL = for signed numbers in omni
language program. "
" for, Lape ins 8 ; pie
To, Discipline
fara
This practical is expected to develop the following skills
1. Use editor to create assembly language program filename.asm fle
2, Useassembler and linker to create flename.exe file
ME esa lesareperon using 8086”
Scanned with CamScannereo =
tt gee
+ Emer
edd Sogeeggee
til es pautey ee
TI sankoy si senal_an
ee er
eee tet: Comte
Scanned with CamScanr
Scanned with CamScanner\
A ig maeeaty |
nly ES
MUDD ely a pane
etsy a S See,
stlami\ dy =
+ cade = &
ON A
man da
Scanned with CamScanr
Scanned with CamScannerScanned with CamScanr
Scanned with CamScannercot eee Tene mtb
Te in he So
an wan oN
Scanned with CamScanr
Scanned with CamScanneresc HOA eg
et aout. £0... PH oe Sar
Pe Tanase NO is = =
te gh 0 ims il 14 _.Yn2aneg “20 i
eee oo : el
eu on.
sat Peeeeareet Flowing de
ite ~
2 sae pve MUL nd IMU
ss
(yc fo wes)
doy —TMOL Talat
Scanned with CamScanr
Scanned with CamScannerfer operation
ae! No & Write am ALP to perform block tran
sagnificance
Ft eyetem. cystem programe such as vides device
aa
a Program Cetcome (Om 3
$i pcr tm XQ
15 Expres and rie sow
IE Engineer nk rte A
campetencs and ‘2 wsing 9086" '
Scanned with CamScannereo
\
one “to parfore wlock ttremster carter tvithart
FH ypag they instruction
Alqocithen 3 \
grep 1 i+ Inibalése chats gegment a \
Inittal de dodo aunts .
grep 3 t= tnitialtte_ —reeen fy prot Pot 1
sovtte, andl destination