0% found this document useful (0 votes)
17 views25 pages

Solutions To Some Questions in Microproccessor

The document provides an overview of the 8086 microprocessor architecture, including instruction sets, data movement, arithmetic operations, and interrupt handling. It details various assembly language instructions, their formats, and the effects on processor flags. Additionally, it discusses memory addressing modes and the structure of subroutines and interrupts in the 8086 architecture.

Uploaded by

kumar.ayana2005
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)
17 views25 pages

Solutions To Some Questions in Microproccessor

The document provides an overview of the 8086 microprocessor architecture, including instruction sets, data movement, arithmetic operations, and interrupt handling. It details various assembly language instructions, their formats, and the effects on processor flags. Additionally, it discusses memory addressing modes and the structure of subroutines and interrupts in the 8086 architecture.

Uploaded by

kumar.ayana2005
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/ 25

Date

8086 lstutiw St

Contan :o(Podle
wment, mweoUte data ote

(laitiatien
1) Date Taant 4) Gutro| Tranps
2 Anthmtie 5) Staing Manilatón
6) Paoho te

msde.

MOD REG [M
opLOde ] 'D
6t

instucte it
MOV 100010

Ddirehien; ,D=0: directiw w whic opeatio

't0' the egsten

Word : W=1: wod


MOD me
mot mode with mo displament
16 hit
Mode

the opeusd

Code
AL AX
CL
Cx
DL Dx
BL BX
AH SP
|0)
Ba Point
DH SI
Detinathon hdex.
Lowe
16 tt
ex] tontemt BX
Date
Coode tor A[M}tive Adcbu, Calutao when MOD00loll 10
10
cBX]4[sI \6]+ [s ]+d2 b]+ CSI] +dlk

CSI] tSI] +d (3 ] + de
D1] +d16
CoT] +d2
dls (diet)
COx] C Bx)t d b] tdI6.

Data
MOV D,B

Di Dutrotien
# oth Sk D can ot mm
MOV o3 A H

NOV BX, C03ol H3


mditotel
mem c.

Data e n t
pUSH bX*

dustinatan

XCHG: Des,
#cannot achag
XCHG DX AX
( LDS

’it then
copis Mext 2 mem

0301
0ß02 Rea
CT

it-2 Date

OAithmetic Inytrutins o] 8086

wd to wake H t o Bc0 additf em a


add wuyt be in AL fo DAA
to woYk
hibble iw AL 73 atte adol
add
then DAA: add G to Aowee vibhle

ppo ibhestot ALg , DAA: addsoH

72

Let AL 59 (Bo) BL = 35 CbeD)


ADD AL, BL AL = AL t BL
DAA AL :8E hex
add os Hex to AL

AL: D1 Hex Aux Cany:1


DAA 30 aolod o6 Hex to
AL

60
JAf,CE, SF, PF ZF ydatd hen

DAB[Deinal Adjust ajtor BD &ubhact×u)

louer ibble n A9 DAS: Subtrat 6


oY AF st IDwer wikha em'AL

wibhe ? D4S: subtract 60


oY CF st -Mom AL

e-9 Let AL= 86 (6D) BH= 57 Beo


SuB At, BH
DAS Ylt AL= 2F Hex

CF=o

SUB At, BH
DA8
YUylt AL= D Hex
A17 80D CFe1
DAS updat: AF, CF ,SE, IE, ZF LBoa)
OF:
A X= 16bit.
Date
O cBWC Convet siqnd nlod)
AL to al. bits AH
AH

decinal)
eo AX 0000 |ool lo| (155

I1I) loolloll (IsT decma)


alod to Maud Doute
wrd n AX to al
’ copis km hit of
DX:

|00 ol| (3894 le cinal)


Date P F a

AND Des, S

cemtnt

PF, SF ZF
Date
NOT Dy
4)

Bx.

as compmunt
Flags: f,ff,zf, oF updatd

(6) MP Des Se

es cMP Cx, BX
CF ZF SF

CX7BA
CX<BX 1

4) TEST
AND oye wend tn De with

iuuctiens
Date

Sue imediat no,

TEST

Kotate y Suipt Intructiens

pei t ens to the det


cfula optation: NSB OF opuond rototrd in to (F

MSBE LSB

mhi it rotate. CF = ht mot


otated aut MB

o wwtrudiin.
RCL t: MsBtoCF.
CF to LSB
MOV
BX, CL
Heotate Lentent
bhit postion.
# ga it 4 ’ cF
F binal cF bit 3
|ate

- CovtTe Instuchow

ter a
oY TEeT instruchiv
Mode , - wsed wfth JMI, CALL

( ) ulative

CALL < Labl


TMP: Near

duthetpn

Mode
)

2hy displa ument to If


cpivtu tot hot umgp

vefuue
) wvut-Attroving Moe

S, BP, sI, DI

rer; Lex; CDI); Lsi)

Lot BX= addy 1

Wed

0 Short nyte instrutow. allows


to mm loc usi thw
tI27

Nea t32k Cuont C)


notw
>000O
optode

hot
displatadp

Shout
10009
CS? |000H

10006

New I ?
O002to4
o006 H adds

ad
1000
10003
loo02
lo001 02
O003tO 00 2 10000 Tme
000 SH

AbI24

A8121

10004
|0003 00
Neus Cs A300H |0002
|O001 27
10000TM? l69ode.

Conditioual

TNC C=0
Usgd.

T124

o0 H

-123

NO:

les has S =0

LOor instuciow

deeemrt Cx h TNZ
cOmhivatiew
Cx
dueument
addvess o
instutiow is extuted.
scquential
Page No.
oate
Yaoudwnes, Subroutins, muthod tuucio

usaoe code iw
Savs
to
ain to
retn to man to puoudu
CALL RETI

Coled

wsed oith RET

\wwhuchou
32K dista mu

Lit
giep to to

Ctak

AFTFE

lo 003

1060 FF

03

=D00t DFFF
Page No.
oate
FAR CA
CS

Code
AFFF
AFFFE
FFIFD 00
00 (O003
100 02
02

ttotuuduy
Aulo
taudamne

wuat lhtoup
16 y

Cath
opoad.
:0).s
Ahe ag onto the stak
(2) Uua
(2) 4 , b v t D
sthe ack.
(4)

ohen INT instuctbn exe utes , ik cua I Hoq


ohich conrol extnal H|w intoopt pin tNT

Cnals TN TR

IRET: ntupt Retn tnruio


ofth
tack data ba ck into I?
IRET

Htoree the
t e p t ectors
#Ronauivg

4 byt
mm [ o0000- ob3PFH1
Vecto: eah vetor
2S6 dljuwt fataupt
Dw addes o
IP V CS

INTO OH-bH
JNT I 4H-7
Non-Makahe NM Ipn
INT2!
NT3 ! CH-FH
Bouak point
10H -13H
JNT4

) atenot is Made to
INTO: dlivide e w : livide

DY TRAP

the exe tuign o


iwtyuchidu

inteovuptthe TF
- pon attephA s in IP
excuted

bit So that
2: INT 2

3: iNT 3:
ar

4: NT4: ed uih To etutn


lydepl
o.4'

Book

INTR NNI
2 oe
INT 2 ivtoouçt
0. vet

rNTR
Page No.
Dat)

INTR)

Suahs NTR

Htaa Yet L=0


saes NTR

INTR NMI
eotanally disdud nen- maskable
to iut a vet eutenupt
shen activatkd

lwtel TeUVeSi 00- IFH


NNI is

INTA 3 to INTR cleuoded .


vects no to D-o

t cleand wid the Tst

eual,led IRET nstri, Uat


|Page No

INTA 2. INTA
do sut vector
Hhe.
data bu
NND:- (Binia to PRAf So%S)

tVe

cdge, NNI wwwt emai at

the NM

Sehm

1DNA)

You might also like