mpmc assignment 1
mpmc assignment 1
55
Exautbr
lo-bit
divide d inte tue indeprudot
Tthe 8D$G cpu is
wnits ).
fntoface unit
xecutlon wnt CeU)
-
· Bus inty face -unít C6l0)
It is defined as a Cownty :
to
1E imavity uged in foop instnuttons
Stye
stue locg
loop Counte
reqistuy Dx vegtsty is wed t confain
pogt addvess for I(o in strukion.
Cs divcded into
Csde sgmtnt
Tt is ustd for addvessing memeny
the code tegment s where ehEutable
QYe Stored
() Data
points to the data seq ment ofF the mohny
data is stored.
whtye
R) Stak tegmont Css):
tt ts used for addv eas ing
of the memeny- the stak seqmert ia the sgt
which s s td to Stoyc Stack data
t Gxtra Segmnt Ces):
tt also vtevs to a scqmtnt in 4
which ié Gnctt.ey dato teqinnt
tnto
os6 has q lag and they ae did
categories
Status
a- cortol -flCord+i
og onoal flag
9taby flg
fla (Ap); paity ftag crF) Zen flug (zfl
flog CsF) and ouefloo ftag CoF):
are
-the cgisto A , 6X; CX and px
the gncoal pupost t6-bit
too 8bi aud
Yegtstos tL aud A# , which can be
conibintd togcthey and uscd ar a t6-bit
vgistey f Gntainß \ao ody by te t
the woy d and at contains highy ogd
operations
tecumulaog can be. used fog Tlo
nhate and sting mantpulation.
(5)
vgistn ?- This vegiste maànly
a4 a base " tt hold
vpitty the stang
otthin
bose location of a
dato Segment
segment It is used aa offret ttorage
in case of
Ty dorib phyaicat mode.
addycis
Certain oddressa
Yegisty ir It 8 uled as defautt county
OY Couit LOde of sting and leop
instruutDnb.4
Data reqistey oan be uscd.
numtbey in z(o operations nd pltci
ov destination in Case Vf fes
instruttontPerad
1ntegey 34-bit multiplicatien and divtóito
intthutton 0x Yegistey tontains, igbeyord
word of the initial or resulting numbo.
is Yesid d
N) xtra segment (es): addred
contai nih
1t i8 a I6-bit regity
tgment pncuse with rgram
nuaty astumt7
defult the fat D
Yqity rtyeues the rgment in sting
Maripulatto n inttrution. Es registy can be
directty uting pop and LES instrutio ng.
nged
also efys to Segment which esentiatty
segment of he memery.
data datar
tont airf
-The wy spuafying
f dota,
dota tn an
instrubio n t noon as addves cing
Addvesing moales
the
yra
the way. thcy uistd fer Atcuing an
Instrution
(3 tmmediat addres sing mode i
the jmmdiate addressing Mode,
Immcdiate data is a pasit f Tnstrton , and
the form of succecsive byte oy 'oytu
MoV AX 005 H
data
tht
Stred in a
addreaing
vegistey
Mdrefoyed
and
) ndexed mode
the
tn this addresstn g ode., offset f
tperand is ghred inin tnt ofthe indx rgis.
the dehautt fegment for irdex
ADD
the contnl s
Ae o be trqns fuved ieg in a
igmen Tthig addrestng mmtde prvides
iffuent anothty
þyonchig frm bnt tode segment to
tode
) tra SeqnentE S)
has aa lc-bit
t6-bit comespoveting
lah scgment has
the baze addre&s
ment rgistyy uki hotds
which
At any given tie , tos & can
seg hunk
code
gmcnt ’
Data
exha teqnt ’ DI
astdvess frm
Foy
geneaing der bit rhytal the ssgmnt
the
Sgment and offsee vegstuys bit wise
vegist addreys is Shiftrd let
thi^ Yesult , the Conttnt tonitnt 0f the 0f
and tbis
added
segment
ffset
addyess=
oddress
lo05 H
5555 H
5 5
A 5 H
Address = 155A54
(0*):
’ (o #X 10e H) +(5555 H)
’ 155 A5 H
operalibns
56 ALp toy avthmetic
Code seqmtnt
a33ume cs: codk
MOV
al 22 t and Save in ab .
with al
add ab gal add ah
moV dh9 03 H
dh an
and Rave n9x.
div dh. pivide ax by dh
Code end
end.
Code teqncnt
assume cS:code
abyolH
al, o 4
and ahal
M bh 1) h.
moV a DO00b
not ax
code ends
tnd.
main
push ylo
tntrt
The wrking of mirnimum mode can be tatl.
undeshod by ing dhagramg
pressor8 bus cyce is of at teast 4T-
dddyess i5 giron by pncsi
the T, state t available on 4lhet bus
bnt T- State
In Te ,the bus is tri-stated for
divkon .-bf the b (n Case of datathangng
Yead ycde),
he data tranify tates plaue betorer Tatr
" if the addssed deice
ate is(s
slouoy then the
Tnseuted betuetn Ts and T.
At T 3tate ALE = 4, this iadiates that a valid
1
addvess is latchtd tn the address bys and MI to =ty
AdvesS
4uhich indicates
tndicates memey opuakion is in pogress
In Ta the addvess is remoN ed frn the lonl bun
Then the bus is
and i8 sent to the addres device
Aistated.
prestnt on the
klhtn RD' =0, the valid data is
data bus .
DeN'=0 , which enables trans/eiev ard
. During T indicates +hat the data s
DT|0 ,, which
rived
put on he data and prrcsso4
Durn9 13 ,data is
Veads it.
the geADy Ene high
Output device males paformed the
The outrut device make:
This means the klhen the
pcLSSO
output device will
data transfy prncessog cutput
, then
stgrat 4 driveqs. the
tht
skate its bus
dgain trstate