Professional Documents
Culture Documents
8080A-Bcsed
erE
mputer
I..t .,
lh.
tr
D85 micloproccasor
Erplain
tsidS a latch.
slgffils.
List rhc various inlcmal units thal m.k up thc
8085 archrrccrurE. and explain thcrr fun$ions rn
decodiog and execuriog an instructior.
of an
8085-bascd
58
Descnbe thc E080A MPU in Erms of its componeni dclices. thc 8080A mlcroprocctsoa, tha
8228 sysrem conlroller, and tha 8224 oscillelor.
C PL' ,
}licro Proce.sing Unil ,uPL lr .rmilar 16 lhe tern Cenlrai Plocessing Ln::
-thc IIIPU as r d.vicc or r
SrouP of dcvicer
fvr rlcfin
ld
lgllllqll
l ElH.r
coanol siSnals).
'tlis
scclion lhows how to demultrpler rhe bui and genemle the contol signals 3:
dascribing the 8085 microprocessor and rllustrales the bus limings
3.l
Thc
8080A. rrs innluctidn set is upw.r.rd-compatible with lhal of the 8080A. m.aning tha(
,ncludes all the 8080A 1n\tructions plus some sddilioncl ons
81185 rnnrudion
grnns urfi.r for thc 8080A will bc e\ceutcd by rhc 8085. bu! rhe 8085 rnd thc-8
Jrc n,,r n,n (umDrtrble.
rr
F curc
, i.no". tic tng,, p nout Jr lhe h085 nrcroproccsrrr .\,1 ll.! s'Bnal'
lnto ir\ groups r l, lddrcrs bus. l:, dsla bu,. O) conEol !,d strtua ai
b! cl3s\rIed
(,1) powlr supplv and frcqu.my !ignalr.
(6) s.nrl l/O potts.
(5
i0
itialcd
li8nlb.
E {l
Bq
FY
60
MICROCOMPUTEn
SiYSTEMS
AND HAADv,rAn!
ADDNESS BUS
zi- Ll
tz
-rl
AF,{!,
Thr siSnd linas ADi to ADo arc bidirE doaal, thy scrvc a duel purpo3.. Th.y ar! uscd
as th. low-ordcr.ddnss bus as l,cil a3 th. d.tr bus. In r&culint rr'insEuction, dudnt
Itrc a.rliar pan of $G cialc, th.sc lincs arc l]sad
thc low-ordcr add.Br bua. Durini li.
lsrlr pln of r. cycl., thcsc lfura .rt ulad a! ria dltr tos. (Thi5 b .l!o t own as
. nuhiplcxing thc bus.) Howev.r, thc low-odcr addtrss bu. can b. scpsJatid ftom thca
t
I
I
I
I
x
tr
l',- -
''i.
, at-
All-Ad&ir.
l-rlch Efliblc: This i3 a positiv. going iuls. gcn.rat.d evry tjmc !h!
t085 b8ins an operarion (machinc cycle); i! indicsr.s thal dl. bits oo AD7-ADo sr:
sddrcss bils. This signal is uscd pnmanly !o larch lhe lo\r'order addr.ss from Ur
muhrplcxcd bus and generate a s.pant s.r of cighr addrEss lincs, A. lo &.
[D-Rcrd: Thrs rs a Rcad conrrol signal {ac0!c low,. This signai rndicatcs lhat
selectcd I O or memory dcvrcc rs ro be raad and d4a sra ava,labl. on rhc data bu!
f YR-wfllc: This is a Write conEol signal (activc low). This signal indicar.s thai
dala fi tha data bus are ro b writtan inlo a sclacEd m.olory or rO location.
! lO[: Thrs is a status signal used io differcndalc betwcn L'o and mcmory ope.stionr
*hii'ir,s trigtt. ir indicates an I/O opcradoni whcn i is low, ir lndicai.3; mcmo
opcrarron. Thrs
and EF rwntc)
!o gcn.rrE UO
,Q;sr'r!d $t These slatus signah. similar lo lO/M. can identify vsrious opantions.
thay aJr ra&ly used in small syrrcms. (AU thc operadons ard their associ.Ed sra
alt listcd in Tablc
POWER SUPPLY
Ll
for r.fcrcncc.)
.5
fbl
IL
d
q
vcc:
E
F
!l
'
signah
at
trl
3,- "
II
tl
90
tc di
L./ A
l
lLE J,l
St
rofil
X.ctla. Cych
OFod. F.r.h
0
0
0
90 R.ld
.I
h&tru$ Actno,rhdg.
lLll
. Tr*.r
Oran
l0
0l
l0
0l
ll
0
I
I
ConEol SIrmIt
ID=0
ID=o
lql
z
z
z
tlold
lllr
s,
Sf,=o
TD=O
I[=o
0)
xl
xl
lFlT -
ID.*f,-ztrdNfI=
u!.L6)
$c
/ledgcs an
i lnu
EBEIIN-:
When the signal on $is pin goes loiv, thc prognm countcr is sct to zero,
MPU is ns.r
RESET OiJT: ThN signsl indicates ihat th. MPU h b.ing r.sct. Thc signd can bc us.d
fi.
odrr drviccs,
YO
PORIi
t 8Ot5 hrs lwo rignals to implei:i.nt the serisl transmissionr SID (Sarial Input Data) and
(Scrial Ouip,ut Darr). They will b. dit ussed ir Chsptcr 16 on S.rial UO.
In this chapter. we will locus on lhe fitst thrcc groups of signals. whila othcn
will
'12
Bus Timings
undetstand lhc furcdors of vafious signals of lhe 8085, we mus! cramiic thc timings
thcsc signals i, rtlation !o thc systcm clock. Tha bcst way lo illusEatc $. rilning ia
iu clamPle,
6l
-,-J
MICROCOMPOTER SISTEMS AND HARDWARE
62
ttE
3.2
80&5
trtflt 0np1n)
. iim
(oqur)
RST
',5
T&$ 0rptlo
Tnr
a nsr
?.S
(hFltr)
tsT 6.5
fiOU)
HLDA (o!rpu)
Onpur)
..READY (lnpul)
and 5 5.
rt.
nonmatlabl. mreruPl.nd
rv
This si8n.l is usad Io dclay lh. mrcropc.ssor Read or wfl.le cvcl's until
Uhcn this
a slow rcspondinS pcipheml is lt.d-'- ro scnd c acc'pt &la
IoB. he micrcproc.sor wars for an inrgnl nuhber of
sisnal
8oas
J,I
wh'n tht
Rcfer ro rhc cxamplc in lhc last chapter{2.:4): lliustratc f,i timing ofdal! flo$
is
2005H'
location
(4FH-MOV
storcd
in
C.A)'
I
insrrucrion code d I
being fctchad.
Soliruon
Exdmp16
-:
OO I I I
O Srrp
l:
tFiBl'!
:''
Fitu.3.3
shows that at Tr
l6bil
'ddrcrs
bus
lo
addrc$ inas Ao o lr. the t6u'od.r mahory .ddrc3t o5H i3 pltccd on t!' ho!'tD'
g06
ffotc'rrng
low
ADo. ard tha ALE sign.l goes high. Simtlarly, lhc stetus srgnil IOM
ogc;do$ (Fd drc salc ofcl,iily fi' orh'r two statur litnals
,rrii r,i. i.
S, and So, arc not ihown in iiSr.rr. 3.3, thcy will bc dilcuss'd in $c i'xr chlFrr)
",*r"*Lnll
tr Sllp 2i
Thc conrol
unl
s.nds
cnable
!h'
frlcliory chip
(FituE !.2).
ihe
Th! control 3irnel ED i3 scnt out during th. clock P'riod T: ihus
'nrblilg
two
clock
P'nods'
ftmory chip (Fi8ur.- 3.3). Th. ED signrl ir acti!! during
c4
E6UIE
3,3
Sffil16r&0
2.
oJ-4
Ii
t1,
-bZ\t,.,.
",,t4
'
,l
-,59|
41
.r"41
L
F
F
p
t
It
r
l
dlc OurFrr
FiguE 3.3 !ho*3 dlat olc ALE 8o.s high durirt Tr . Whco dE ALE ir hith, dl. lltcn
i! csnsp.rcoti this I'Eans &rl lha oilt$a chartpt,t r.coNrn8
r.coGling lo
!o mpul
iBput d.r!.
d.u. l.lulnt
Dqdnt r1t.t. rha
urqu of tlrl
tlt! l.ch
l.ich b
ii 05H.
oJH. \Yhcn
Wtcn *a
lrry, &.
dE dd. bI!
blt (EH
ii h*d
Lt ld u0rrt
uorrl
0r{ ir
6a A{fflari .L?*,
0!{il-ALE. .nd u. ouDtr C fr.
b. A{-& fq
rhFgLgi Fitur.3.4 3how3 rhc.nrirc iddrEss bus A,;-,Ao ltcr dF latchins oD.raion
lmii his circurnventcd !h. Plobl.m of dcmrrliiplcxirg th. low:ordcibui iy d,
sp..ial dcviccs such as thc 8155 (256 bytcs of PJw mcfior, + UOs) and t35J
^i$in8
(2K ROM + vos), which arE compadblc wiih fie E0E5 ftultiplcf,cd bur. Thcsc d.vi.r!
imcmally dlmulriplex &e bus usrng thc ALE signd (s.. Figurc 3.14.0d 3.15).
llery-iff*t5r..
'\
808'60!OA.BASED MICROCOMPLIEN SYSIEMS
J'-
3085
,r.
(il
!
(
),
,t6ull s.a
itaEqgucdLdhllslL ordalrddlsBu3
/'
MICIOCOMPUTIR
66
SYSTEMS
AND
HrA
NDWARE
n6ma3.l
s.hcrndilc lo GaDaEto
i.qdi/v'rrn Caotrolsfgnqb
lcr Marrory ond YO
Its
Architecture
Figlllr 3.7 $ow3 thc intlmal afohitlcture of rllc ?oE5 b.yond lhe Fograrnmable rrgist'rs
w. dilcuss.d prcviously. lr includcs rhe ALU (Ari$rnctic ahd t gic Unit), Tihing atd
Cotlaol-Unit, lnstsuclion Regist.r and Dccoder, Rcgistcr Afiay, IntenuPt control,..and
Scrial l,b Conrol. Wc will dis.uss the firsi four units bclow, while ihc lnst two win b'
discuslcd l.tcr in the book.
t--a
.2
n6t,lE 3-6
8085 Domullplbd
Aaldrs drd Ddto Bus
fr*
8035
lo,M
trD
WR
2..
EMR
.Nr.
.^1Lr.t
.aJ, 0 /
ft
Thc (
ALU
Ihc uithndc loSic unir Dcrfo*. 'h. coEB{in! functioo.i it ircludes t!g-!!q@Uor.
rhe r.mmt"fl Ecirr.r ih. rirhmc0c and logic circuils. and firc fl!8s. Tl,. tclIllgy
,.g--irroi[ u-..iro--lrori a.,"- m;;iifrifi;aT.g;c opciiiiiiifrc rcsutt iii-tono
in ihc accumulrior, and lhq fls86 (flipfloF) ate s.f or Escl rccording lo thc rcsuh of
th. oparation.
Thc flags ar afrarrai by dtc Erithm.ric and Iogic opcrations in th. ALIJ. In most
of lhcta op.rations, thc rEsolt is slorcd in lha lc.unulalor Thercfore, lbe flags genetally
rrllacl dats cooditions in lh. a.cumulrtor-gith sonrc cxcc ions. The dcscripiioos and
condiiions of rhc fl.8s uE as follow$
80atr
i-&fts
rcriorr
.!6car!edo.
rdrrdi'rn
of
aritctt
d lo,i. Aqdidt,
pc-t.
INSI
TtI
G&L
ios!{
lge
.
xoa
NEE
Thc I
rf
rEr
@.ggtr
alq
uttr
dt. rqr|.itlillg
D.co
!t dl E b dE odH t tir.t5.
intcm.iy foi 8CD (8iwy Codcd D..iEdl oFr.riQrr|, iin4 i{ iol rvailrbL for th.
prqranmcr o cneagi lhc lcqlcrcc of , Prog"m widr r iump hatriction
C P-hrllr. fltg: Aicr rn rrftiftliq or hlictl og.rdi@, i{ 6c rriull.has @ cven
niitnbd of i., dt. fl.g i. ,.t. lf lt b.r.+cd4rotcc *Jr-$FJr&!rt!r.1. (For
cr.rnd., thc drl tty! 0 0 0 0 0 0 I t hrt c14! prdty cvan il dr nlrgniiudc of
dt
16
iir
Tha
Ffa
t-I
od).
Cy -Crrry neg, If at| irirhmclic opcr.rio tesulls in e crrry, tlE Calry fl.g is rat'
ottrcr*lsc it ii rcsa. rrrc C{ry fl.g ako scrvcs .! a honow fl;8 for subtrrctiotl.
ntrrihcr is
1t
The bit positions rcservcd for lhes flags in th flag registcr ar at follows:
Dt
DI
Drl
AC
Dl
q
P
DI
D.
,CY
Lt
Among thc five flags. thc AC flag is usd incmally for BCD anthm'tici the
instruction Jt docs not inalude any conditional junP insEuctioos based on the AC flag
of $c rEmrioing four flags, thc z a d CY fhgs are tbose mosl commonly used'
'nd
IIG
::-!
09
r!
id
TT d,nda
It
llrslucrioD r8rst . and thc (hcodcr aI! pln of thc ALU. whaa .|! inrSlation ir
EEh.d lrom m.mory, ir rs loadrd in ttc insalctbll rcdlEr Thc (Mcr da.od6 dr
i$truction .nd est3blisrcs ihc *qucD.c of cv.nls rc follox,. Ei
rnd iaruoa ba aaicsscd
lER ARRAY
:t
.i6
b..n
discussd
t'
!ii.r
it has
*ith ih.
E qmFl6
This cxampl. 1i limilar to rhc eiampb in Secrion 1.12, cxcept thar lha coflGnls ol rhc
ac(urnuldtor arc specificd. To dccodc and cxcc\lta &c inrnucdon. ih. followin8 st.D. art
pcrforma.l
Solriion
l.
l2
Th! Jonreirs or de dna bds,lFr al! placeJ I,l tha rnsrrucrion rcgrsrcr and dccod.d
iFigure.].8).
lF DrD
FIGT'DE 3 8
lu.
FDo
VcF^
-a
70
,.
Eanlfanld ro
rtra
ALU-
tc=
sgnds.
Th 865
D
tr
r;ftffi;E
cra
tr;;
.ffilffiffi:,rtr'.,'d lfitt:
MPU
liocffiy.
l.
To
O phcar
tr irdqt r
3,2
3,21
\"e
t.9
SIlElcfoqd Mcroco(lDul'.rs}'lhn
116018
ao6li
lOtE lL
qr
1.6 ir
E
t|
|. i-ldrE a di.'..l5klrl^!r^t|
i I l4il
d xo.d i-
- td.La
tt.
MraaocoMPrJIERrYsTEM! AND
Fiai,r
1.9
HAr:
rhc
dt
thc fow
3.22
'del
Eo65 Di.'.ocofirputcr shown in Figurc 3.q has two tvlEs of m.[lory chrpa-R
(Rcrd/Wtir. Nlemoryi and EPROiv! lEr.srbk Proglrnlmlblc Rc.d"Ost, M.mo.,
fhc
ei& ll!ryE! Thc nemory s..lion oa F,gu& 3.9 is.xpedcd in FiturE 3.10 !o
fe* llDrc &trils. The am oi lhis ,liscusrioE is to idcorily 6d rd.mor.v m.p by ma]l
ihr arsoaiat d crcuits, .od !o Gc(,8riz. rk fuqclions of r*"o control ri8n,ls: MEMR
FiEFffi. To rimplify th. prcrlniadon, dclails coiceming th. rn mory chips anj
trFmory nmirg uE cxcludcd haE. llltcl's 3pccial-pllfpo5c memoty chiPs-|fi. 8lsi
UE t755--and &cir rr,qDory rn ps ir thc sDK-85 lysEm .re dcscribcd it s.ctioo
-1
BTY ME}IORY
strows tlltt rhc crSht addit$ lin s Ar-Ao $E ronmct.d dlrcclly ro ihc
liner on lhc n|cn$ry chip !o idcllify:56 EEmor, localions. The rddt ss iilles A,, !o
.I! u!.d to sclcct thc merrcry chip lhroogh a !-lo-8 dc.oder snd lo8rc 8n s.
. ldandfyroS thc mcmora m.p l' a t*c-staD procals. Ihc first stcp ,s tc rccoeni4
to !.l.ct th.'mcr-ory ahip. Th. r..
logic lcrals rwuiEd on tb. rddrrls lincq l;{.
sr.p is to ardnior drc poasiblc logic lelel combinationc !ha! can be.ssunad by lhc
Figlr. 3.lo
whcn
6r
Arr-& shuld
R/WM
or lh.
iddtE$s
li!6
bc .s folloys:
AI
0 o 0 0 0 I I I
=0?H
Thc .dah6s lirc AE is collncctad to thc acliv. hiSh lnable linc of ih. &c!d!r duirrg &
invcriac lhclrfort, ir should bc .! logic 0. Thc rddrcss lincs Ar-Arr shoujd slso bc al loSr
0 !o .crivlt thc odFr (wo.nrblc lincs racu!.lo*) of dl! decodar. Tt. !al$ C' ad G.
rE OR garcs, fuDctiorEll! conEcct d as o.gativc NAND 8.lcs Is.. AFpandrr C
Prcf?nd L,ogic Symbols) wheo lh. inpu addtess lioes Am-Ar to lhe decoder a$urr th.
logic levcls I I l. tlc alput liDe ? of lhr dccodar goes low and salaats 6. R4;
drcrbry chip,
Thi ileoory chip has eight addre$s Iinls thst crn asunIc 2ni dffctltt coftbiortions
fron 00H io FFH. T"ncrcfore. lhc m.moq! map of lhis chrp raog.s froft 0701t to (nPFF'
0 0'0
0 0 I r
07H
ehip
Scbt
AddrEss
AI
r
A, A6 AI A" A' A: AI
00000000
lliillllllll
A{
= 0700ll
U?FFH
73
p6/6O6OA-BA5ED
IllCnocoMPUTlR
S',YSTEMS
'
r/"
-M-.Mi
r.tl
o,
D]
i
1.10
MemorY:nierlocing
74
MICROCOMPI'IIR
EGUIE
3.ll
AND HARDWA&E
Tt
TJ
LJ
LJ
v..-y eaa*.
Y
CLK
I
IO' M
TEMS
^_A.
o-
ri
t_-__r
EINOM
Uta thc R ly mcmory chip. ihc EPROM also has 256 bytes of fiemory and ftquit s ciShl
.dd.css linc., A-,{o, to id.ntify 256 lo.ations. Hoqevcr. its mmory map rrngcs ftom
@H
to @FFH.
showD D.low
AN
,0
ArO
Ag AI A" AI AI Ar ,\
fu
0
tii
diffcr'rr'
butcs'
frcm
00
=(nFFH
."* .iTiim#_Hffim
*"-.
''"
wti(an iolo t ln !
inforlruibn ctn mr bG
rimilrr !o that of FigutE 3 ' 3 ' crccfl
&d*iplcxcd
= qmH
tI
I I I I I I I
\NT
ln
0000000
rhat
I' Eufi
r.*--{\_=
^.--1J
I
!
aEn
l
I
rltt
e,
!!9
t58
1II
lIiI
Tt
id.t
!l!
c6!
.1
flei,Il !.ll
re!
;:l
InbrtrdnC
t;
S.Za tne
Thc SDK-t5 is s
.1
tr
d
d
ri
LtO
rht
PoiE
\/
SDK-E5
Memon
835!
is idenlical tp tire E 155. exccpl rhai its Chip Enablc rcn signal rr acrrvc high' Thc
pin
conpatiblc
an
EPROM
thc
8755
is
and
is a ROM *i& rwo progrnmmablc Li O Po '
'
disccus.d,
r !,1
dl
Gll
IIg
*
34.
-t
[;l
ro9
,.,7
l^i
l'1_l l"l
?t-.
L-l
ALE
r-l
ED
ET
I-r,s-i i--,
flNrER C'
K--l
CE
HGUTE 3. 14
The 8155 MehorySecljon Th6 Blok Dtogra6.: i.-)
SOUICE, A, Iitl CoEod's, ,vCJ $tqt fektlr a k t lq^roi \S@
-
mcmor) sction includc! :S6 y 8 mcmot locrt,ons and an int.mat jatch to d.mutriDlx
lhc bus hnes AD.-,\D, TI. mcmory rccfion Jilo tcqurcs a Chip Enablc r-E, si8nal and
a Mcmor) Wnrc f,iEFiI-r. cont ol s,gnat.
n.rarcd inrcmaltv by combininS rhi IO,V
.nd WR
lLt
E
TE
Bl5.
835
lli!L
a
ll
signals
-ge
'
thc
nculr
+sr
3.15
IntErlqclng rh 8i65
S4\6rnolic fom lh
Mho.y
SDX.85 SFtem
SOUtCl ltrkr
r.tur rtrN
A|'.rlir B
Cmi'd-
-rJ Ls',
t9r3r.
^urh
lDf
Ch;, Crtir
A,,
A:
,E,E:8,
fE
IO,
ALE
E5
w-i
drla
chF
ioud
RESET
3t5t
1E
and thc ourput ljne 4 o[ (hc d.coder oabls d. mcmory chip. Thc conqll rtrd
the status signals from thc EO8J are connected dirccdy lo the resP.tivc si$ds on thc
memory chip. Sinilarly, lhe bua lines ADr-A..rE aiso cotrnctcd di&cdy !o thc memory
chip to addrcss ary ooc of thc 256 mcmory locatioas.
Arr-Afl
Ercnple
kplaio
Solution
Thc intrrfociDg togic shorrs tbe 3-to-8 de.odtl its output Iirc 4 (O.) is us.d to *lcct lh.
8155. Th. addres6litres Ar to AD rtc contr..tcd as inpul to th. alccodcr, and lhe lmcs Arj
Enablc lines. Th. third Eaablc lirc (a.tivc high) is
srd Ar arc uscd as activa
p.nnarcnd, coabl.d by tyinS it to +5V. TtErclorc, outPut lirc 4 of tllc dccod.r gocs low
whco drc ad&er6 Iin s
c thc follo*ing addttssi
TIG
IDt(
Sc$
sYr
sol,
the de.oding lo8ic and the memory map of thc 8155 shown in Fi8urc 3.15.
loi
00t0oxx
A;
carc Iincs
aft
at
32
loSrc 0)
Thus. th. Ermory mrp of$c 8155 tncnrory *ill raryc frcm 2000H to 20FFH. ln r.dity'
nE Dory s..tioo of this tl55 uses th mcmoty sps.c liom 20@H 0o 27FFH. Th
SD(-85 m.ud rlfcIs ro ihc m.mory lpace from 2ImH to 27FFH as "foldbact sPac."'
which .ErDs it i3 ool bcitrg uscd, but tlci$er is it avarlsblc for !!ly .4alrsioo bccalle of
multipL addrBscs (as axpl.incd bclow).
ln FitorE 3. 15, lhc ad&css lincs Am, A., ird Ar arE doal cal! :trd crn .ssutr. logic
strEs 0 or l. lJ lhcsc lhrlc lincs assurE logic I stltc, lhc trl.glory nrap will r.n8c ftom
2?OOH to 2?fFH. Alt.rnpting to slotc a progrtm in locrtions on p.8c 27H is lhc.sah. as
entcrinS tbc lroSram in locations on Pagc 2OH The tnelhory eddtlss.s ftom 2lmH to
2?mH will aactss th. m.mory rcgi$e6 from 2000H !o 20FFH. Thcr.for.' dte EE ory
tlt
sp6ce fiortr
caoool
b. us.d.
Al, AB A1, AD
oo0o0
OQH
oo0001ll
\------l--J
AII
I I
\-/-J I I
i
I
0000
0 0 0
IIIl
I I I I =07FFH
illr
F
tltl
ltli
0 =0m0H
Hd
TD'E
s{
br{
L.l
79
Frcutl
3.16
Inlorioclng th 8755
SchoEtduc
fom
Systom
Lrn&? (Sub
Memory-
SDK-85
SDi-t Ur.it
A,'
atr
I, QE:
roM
1973),
3:05
ED
8755
3,25 How
&!
l.
2.
3.
{.
as follows:
Reading the Hcx keyboard and cleckin8 for a key closurc. Continuing to check the
keyboard urtil a key is prcssed.
Displaying the Hex equi\alcrl o[ the key prsssed at tha outpLr( pon. (uch as the
scven-seghenr LEDS.
Idctrlifying lhe kcy prEss.d and storiog its binaiy equivalent in memory, if nccssary.
Tr,Ilsfcnin8 lhc Fogram exe.ution sequcncc to the uscr program when &e Euci.re key.
is praa3ad.
TIlc progi.mlner entrs
ft.
dara keys (0 to
80
MrcRocoMlrEp
wh.rr the uscr prcgram is stored in RyW mcmory irld dir.cts tha MPU !o cxccul! th.
progtaJn by prBsing lhc Errcxr? or Go kcy. Th MPU f?tchcs, d.c!d!s, and cxccutd ooa
33
3,31
Manufac$rcd on a ringla LSI chip using an r{hanncl silic-on'8aE MOS proc.ss, lhis
hicroproccssor is houscd iD a 4o-pin DIP (dual'in'linc P.cka8!). Thc 8080A i! rn im'
provrd vcftion of lntrl s ft's! 8-bi! micrcFlc.ssor, lha t008 Figur.3.18 rhows tha pin
'conaactions goupcd in funclional ut ts (s!c Fi8urc 3.1 for
Pin .onfituratioa)
Tha 8080A ha! sixtan addrcss lincs and eight data lin.s, and rcquir$ thrlc powcr
-5 V and rl2 v) atrd a clock with l*o pha!.3 (6 tltd 6). lt h$ Etl
signrls
not
includinS such contol signals as Madory Rcad/Writa and UO
,co;EDl
Rcad/writc discus&d baforc. Thcs. arc gcncratcd usinS tha syst m conEollar. Fo! thc sal.
of cladty, thc functionel dclails of cach conEol signa.l a& dmittld h.rc.
iugplics (+5 V,
This rs a clo.k Scncmaor chip dcsiSncd to plovt.l. a t*o.Phlsc clo.k d rnd 4' to thc
8O8OA. Th. crysisl dcillator providcs ihc ba3ic ftlqucncy divid.d by rE inridr6!chip,
and ixo phascs-d rnd A-aft gcncrat d for th. 8080A. In .dditioo. da 8224 Scmr'
ar.s rhe RESET and READY sigda for lhc 8O8OA, and lhc STSfE (Starus Stsobe siSral)
for the syst In coduollet thc E228.'
rl
I
:
4u
)at
OND
INTE
w-n
DAIN
l5
TANK
osc
+DB
3:tJ
RDYIN
3:t8,3113
DB,
03:
R-E]IN-
+t2v
OND
SfiTIS.-F6BE
NiA
cNn -..:.;
MEvE
BEiiF
li6F
i6F
PIGUIE
3-
I?
E-106!A MPy
hEI cd!.n.on.
,t
c.r-
ar,sJ
Fo,r, o"-,,
auGor. t9?9).
7 t
TIGUXE 3,
+5V,tV+11VCND
i8
INT
HOLD
READY
RESET
SYNC
INTE
WAIT
3I7)
This siflgla.chip integaalcd circui! is employed for lwo purpos.s: ( l) as a bidircctional bus
drivcr foa tha dala bus. ro providc .ddiriolal currcnt capabilray to drive pcripbcrtls; and
(2) as a con[oilar. to Sencralc rhc neccssary con!rcI signals.
Tha eitht data lines of rhc t080A are conneclcd to thc chiElg gancrata a buffc&d
data bus. Thrc. signals flom $c t0t0A-DBIN (DaB Bus In). wR (Writ), and HLDA
(Hold Achowlcdgc) and ST$[B- lsarus Strobc Signrl) &oIn thc clock a'r uscd s6 inpu!
to gcn.rar. flve c;nrol signalsr Mcmory Read (FiEMfr). Memory wril. (FlEFiW), LO
wnlc rIO!t-). and Inrcrrupt Ackno\ l.agc rFiiAt. F91furun di1
Read (fdR,.
cussioni rll th.Er chi'ps witl b. vi.wed as the MPU. Thc control signals ?6F and 76F
arc functiooally simiis, io rhe 8085 control signals mF and low-. rcspcedvelyi lhey just
have diffcrent names in the 8080A and 8085 manuals.
l|CUM
nc er,d
ta i;
j
sourq
,.
,o
3.32
.1
It'
ntdEl
6. 80{
clrsnfl
quidr
Figurg 3.19shows rhc timing of thc 8080A Memory Read cycle. ltis in many ways similar
to thc Memory Read cycle of the 8085: however. therc arE some differ.nces.
Tha 8080A data bus is used for the sratls idsniification of an operadon atrd for
Eansfer Thc MPU places the stanls of tbe operation on fie data bus during lhc eadier p.1
of the cycle, and places dara on the bus during the laier pan of the cycle. while rhc 808(
uses ao 8-bit stalus formar lo idcntify vanous MPU opcradons. the 8085 uscs lhr:.
separale lin.s (IO/ii, S,, and Sd ro id;ntifly ar oprarion. FunherTrore, all rhe neces$L1
control signals can be gen.rar.d in arl 8085 syslem by using th status linc IO/M and t{o
control sig:Eh-
coorol
inilnat
rbcl
r.tit
,y
80ryE080A-&\StD MICROCOMPUTER S{STIMS
Q-D.
DAIII
I
a
I
I
tcutE
3.19
2-,
3
rt
Tha MPU conEol signals in thc 8080A aIE 8c[cratad in lhc fashion sinild to that
tha 80t5, by combininS th. microF[cr$ot conEol sigals and lhe sBtus. Howcvct,
80toA, orc staNs k idcnrilicd usitrg ciSht dal. Iincs, and thc MPU opcrations aIr
cl&sified in tln diff.rcnt catcgori.s. fhaEforE, lhc aystcm conEollcr (lh. 8228) is rcqrirEd @ htch ttlc staos ard gncrat! thc trc....iy contol si8[sts (Figur-r 3.17). Thcr.
out th. conc.poal
cotrEol signsls can bc gencrated by usmg thc drscrllr loSic !o
dmilarity bctwen thc 8085 and &e 8080A.
tl
poi
SUMMARY
ch.Plc' ddcribcd thc arhitlc0rr! of rh. 8085 micoproccssor ard illlr3earcd thc
i.rr ddmultiplcxing lhc bus AD-ADo and gencr.ting the conEol sig,tals.
I
:
!
IAIIJ
3,3
compolnon ol th.
tots
cma
l
Po*cr Supplix
x. Fuodio.t
l MPU
olx: +J
ThI! chiF:80804,
E22a
and 8228
3, Oock
ch
Ona d
3 MHz
2 MH.
5. Dm
Bus
8 Dat! Iincs
Dat
rd
8arcr.
Phr..
a. Goct Elqrrdy
5. Addfttt Bur
and
is
hl
nultipl.r.d wirh
E D!t! lin.s
rr'E
d.rr
MulriDlcr.n wih
dll
lovrG
$$us informaion
Explain
?. bt.rn}pl
On.
l.
9.
Eria R.rui!.
Sad
ii srrE
S.ri.l VO lin
Compld pro..durc !o gcft.atc
sutus inform.tion. Nc.ds
.xka chip. lnJonnxion i3
ar t0EOA.
s.
74
insErctiofii 72 inasEtionr
dE t00,r.
iE ssrE .s h
Lis! thc IC
reeds
ASSIGNMENTS
1. Explain lhe funcxons of ALE and IO/M siSnals of the 8085 microproc.ssor
Dmw a schcmaric to dcmultipl.x ihc bus ADTADo using dl. 8282 oct l latch.
3. FiSuE 1.20 shows fie E205 (l-to-8) decod.r with th thl! inpui siSn.ls:
IOi M, RD, and WR from rhe 8085 micropro.essor Sp.cify and namc lhe valid
output slgnak.
rd
thl
rcadin8
ln qucstt
I
Imporunt conc.pls rclatcd to tha 80E5 archiEaturr and thc ctacudon of rtr insEtcocr
.{
ri
Whlt aE:
of lhe
Sp.cify
MH2?
ln FiguE
the invart
ln dE
SO
(s.r t-ita
accefl
your
rl
afi
In Figtrt
In
Fig(
Lisr
dr
Erphir'
.o. t2ot
ro/El
^,
;;1,
^"
wtr
E, E,
3:
!,
E.
o opcratc at L l MHr.
(CY) fl.8s, &d wtFn .n dEy sct?
List th! scqucnc. of cvcnts lhat occurs wh.n lhc 8085 MPU reads ftom rneorory.
A$umc lhat mcnory locstioo 2075H has a data bytc 47H. SFcify drc conrcnts
of thc addrEss bus AFA. rnd $c multipl.r.d bus ADTADo whcr lhd MPU
rc.dr dlit locaiion. SFcify th cooEnts of dE progr3m countcr whco dl. MPU is
Spccify th. crystal lrqucncy Equircd for an t0E5 sysGm
wh.t
arc
signl
MHz?
lD FiSurc 3.10, spccify rhc mcmory maps of the P"'wM and dlc EPROM chiF if
tha iovcnc. of th. r(hrEss lin A,r is .liminlcd.
h rhc SDK-85 sFtcm, dE sFcificd map of lhc El55 mctnory is 2(mH 1o 20FFH
(s.. Fi&r. 3.15). lf yo'r cnlcr . dara bytc .t th. locatioo 2lmH, will rha systcn
acccpt lhe dsra bytc?
If it
rcccprs
srorc
$c
Io Figur! 3.15. sp.ciry ttE mcmory nrp if output liE Or of dlc dccodq tm5 is
conEctcd to thc CE ligral. Sp.cify tbc rrng. of rhc foldb*k nEfiGy.
ln Figurc 3.16. spacify thc m.mory map if output linc G of (hc dccodcr t205 is
cmo..lcd to $c G signai.
Usi thrlc imFDvcd fcarurG of rh. 8085 ovr. d|G 600A microFocclso..
Expl.in dE frDcrioo of lhc syslctD conEollc. in $c 80804 MPU.
--!
.'.1
and
I
I
I
I
I
lo*r.-*
I ffi;-*d*Eltrsby
E{-. crrh,
-h.
F*
Uriti{.d
crd..
h ecrr i.$Edy ir
ln rif o* oes og"lo.
d dE t!.c1rc r-'.d
h m;#.!|-
1ffin"n.*o*L"-aa.r*.me
rt"rc'uttooof
ffi#.,.o",*irunns
"'
-1
Nsrnuc!
i:
li"rf
trcr{
rs
lQ
E{
tpe{
Thcsc
--
ii
r{
$I
i.fl
I
I
ceq"I
a.ol
l":H
qrl
rd
t1
tt
N'MUCTIONS}IID TIUINGS
rffi*affi#llffi,
These
! {e,i&iiidii-aoy
sut
rlae.
AID,j';
.,w;ffi6,.i1rt,,,
.
I9TE&S.B! ""'
bc
9u!3ll
flqg
o*ig.g-E!"lu!i,c.oR.d
,$ri.t
fll
e or of !d
a-
no A
.
","','.-.,
r'",'t'f
Itis
groug
of ;isrructions'"'t,ai"
(r urronditooally.
Sitrcondidonal jumF
,t
"
..qr"n"" of po*gnm
Foglimming. Tlrosc iostmctioats ta3t for a clrlein aonddon (a,!.. Zrro ortirrr nr!)
an,l atrer fie prcgmm sequcNe !*h.n ihe condirioir rs mct. tn airlirior. ftc insrnrcdoli
s.l inclu&r
rn iastrqatie! callad
an
,.n.ordi
ional
juhp.
I+r.lc, ;'tir*y[
clntilil maaiina fuirCdois nrch
ai
as
-l
rrb
*;lr''7
90
Mlcxocolarulct
iffiioo !a ]!
l. b rb !Gfr, ac'co@ pf ric-rc !r
d.sir kb r! drr3.d.
Soor td?ona a{aca of tha
ArL
Dr.d bcloq:
!,
1,
An l,lo
Id ri-]'it,.. +-t
n".--o.l
INSTRUCIION FORMAT
r'^j-!:n'r'r
A!l
-tk"^
. tivrn
fii.
(rdllrrau
!.*
bc
v
4.21 Instiuction Wod
-;*
Th6.lOEJ/gmA inrmcrion
to tdoad
ln
Size
t6 h cbr.ifd i! o rti. f.liooi6 rboa
gu4l
rcccrting
iirc:
ft.
$m !/!rd!.
ONE.BYTE :NS'TRI'C?IONS
Foa
li.f
Copy thc
oosElt
ItG.&crlr
hE IG
rb
C.
of
Or.dG
ODarrad
MOv
c,A
cr.Illrb:
nll -
{FH
oti
od
toC
lnvat
a.a
TL
rhd
rr al
rDrNcs
I,gfrrnolc
Add
^xD
r-
t effi. ot
rqid.l
ADD
I0@
B to dr.
.6!6 of t!
ElrlloLlor.
IN! (codpLfilt)
c.dl blt i! tb
Gr|l l!b..
.g'!_-ltJ.l,
Fg
2FH
ld
lhud ir
t 2.bya
rt
N$nucltoNs
h.&udin, 6. n n b,t +.crfr..
|D.
oFrd..
o?6!!d. Factr,lpLl
OD.od. OFr.
T.rt
Ivlvl
.t| t.bit
ddr hyta in tha
&n
ra
tbc
ddr
b!,ta
it
A. D.tr
3E
Ihi.
A.32[
ltc r..qrd
lrt
ILr
Mlaooal.3 ,Lr
MVr
rd
C.d.
Tlt
32H.
c.d.
Glrddaa,
3E
o nranory
Flr,t Byl.
S.<rid D',i.
k rrt&n at:
Coda
,3U
iITREE.BYG INITRUCTIONS
h a :l.brl! ilrrriEtion. dE filll byr. rpccifica 6a a?codc, .rd rtlc folhvin8 lwo bytd
lccily tu' l6bir .&r$- No6 rb! 6. &cood byt i. dE ho-oidc. r,rdrlir .rd dE drid
tt!
B
rh.
Fgr!.a'
SE6t
Elr1lloc.tktr tf,JH.
9t
fhqa ireltad6
ifitEt'lon.
t i. rFcin
,*-
oqqo,
^PP
CMA
llr
OD.od.
Of.ild
Cod.
,MP
2m5H
c3
t5
Fi.rt Bylc
S..oid Eyic
Tbird Br'!e
G,D
(-l
g' ,,
0"
0
92
MICROCOMPUIEN
S'YSTEMS
ANO IIADDWTRE
l.
2.
Past
4, I *ill
3. t will
(6e) bowl.
. Thc filol requcst spccifia. lhe cxa.t itcm, it is silnil{ !o th insqtclioo for loeding
aFcfic dal! by. io a rc$sl.r. ThG ..cond Equcs( mcllions thc bowl r.d*r thrn thr
coottna, av.n 6ough onc b inl.rlslld rn thc contcnb of thc boil. ft is similrr !o th.
inltruction MOV C,A wlicrc ngisten (bolvl3) atr spccificd r.lhar lh.n drE. Th. third
e
sutgcstion (lt us cao assumes that one kaowa whei to cal, It is similar !o thc insttuctioa
Complcm.nr, which implicirly assumls thet tha oFrand is thc rtulErd.tot. L tha founh
scotancc, thc location iif d& ilcn on lhc nEDl, is spacificd aod nol thc rdual iEln. lt is
slmilar ro tht iostructiooi trrlsfc. lhe dala blrc from thc locatio 2050H. Thc l.sl ordc'
(\rhat Susie ordcred) s sErcificd indir.ctly. Il is similar to in rnstluclio.n lhsisp..ifics r
mmory locarioo (hrough $c roolcnls of a rcSister poir. (ExamPl.s of tbc lasl tro tlFi
of iDstrucrion alr rllusuaEd in larcr chapllfs.)
Thcac various ways of sp ifrme d.ts .r. ca&d-!!c rddnsdn8_mod.s. AlihouSh
microproccssor instrucdons rlquil. one or nx,rt words to !tscify dE opcrards, lh.
trotttions rnd convc.tions us.d in gFcifyirg the operands have vcry liitlc lo do vit\ thc
or,cretion of tha microproaessor. The mncmonic Lilcrs used lo spcify a command arc
choscn (somewhat qbirarily) by lh manufacorcr. Whcn an instruction irs@rcd in
i?
is
{or.d
i,
coavenrions used
slq
It
i
ng
I
]"
i,
dr
idcotified as follo\rs:
CodG
ltcglltcrs
Codc
000
mt
00
OI
R!8bi.r P.i.t
Bc
DF
93
Dl0
E
010
0l l
100
t{
t0l
' flL
it
tc,
n.z',
AF oR API
lr0
icsewcd for
Mamory Rclatcd Opcntion
Fuhctiolr
l. Rohr. each bir ofth.
accumulator to rhe left
,.
by oae posilion.
Add rh. conlcnts of
rrgisr.r ro
a
rhc
accumulator.
O?ar ion
-0rXxH t
I=
Code
0?H
(6-bi1 opcode)
t0000 SSS
(rmo)
Registar B
C@
Implicit
Binalv lnsnucnon:
i!
lm00l00 = 80H
.\dd ReB. B
.rprcssed !s:
OFode Operurd-
Hex Codr
ADD
A
8OH
3. IIOVE (Copy) thc conlcnt
0l
ddd
of rrgistcr Rs (sour!c)
2-bil Opcod. Rcg, Rd.
to rcgistcr Rd
*-''
1[ rr'
rrr
Rcg. Rs
Thls inrtruction is complered b) adling th. codcs of rwo rrgistcrs. For example,
Move (copy) rhe
contcnr iO .l
TorcgidrIcr.E-Ot(ddd)
: I I I (s!,
From r?gisttr A
0 I 0 0 ! I I I +4FH
Binsry InsEuction :
OFod; Or..and
-t
94
l.rcIo@l.,t tta
3l3f8x3 AltD
ll Id{lI!
.l
Orq& Ot.r-a EiCd.
LOV Cr,t
1P
n ... iodir lt. ffi iqir.r it li. &.d!ri6 d t 6d n8i.r6i. t rdGfioc A !o C-whli .p?Gat .Gwr$d fd. !d.l rG! noo Lft ro ri!h. fyph.Iy,
(c.?y)
ln
..ra.
ir lh.
lf,
l&al8)A
u.cr't
l{OV .1, d.
olllDlDlDlslsls
4,3
How ro wRrEAr\rD
lit
aactr,,esupr.u pnoenau
t!a
4.31
rdd
32H .nd
4tH,
tuollbr
l. Ldd tt. nu .r !2H ir ol. 0tit ,
Ti. r.p. 6d!d b.dd
.r! l. foah*t:
Ed
-rD.
pofrrd.
dd.
:tt, rl i..?.dn
r Id.{ Z l
iFdi.a
- tt i i.ri.- *n .!.
-a
c.
yoo rlould
tE
l cbd.
95
IIIS'TRUCIIOIISAND INGS
'
Aft!.
n !rin!
c.a llosbtc da
lotkd
ec
aaP.
rlSix.r C
of lhr Fotr.rh
fnd
Mrandf!.
L MVI A,
!2ll
,. MVI B.
,tttl
codc
(Ilq)
3El -.
z.Dyc orEudton
3, I
[]rn*,,*,-.t0
t: ADD B
-a.Movc,A
4F
76
g. lrLT
l-byr. i!fircliol|
I'byr. illlaucdoi
l.byE itunuction
Mr.ody
fE&.
20@
2mt
N2
N3
tlb.., Co.Ld'
L lb.r,
0.0.1.r.1.1.1.0
0,o. t.1.0.0, 1.0
0 0.0.0 0 r t.0
H.r
Cod..
06
01001000
2m4
1.0.0.0.0.0.0.0
2005
0,t.0.0.1.r.1.1
0l I r0l
l0
4F
'
96
B
Ach
discr
lerE
kog n Eracutbo
Rlautt Thc.nswcr of your additioo (32 + 48 3 7AH) is. foond in tY/o.ltiste$d& rccomul.tc nd lllistcr C. Evln if the sum is tr.nsfIrcd tlm $a rccomullld to
Ggis&r c. 6c con&orr ofth! tccumolalor arc ml dGtoyrd (R6tEnbct, ir dau tnntfcr,
lh. sourEc is oo( dcstroycd). Hor|.vcr, thc ans*cr will ma b. disPlay.d rutonric.lly
4,4
d! ml isclu&
an OUT insttuclion.
f,n-
1..I I.
I ,,,sir
'.!.I
S.Cl
q.c
i!
A program or instructiont
ricll
dcs.ribcd m
cod..
AI
&
thi-E;ffi
lbvtj
pc.fonnd
lhc clocl
a!.
witin r$v.o
of
tlrc
. Thr
l.
3.
4.
5-
Slrlut
t085
oFr..locr lo/ti $
(OF)
(MR)
Mcmory Writ (MW)
UO Rc.d IIOR)
t/O Writc (lOW)
Opcodc Fctch
Mcmory Rcad
0
O
0
I
I
lt0l
t00l
0ll0
l00l
0ll0
Colttrol
W[
ta
-:t
"l
ln iddition to $cs. op.r6tions, ihr 8085 p.rfotrns otlrcr opc:ations, siriir as lnrcnup
A.knowlcdlc (s.! Table 3.1), *hich ale ommi[cd hcre for thc srkc ofcl&ity. Bcforr
discussing lhc riming'and thc cxecudon of rhcsc file opeErions ive nced to diinc dxlc
tetms: insruc(rcn cyclc. machina crale. and T-state.
Instructlon (Vcl is dcfined as rhc trma rEquirad to complete rhe .xecurion of .rnc
in$ruciion: Th. 8065/EO80A idsttuctioo cycle coosists of orlc ro five m.chin .yal.s or
or,a lo fivc oFErations,
/
.-.r'
t[.
ilrl0r&iioo MOly C,A (ao& {FH} is srorcd d rrftory loc.dor 2OjH ircf.. b
S..tioo 4.31, Utulrt irr PtDtr.E). Thc rcufiulilo. h,3.drtr bytc ?*H. llhrEla ttl.
cf,aaulioo of dlc intrcdon &d.c.lcuha thc cxccutioo timc ifth. syltain.hck lilqucncy
L2
MHz.
Erqmple
4.1
..in'
M.i!t
L..lb. (ll)
2005
hrc drlt dlc insrtucdoo hcrcd { dE Flvious mcr.nory locatim 2q)4H is elrcdy.r.qtlcd! fDd th$6a p.p!.rq ccqrt . h.5 &cl&rrs 2oo5H.
Io
,,o
l.
TIlc MPU placcs th mntcnrs of lhc progrlm counEr (2m5H I on th. address bus, ZoH
on ahc hiSh-ofilcr blls {nd 05H oll {E low-qds bus
2. TtE MPU cau.cs ta ALE sigrd b Co hithi dr{ c.a b. !$cd lo dcfiulrrDlcx fte bus.
lD-Atb.
Sot'ution
MICNOCOMPI'IEN
i'l
\ ,,(! l
\!\
( l"*
)
Sladla
6 da"ll{
b
XVI A.
lin
llrh
h*
rqdc. rc &
c:,rL" tal,
htr&L,
Ddrf
tr a*ot.
O.rTob.mCt
Ata
ld,g
l,.l
ma.t
a5$iruUou
oan
99
t!fiicb! (wtA
&l
tl)
loe dl
100
S' = l,
.rrb..OpcDd. Rlct
c:d.
nt
t lt.n
lt
3utnfftir. lh.
of ooc
foUowing points:
oa
lht r l-b./r.lFrrrdd,lns
o*hhc cFl.s.)
as dl. !.$.ncc of opc ioi. $riEd to coflplelr (,lc
A.trtioi
loc
XTHL liar 6w
rnd i5 sFtuleiz.d
lrilr 6.
iyi_
tan cloax,
a.
$Ius si!nrl!.
3, Th. conEol signel idcnrifias thc timin8 ofdE op.ratio!.
Ednpb
{3
Sohrtlon
sa*i
OFr.do
I'
OFcld. Fctch
2. Mcrtoq Rard
3. Mllroq Writc
4. YO Red
!. Yo WriE
n|I
bE
codr
A2H
82lt
MH
42H
l0H
ttE cr.Eltioo of lhis iFuction k ia ul.t, *.y! sii ld o tha arccudoi ot ttc itlstuclioo
*ot}n i! Ermplc 4.2. It nquirca t*o mEhill. c,'16 {ith r loul of savcn T_ltatss.
Frgutc 4.3 shows rhat ttc bcginDi[g of . mshi* cydc i! ildic.r.d by lb. rytrc
Fft., riaiLi !o tllc ALE sitdin dE EOt5. At Tr, tbc micloFo(lssor Ph.!. &G rddrcsi
oo tit dro
(2GOoE) oi 6. .ddlsr b{s rd tlE o?r.don g{us (Opcldc Fctch
-A2H)
h
ibc
tll[tt.
hl'. Tha t22t contol.r
lbc aFc F .c 6 Lt
'r.6
il
u
R
TND IIUNGS
l
t
td2
Ti
TI r.
ttjtli
:*?f;.
g,i{'":
r, lr: lrr J1 I r!
r.lr,lr. r,l rr
-;7
(b)
8d0A
T:
I1,
M.hir Cr.k.
a.a
CorrFolt(h
'lemr
i, lh6
lXl),
8085
irh Alc. .i
drd flre
8O8OA
trl.tuctto'r CYct..
tdJf,CE
Crry
rrar!t-!,
d.. od ,rffiftEt.
2,
4,
4,5-'
=7q
:ry'k' .t+(
lrlar 7
In lhc aubscquent mtchrrc cycles, thc EO85 rlqurrcD only thr!. T-rillcr: ll$ 80804.
thc odl; h!rd. rcqurBs toor !o livt T-surc!.
.r
q-5
= ad8s,,to8or &bii
R.ei;
td = R.8k rd.ltineti6
R,P = RcEktEn oair
() = conl.li.s of
iTll.. i6lll<ric eidri-
.rpl.ii.d .lth.bcrk.tl,
nnai6
.lr.rScd
in
105
CMP R,/M
c?r 8+it
b!. tli.r,
'
d|c .oitcnti of fu
th&, cafd ro, a'r
*i6
moll lhl,r.
ctmgc rhi prograia scqucnc. lmconl
4. Bnndr iLst0ctions:
ditionatly.
Iz
ltrit
Changc
Ait&rsr
spccified by
!la.
Jc l6bi! Ad&.ss
JNC
l6bit
AddrEss
iidD
ZEro
C;ry
s.qrma.
c-oouol ioslinctions:
HLT
NOP
rlldcd
-$arioor
C.[ -d Rrtul!
to
I6bit
a5l
iIrc
5. M*hirc
jf
flag is reset.
RET
addtlss
*& l6bit
flag is rE&t.
illrnrcrions.
How to Recagnlze'Nunber
ol Bytes lI}ctrl lnstrucuon
t E bcoc fullid {,i6 irltnlctirtrr .od bcgi[ to rrlc ttsn il *riting progrem to be
dad orrualr, wc 0.rd to tml, dlc numbct of b/!6 Gquirtd for . givco iolquction.
I i cry ti rititc pogrrrns if wc can fiod a wal lo &cognizc 0t aumb.t of byics in an
-Ei(a
MlcPoco0rPt
106
'a
Eranpb: r,{OV
ArirEtaicloSi.
Eror&rr
iE
l'bp
intnrl.don!.
DG[ffitrl8
l. btEli(r lti
! Ib
&.i&rj
alindr.
lod d
Yvl.
nl
]'by!. ioer8tio6'
lh'
rppticruc, lll.y m.y nd4pry io
'll
in
lh.
ioilid
c.t!.
w
b.
u*fuI
thur
l
of
ltt&
ndc.
irrlneribn! h 61 ..l. tl,owtttt,
of *riting lroSrn!. Ancr *ritit{ a fa, FoltMs. Fs xdll t gi! io t c th. ,alattr ttd
wil ba at* lo llcoitrizc &a ttnbar d b!i6 rEquiild for an in$,ction'
Althoodr
SUMMARY,
dr.sibrd lh. tbr. nrdF rion tuction. of lfiG $85/r080A
rrkrFocarta. Eovid.d a! ovcrvi.w of lhc it6Blcrior a.t' ld ilhttalal dl
Gr.cntbn d irrtrdrorl. in llhirn lo thc ry.r.m'r chct. Tt inDollttf, c(nclF
i. dir ct{..t cls b. uno.tiud lt folbw.
nir chdlr
.lo7
tr Towtit
tr
all sscmbly
sdllst
p.
ir
laaru of
{E
erhi!
arLb
It
tr
VO
ASSIGNMET.ITS
L
2. DcfitE
5.
5.
systcm
,.
T-$acr
l0 T-sr.tcs
IllusEr& thc contcnts of 6c ad&cas bus and Ulc datr bus widr rc!p..r ro rllc syslrE clo.L iD atr EomA sysr.m whln rh. fouowirg insEucuon is cxccutcd. Show
-eprop.id!
tbc
cooud sign.ls.
iftEGy .!rrhh.
Addng Cod.
m5l
C5
m52
F2
!,lncrloi.t
ADI. F2H
Coonrot
Add F2H io dE codirn$
lhc ac1rliirlatfi
of
r08
MICNOCOI'!(,fEN
SYSTEMS
AND HANDWANE
trhsre 6. cGolr d ria ddE . bur rd &6 &r. trrr' art dtc tinring of lh.
caol'r[rb ia a U5 .r!a. r,t .rtc in.trldiq! i! q!si[ 7 i. arrcu!.d-.
Stor tu btlc t trcB oafi. rir.L I(y , So i[d Sr.
t, ffif? bfr.i tilt b d 6. blbrilt t*o IGr @!rba5. Bodr ri. nlrnbq8
aold ta.aa!!r! fa IUIG o!. Srtr tia 116 io ih acqrmlbi
a.
'
!ard..G
A2H
AH
ta Brb
FlSr.o i! Qc.{ir 9 iio rt .m8'rflloA l..dbly lr!to.g.,
ff. b !r:ztrl.it ed h r!!iE B rd d.r. bric yrH i. ndld in 6G ElDrl&, Slirr ta ffi
of i!,!Er B, C, ntd ri. g{dhr .k tb er.qd6
oa
I{OV A, B
ltov c, A
r{i