Unit 2 Notes
Unit 2 Notes
I)Feat e 6085 :
8-bit nicnepPscesen ie. A
prccey,on provide bit deta
Bu a
aud data lu (D D)
number o ertonal
) dt
fdisuing addui snadu :
(o) Paenodiat (6) Regitn (c) Ant
(4) Tudit
RST1.5 inaritamete
pryomsaud
Centuelles comymnicatonal Pc)a(mougistos
`dP
ri steu
) s)
3) n) (B,C,D,E, ction She
) # RST 4
he t ruister has ihmdi
&08s povtda has 65,
4rial &-bit
RST H ,
has Aontre S.5 aud sr
T)0 accumulate,
L) kogic
au aund e-bit
atuel ouih &085ALD)Miit
ability
shane o ignals TN
TR. two
wlich
(Io 6- Jog
/A,D, allews bit
nugistor,
We)
INTA RST65 TRAP
INR RST S.5 RsT. 15 31D SOD
Tvteupt ceutask
IN
GEN
CONIROL
STATUS DMA RESET Addes/ta
RESET IN
As-Ag AD ADo
Data/ Addiybuy
Vaoius umdowal
.
uit
"Iusution dacodos aud mackin cycd sn ades
.
Addus buor
Addes / Dr bulor
Iuoumeutn Oacweute hddren katek
Srial T/o cedrel
aud Coutvel tiruity
adusall bit : A, B, c,
D ,E, H,L ,F ucl tuo 6-bif egitans
B,C, D, E, Hand l a 8. bit jeunalppe
Can de uud
DE aud ML.
Waud Z
hy Und to old &-bit data dii ng" reution
dscme ustuctitvs,Jen nuistoy Availalt
A (Aaeumulatea):
d
Joad and stoe
qualiss.
flag &-bit ulid
Ac
Di Ds Da D3 D, D, Do
AC P
(sP) Painton sfack (b)
(Pc) Couibn Pran (9)
Rog'stons lb-Bit
aGycode
da steu CPU Jhe
calat nqistoy
ta Registe:*Instuudin
n
faity ruet
the 2V
i,e., 9hes
4!
has ugult unalater.
aw at te
deliond P-Pauik
lowa out
Cay Auiliay -AC
Zoo Z-
tfoudou, dayital
addus
CCuutn adi as a
do be
Addren Bulon
data uput sUnial ceanunicaton 4eual fon
J
'sBoss Jhe dine. single aat
aolu dwe tcud ad
communicat
tn Soial
Condroe j/o Svial
ulooud
a
tion. lnd' Spacial
eKlaut popson
way
ng
routie special tie Areculion
tthe
eutina spLua xtuteautotially Hee
Sstuction
iu
ret de
and ceds Jetcay, proMA CoabuslJhe Jntooupt
palo stack
countu pregam centehl" deoument
the m
oeheut to ued iu
ugistr bil 6-
b- Jhis
latch Adden
/Daoementn oementn h
D,). (D- lus data aud A)(A4- luu addsus
udor law i.e. bus, addoun)
data mlpkrad dre do
Bun DaAad»as)
tJhisa
8
(sOD) ine i ued o d data aud yoial
data
input dala /sD) iae
Tiing aud Cowtnd Cisuity :
-Jhe Centrl incuuty
lfnalons in
kulp clocke
seKeeu
toclasiied sigual
Resdt
(9)
(ovT)
CLE BNA
RESET
IN
To/M
HoLDHLDA
READY
()
fuuclio. Vcc
S
ALE Ag
WR So
A13
siga
Mioaprpeno
8O85 ()
Pin
Conligunation
40 34 38 37 36 35 34 33 32 3) 30 29 21 26 25 23 22
8085A fumug
bu
ddren
a
&085
aud
2 3 5 1
2 13 9
20 aud bus
Condel 1Sorial
(e)
B-5 SS
75 RST ADoAD,AD
RESET
OUT SODS RST
TD TRAP RST bu
Data
(
+5V
LC, RO
i) X, Qud
clek
1V) CLk 00T :
i) HLDA: Slis
HOLD 10gust.
Reset Sqna.
) RESET IN : Alow pu
Countu do zone(o0O H)
te
ErauphMov A, B
SPHL
tuo stack peula
) Diud addeenivg med
Erauqd:
LDA 2000 H
acunlatoy
) ; 2000 H nto tu
pai into too
SHLD 30cOH Steus
Jecatons
Cotent eL ’ 3O H
Couleut H 3ogt
4) Dndiud addusing wodu :
wéd , hetluny
addrcs
LDAX B
localia
MOV M,A Sees
Eraumpk : acunlatr
Couplumaud Content o
CMA arunlaton leltBo.
, Rgtatu te coutcut e
RAL
Data Jnan slen
MT data (&)
Jhin Tustacion dintly loads a
eQisten wite an 8- bil data wilhuia
Putucte.
Ex :: MVI B,6o4 bo H iuu liadad unto Hae3 negiser
2) MI M.data (8)
M
leads 8- bit
Butruaton dinaliy
lhin the iustuelion iete a
data gire wi
-SoH
Jeation. H 20H aud
Ex : MVI M40}
/
memery addees iy 2050 H
3) MoV nd,n
Tustudien Cepie daa fem he
Ihi
iulo dustinalin nrgistles
A 0 H
plaotiale
MOV B,A;Conenh
Mov
B
) MO/ M,
M, s
thi Instrucl'ou cepies daa fom th
rugister iato memey ocatiom pubd
the He
B = 3oH
Ex :
MOY M,B
Contoub 3 xsgiter (0 H) s
(olied inte the memgy lo catn
; wloy addrey
MoV nd M
5)
tx: x1 3, 10204|
aud 20H de °ster
) S1n ald
A90}|
Ex :
10 2000H
codvots 4 Angdn ('on) to
Docation2000H
8) LDA addn
E: DA 2000IH
a) SHLD add
Peiuchi stees dl couent
wilin tu
locat'u
Arithmetie Gyeup
) AD
Jhü Tustucton ad dhe Cotaut1 e the
t u Ceutents / accunulator and
sles rnll iu tte acunulaton
stos
Ex: AD ; Jhia cin stuctien aoill add the coaud,
Tnstauctiu adds the Coutout tu
Lecat in pointod y HL
A: 20 HL =2050 H,
;(2050H) =10 H
j he accunulator
3) Ata data (s)
Shii Dnctuion
wihin He instruction to thu Couteut e aceunuulater
ACI 20H
A- 30H, (wvay ag :l Cany eunsat
E Acugualater 4 ebil data +
30 4 20 t 01 Arculator
1) DAD p
Jeiù iustructie il add Coutub DE
piu, to the couteut
stores
Ib-bit nagister pain Such
Suk as BC, DE, HL On stackgt
Ex: DAD D will add h Coutaut
4) SUB M
thiu ttruchon Subthat tle Ceutenti He
rgister yain hne
maney lecal'on poiulkd y audHe toe
a Cnulator the esult iu
H coneut
the accnlato
thuctio will sultact te
Er: SuB M
localiu
Ihe Coutet
HL
atcuvudalor
atlumulaterr
Io) Sug data (8)
Thu iusuctiou sutrad
he instuction
accumulaton ud stees he elt auuat.
A 40 H
Ex : SUT 20 H A (40 ) - 20H ’ Accumula ter
n) SBB n
Shi iuduchiu sabtyads Hhe paeifitd
sugisten ondeut aud bore
atuuulater couteut
(amy lg !,C:20H , Ar40 H
Er: SBR C
C i Acuuaato - Cnegiten - Cy-Rumalae
40H - 20H -= IE (Accunulator)
2) SBB M
Thi intrucbiou trat hu Ceuteuk
poiued
a y ecalionaccinulate aud
and l o y
HL .-J 01 ~ HL
3o + oI ~ 2o S- I
11) 1~X' "f
cf~ iM,JrJW-~ JAtfLIL~ /-k C13iJt~ ~
J1ft rsren, -F ~ ~ '
~ - T f'/X H i W HL ~ IOFFH
=--
\D J=l rt OI --, I I 00 f-1
M) 1>C £ n
rfiM ~th' 11\A. d.;_~ 4, wJi 11,h t 1t,_
J}>tf eJ cfsien ~ ow . dl P ft.. w,,JJ JJ. fL_
SCl-lMI- 1 sl-m .
~ -- 1)CR G , E -or ~ E
:::---
1,) 'J>C R M
1J,.,u -VA J f rodi'au dt mavi,v,ii Jl, c.evJevih
~ ~ 10 W),l 'w. f~d ~ Hc 1U#Jl f alA ~ 1
I
j µL : 'LO~ DH i ( ? o~DH) -=- 2 I H
l I ~ o I -J 1-0 H
~) :l(X- np
jl,w Ju s~~ " ' 1 clwmw.,di 11,,_ wub ~ r;f;
~ paJA 11 C)W .
J) t :- Io 2-0 H
1
-rr,,r' . . ,1rt~1
.ttu.. <X.M,~~ o/ ,(~ ""{'~~ ;tbu... ~1 : ~ ~ ~
,t ')\e_ ~ ,&A. p'Yl) ~ y ~ 1 [,(f'fY\.. ;t PvL..t _Lo U". i. t",..,..,.., .
r
~ w~ t-~ tD.u-J, ~ a. ;~ Xo
/)_A m.M~ f,~ "'r n ~ c>V t.c>G,, c.A.~
0
'-4; AN
de-\~~ c..cl c..~tA •~
J'N C.
Cy :- o
::I p 0
po~'fi...rl
•
S' ~ 0
:r~ OY\.
l ~ I
::rpc r~ r -; ,
.,
Jf'O :r1,1.fl'f' f~
rt\
o.-Ad
p.::-0
\
j t.U"'f OT\ :U...\,D :z:: I
j WY\.P UYl
:ZVl,O
IU> l
Z.::..o
I
jC ~ t>OO ti
~e o-o H ot c. ~ ~ I
..,
.J '
1fu_ CA J- L ~~~ ~ \.tALd
\
----
, , ' tl,\.~ .,,~ ,. -
( 1 1.,I.. Gi,., tt
.
(f) 1
r V\, !, !tu..s i k.o. C t..<..' L.\ ('✓Lt r)c__
t r''- t.!> t~
,~➔ .. ..e,. ,~ -<J "'<vtA-
-C'" Cn\t, 1 "-4 c_k, ~d
., ...,
ro
C
tJJ. ~ II\. lo "ik.,... pc ,5~a Lt- V'--G.A. U, C:Vt, \_O~J
I
twi-. I
f--..J
'
1k0.
:. n- I
pc.. ..~·
tJ.rroo H ·
"'d
boo o3 M
. C
l O
rb~ I
-
... __.___
£)~1 L.V pLLc Y\
u,-t.o..
-1 c y-:-1
cc c.oJJ Crf\..
~
C N C. v..U t¥t /\.o t ca~
Cz_
l uwtuJ)
OY\. ;u.,t,)
t :.te,ic,
CN Z In'\. f\..O
S· t E '1 - rhM ~
~
. p<ry>'S [h.L
c~.cU .
...fcv'L rtT
R. c...
-1 . r · 1h~ &vi,~ c.,t,_ 0:-, ..~ 1"--c.l..L. 1k.c... LOA1.,,, _ 1/2
.,r 'i"<-~ lA.t pol:.t fA_t.c, l lu. p"b'D~tcvn. CcxV\ la.-t
"'
pc ·
1,~U loJ
C, ,JI
l,oo o~ vlt,
re~, J.. t1.. tu,.,l.c .~
'I
I~ '1~ ~~l~
0 <>
Ap~ u_/< c
0 0
CA J-L. tAb'txµ.. ~
J 1,;o< C C-i;r,;;•Lr-
~
~ c.e. ~~ .
( A A ~1) P-, ::- 0 000 l II l (o F H)
-ANA /\NJ> 1Y\..C. C,in",~ t..
1
,,., f, II\. ·1 h .'1. ;v, l>i.ncQ.ir~ O.o;;~ rnl.L. /\N7>i 1ka t c.,.;l.,.,-..1
l'
0 0 ..
,./. t 'f\..t lY\01\\ ,toc,'1..1.t ~Y\., (1o•A.to d l,~ II L a cd~U..\..- ftt-4.
t l ':., ~l :H\.c (_
0
t.~ "~ (l t c.. V y1...._ e"·to t
I'\ G 'I IN\ ci I 0 '.. I.>- u· ~
.~ le\. cc{ ika.. r1..CC U..M.t-tkto l ·
(8 3 ,., )
; (~o ?oH) ➔ 10 11 00 1/ ::
~t 11'
0r.?.A B
Lo~c~ ORJ tlu.. ~
!cJ t-11. a+tr.t paM ~ ttv
T t ~ lQ t.c.,w i
,pt~ Q A=- r w te_~ ~It '1j ~
1 A L 't" ·
.:tl\J.. l\.C~t
~ :tl,u_ J pe ~ ~d r +-\:u, f YOYl'\,
;ttu_
ur'A {ii\.V., tt.f
\
o..AGl. ;. ,~ ~ un"-clt-~
~IL
t /...'.)..,\,\.re~ . A .. lo ( I LD lO
C fl 3'0{-1 -~ ~OCu~
0
Th u
r- -- --- - - ---
t
1
-,
r"I"'- J T'
_STACK OPERA , ION S
E.r.aMfi~-
PLlSH t)
,3p - , ➔ sp C, FF r ')
➔ r i:. i:i= c.·. s,..,,
0
cSP - I _-,. 3r I. ' r /: r l
r:- ➔ -3 r ' ! F!: r H )
g. PUSH PS W
-J~wd::c°o-n. ..ri tL<iL~UW':l k5 lac)< ~tc:.•,,
Th~
n:'\.IL --CLLLWYl.LU.a:tor c.crd.D n.-b
vi crn,c.. ..n.nd ..LO(LI-Ll>
...i.ecA:tlC>fl j1C5UTh.d. l'y~ ~r ac k
J.lcto -tJ'rLt_ J(UUYIOr~
cth).tt. . .cltc~ttf'(L(Jt.t-) .:dtc. ?-St ttc k ~ tn .."L
-JlD'lf1.WI . Ii
._c_c;(LLV, .:tfu. . 6-1,d '
-//D~ .<>i;\
ci__~CLl.fl
.,ju o
an cl
:tl\L J'flLJY1t>'l.l.J ,l,xcd:t'hn f'AAl:ccl "1 1
I
.:th,t y')r G C ~ --r,Jvct:t.H · l
I
_E. xu n tf> I e. :-
_J2.U ~ PS hl
--
'-->P • , •\ •'3 r C,r r r )
( ') 'f '')
A - '1-- ~ r ( I FF r II)
C:p - I ➔ '1 P ( I rF~)
F f)
f/ Cl v ➔ ~<3 (J (I F
~
,__tPi-£
~ ~ j JnUYlCl.~d
1 ,, lo ~
It _t h-Cf\. .
CN . j"C >Ln lo\_
..~ 0 t:C \ck
t
.-lCYa:t16Tl j~Lrd:rd L ½ t: .d .:J U q_ °v.;JM, j1M oncl 1
1.1'J. tc )i
ftl.ah.Vt .}iiJtt ..o)t. . V o
...oe
rf o
O J./1. ffj 011,C .
U J e ta _ ~ 1 -m .,- ,k t_
0
~ W U.lfnli'dL~
_t',v,_
I
~ ~Le :-
OOf? 8
( r. 10 00 ) ➔ C
J
..3P -r 3P1 .
I
c m · _._ 8
8 P ~SD ➔ '
c
I (::,oo ,) :J C fJ 2- )
i'"hL ~ of
:tfl.o f<5tack tlJ)'tab.9-l
0
, U l(J -1 D .~ (W
-;±fu ~ c } I
I
1:r QJ~l, tf L _
rop p_~ w
s . S P H L '. i H1- /
-2> XNl ~
1fu. lN.,i>w c.ttQ/1. .LOJW
1
I
1
j; fu _
.t.1.u:tlL
cj _hi,;. -tu. • \
.conmct>
::t_}ui_ Lon:h.rch 'T H 4~L .
I E:c.u.mp Ie :- I
XTHL
Inp u± I Outwt
I
1 . IN ada.r { g - n d )
~
Th.th J.Mhw.dt6lt- ~ 0
• <> ...I
~ {'LU-lf ·-°--
0
l.u.dd.,U,b6 .l. b
' -ro,d ...w ~ e ..ru.uu-<tula.tor.
._W=>-bw.cl16n- .IJUD -1:fu__
Emm.p lt :- t, -.cop
~ d : Lcr L .ui1,t
~
0
j N 80Ji. : Th~
c.el.Ll±o. ~ J W X . -.aJ: ~ -
., t .e .
Bo H
-
_ _ cla.:tn. IDH trt, ~ ~
cl . OUT
L°b
__ctclc! r ( g . b°Ll· )
~ ' iv ~ ~c.tt'.'or-,
,0W u, uJ_ cJ.o ' 1
r,WtcJ/-> W ~~
:lJ:> ffe. _r,u.iJ1).),-1. t-°9(;}; od--~
,'J v.~ Lr J, JJ..UPs.,,, ~ ~ 61:w'(\,
£i (J..JY~ 1lL_·.·
QUT 3 0 H
Th ~
A ::: 40 t-t
~ d J: 6 f\ , ~ rt ,~ ~
~
; ( 40 H ) .to j:f u. ~ F ~
0
v~ 5 0 !-t .