MP Unit1
MP Unit1
Tntmduchior b s0386
S0386 feares:
ALU
ohich
92 bi poDcesser. S ha
poDcess G2 biE olato at a bime.
ha' 8. genoral purpose 92 bi! reqisterb.
Addoes buá ib abso a. bit.
S0386 Dx Can operab wn 9eal mode, proteled
meee 4 vitual meee
JF allog users to soitch be dipferent
Operatina System4 bueh Des 4 Ünix.
6) î has pipelinod
Onrchitechure. tohich allouo
9imwteneous instru ctiah fetthine decoding, encocd
ing execuHon t menory mgmt
T ib tompatable oith 8oS6, ogR,
§o195,
80286 chitectures .e any Coce YUng under
these miD poocesser coill aßo mun n 80386 D
Popcesbor,
) The &o986 x has Sepontte pins for addess bua
4 data bus lines. This oesulE in higher pedorma
nce 4 easies hovdware design.
emoy Ogani~atiar { Segmenlabian
80386 Can a(ess Qn bit date
& bi, l6 bi'!
k 1G bits 1G bits
B2 bito
Hg: memoy Organitahien of 8 96 D ,
divided ino ous
banks Such hoat each memony bank Contajn pb
of memony. S allouss bytes. eocrdi co dable
mumony dala to b actesseod direetly:
Plat rmodol
Tn a "Cla
flat " modo oc rmemory
Ogani2atian, 4he appl poogvamm er Sees a singr
Omay 3 bytes
ohile he physica! memoy an Contain
up to y igabytes. it toi5 usualy much dmaluet
4he Ppesse maps dhe a gigabytes Flat ápace, Onks
the phyaical addres dpate by the addares ranslahas
mechani[m.
inear addres
Linear
address
pace.
ia: lat memomy msde.
* The Segmented Molel:
Segmanted model OR memomy
organiaotran, the address space as Vieoeo by ar
app)" prg
The poDCeSSear nnaps tho G4 tera bytes logica
address
ddres
apate Cnto the physical addres apoce by te
toanslalicns, appl" ptg do not necd to
knou 4he olotails of Ihis napping.
ArchitectTheure S0386
of \0386 Dx:
Conbist ot Cental oiessíng
Onit C anagement Unit CMMU)
Bus intentoce. Dnit (BTU).
Ihe Cpu Conbiats o exeruhen unit &ingtri
Chien doco ding unit lhe execuhon unit Conbisto
S,g2 bit general purpo$ e egisesb fur bolh
address data. gt also Consist of a boarrel áhi
es u3pd to Specd the dhipt oo tat, mulHply
ivide. cperation.
The MMU Conbibts of a Segmentatish ynitß
paging. Segmentatian unit alloos he tonveS'on
Of logica address b lineom address
Paging mechaniso alloos lovenbion onm
linear address to physical adchres5 if paqing i5
enabled.
The 9egmentaHon Onit povides dour leoel ot
Poptecion poteeho applica hons , cperahin system
Cy4tem omoers kernel doorn eoch othor
CPU
Shier,
Bamel,
Muiplyl
Reqibhem Dwide effectie
addrel
bus
le
|Status
plaqs Prtecion
Unit
onto ALU Test effectiue
addresbui
ol
Contol Sequening Detode
Rom
TnternaCon ro
32
32
ploe ment
)
ue
lrucHorsheam Tnstruchicr
Decoder atnbube Reqisters De
scoiphicnSeqmentotian.
Adder input 3 MMU
queue9-detoded
PLA
bus
bitg2 Code
Prefetches
Code Byte lo checke Lirmit
PLA
attribubek CachePage AdderPogjng
phy 4jcal addey Bus
32
Transceiven Requost
Pichzen
Pipeline Address
Sixe(ornaol bus Diver BusCon
MUX BIU
tontool
top)
1/2-A31
ADS, M/ID De
Do-Dg 98608
NA RE
ing
The BIU handles all extemnal acresses by
4ha odaloet ! qenerating -the oespechue
Cont sianals
Bus Inter face Uni!: Thib Uni Include6 1he
£AX ge bi reqist
AX 16 bit reqibter
AH AL
s Bae índor.
32 bit reqibher
Bx 16 bit reqiste
BH BL registe
regisle
BP
EDI (Deshnatian Jndex): J holds the deslinalicen,
data for 5fning inshouchons. Por oher inbtruchons it i4
dbed to select a locoion in data geq men
92 bi} qeqisterr
te bi! eqster
) 5taus Plaqs
D ontol flogs
bystem flogo.
daBus flag ; here lags are dleo alledl
4he Condihonal Clags. hese. Flags inditales
Se Condihon produced after the exeruhan ot
Seme
on instTUchan.
The Sir Condiional flag
(i) Camy Flag (cE): This bit is et by amthmeic
Insuchions hat Camy or
dhat qenerat a Camry or bomow.
loty Clag (pE): Tbis bit s seh by ingtuchony,)
ir Ahe oe destinatia, Cpercnd
bitb
Contan on even numbes of 1'5.
(Ri) AuxilLiory Carry Plag (A) Thib bit s set b
he insruthions iC here. is a Camy or bomouo
aftes nibble add i'hon bubtyachan .The prpqram
t
Paocess inq Mode
oF &0886 : (ue processing nodes
0386 also deteminc the eatureg Hhat are oresible.
here ane
Ore 4hoer P30ceging mooles.
1) Real .
Addgess Moe
9 Paptectel Mode
3 Nittual Ro98G Mode
et Bo986
2
General
Jhack
Purpose data
transfer group
ranipulation Instuchion.
3) Type Convet5an
InstrucHons.
*1> Genra purpoe
dota tran!fer group:
* Moy (Move) transfer a bute, coord dauble
Wmopm tho Rouree Coerand to the
Operand, the Moy instouH'oi3 sePuw desinahon
wefw do trans F.
ering data alon any orthese paths.
There re algo uamentb or Mov that
Operate or Segment registeb .
To reqister Hoom memo
To momoy
Bet
oom a reqsber.
qenoral registero.
Tmmediatedata o geqister.
Jmmediate olatu to a memo oy
be Moy in6houeHon Can't moue data Hp
mpmgy
to meny or aom Segment register ho Seqment reliss.
er. ëes Can
Meony- ro- emony moves Can be
be
by 4he Sring moue instruchen Movs
peoed,howeve
Mov C1o0] T200]
4
nemory
locaHon1
memog
Locatian 2
HOU CRn :(lbadh btore in Control egisten):
itruchon load 7 o Sore the (ontents
Examplegister
e chas oil) Copy he lonlo»
SAHE : This jnbhu then
AH into 4he loaer .
hil h o the flag
eqi
*3)
steY.
PUSHe; fush flags enho óhack; PuSH detement 5
áhack point er by 26 Copies Hhe FLAGS.
Example ii PosHF
PosH i: Tuis ibslucian decTement Hhesh
poi nter hy otbres the value or #laq regib-er
top ot átack
*uy PopE : Pop flags OFE dhacè : poprlPofFD pops
dohle s0rd on op Of
of e óback & sbret
the ccerd
he value in the flags regiater.
Erample; PopP : Tuib inshruchion Copies he Conten
od he bp or átack into the lag oe915ter ncrement,
ot
Hhe stack pointerr cby 2.
ormat.
* MuWhphicoHon. TnstoucHon:
*) MUL ; Muiply byte oox ord Cnsigneo ; MOL Den d
pestor
ns ungiqnec mwhjpicaHien. I1s Gperaned actians dependls
an he Sie of it5 operand.
Example AMUL AL, CH. us inShruch an mul Hp/eg u
AL seres he reyul; ir
contentb o CH oih that or
egibte AX.
2)percHentoTmsMULI Mulhply Byle or Word Sanad TMOL
Signee mulhphcohan, Some. dorms
implicit oeqister opeNands.
od he inshu
Exampl
Siqne e Content
IMUL Al, CH; Tuis ins ouchan mulhpli
o c) oith hct oF AL { Jores he
CAx 9egishe.
3)
33 ngh taansers Contp) b a
TMP : (Sum):The jump ingr
dictosent point in the ins 3heom without oetovdina
9etuon infovmah op.
eg: SMp WoRDPR (B*]: his tns" oill qeplace TP oH
ocood daom mamory cahon poinhed by By in Ds,
a TRET/ TRETD :interup t vehm): TRET Pepo the
he intemuplad 90uhine
ins}" oetom oprm
g: TRET : This in4 he 15R.
location
gi
in the
MOVS
Movs B
extra
seoment
B ; Thib in6+ coil1 taranster a byle dacm
Hhe locahon pointeo by 1 to the loca Hion pointed
b Di.
2> CMp5 : (Compare dtong) : # Compares the byle, wrd
od poioted to by the Source inde reg
O douhle pcioked to by the
with the byte o cvd or double ood
desino Hion. index eg.
eg: CMps 8.
a>
8> CMC: (Complemen (amy
Plag):
Seting Cay Plag. slo ohes eMc
MC TevOnDe he
eg: CMC. lagb
Chre arFected.
CLD cea5 he
lD; clear Disecien lag)i
are apFfected.
dinecticn lag no othos lags
Ss STD: (set Dise Hcn flog): 3TD Sels the dire than
*Mibcelloneous inst"
LEA : (loaal efleciue aoldres): LEA Calculates 1he
eCerhiue.addvess f stooes it in he gpetidiec o9.
addgessing Modos
Reqisher addresing Mode: h this mode data
jb 6togeo in a
usy'ng
italor oeq isler.
inbtrtjcHen .
cptode Req &dches R
Reqióters
opeNanol
I)mmediate Addnesing
5 nolhing but Constant
Modes; Tmoye didle.
dia le, operand
daa (cntained io an inst
ie the Source operAnd jb a
Part o he jns) h
instead c' eg redoved
imnediate addressing modes.
|cpode Immediate opevond
ig Trnoediale. addhest ing mEde.
îngtauchon
op(ode ReqistesR
s'operand
Pointer o ppeand
Seqment Reqiste
Reqisten
Inouctien
optode inde oFfset
QeqisherY addoegs
memoy.
Pointer o
operand opesand
Sement
eqi5 ter
Tnstruchor
OP(odeBase Rosnstor indeeib ter
Roineker
Reqister 5
Memomy
Pojnter to optsand
Pointes to Opeand Opercnd