q o.t-lolo, ".ssembly sL4'. , 1 " ; l ' L L z v u " ' ,, r c , J " r , 6 u , 7 . l i s , - 1 o , . ' a;rislir, fr- ll l,-rst,vtlorzvLo^uI lisl-siaJzH L"nl 'c1,of o. fol ^ ^ t o , n , r ' q q L ; . L , . Jrlr"l,u i t t r i ) t , , q * ; " : i q e , . , ' a B , L , o , , ^ ' 1 1 . " ' " ' . . , s , l l r u ljlo" ". .' l4pc. 'o ' - 3 ' ' . . - ad " I t ve FrrS.{ara^,..r pL" Llc"r dz- bv lzs''-, ir^rlcts , "ut' ql^^qL{ oJ',.'
lr"llc",^, qd ul,nr,q bf , a"^A{c i r ,u,L lo . hoLlu.,"d"dr.. B" r.3\;-d- L: - "' o L :-- d;sl-;.ro I ve.6 ra}' 'Li. i7le"'-"'' d..non,- vL qcz,l.,-,n Hz.Vt - Ar,"t.lt i rcJcatu)"hr. b.r"1p'r<- t-..,l\."i l.l,!."' r^"^-lc iqi n rur,l SBsl4,-i.. 3c,1eL-lz1*'
do..an'*,\^{-
,
m.ts;ll*
/t ^ (lvr /,.,,
I
--.. '-, ' S *'
,,'
\ t
--r
'"'' u./ , M2, . '-t '..1
q;nJu,;r-f,e gz./,i^'i
M ir" + e-',t (1.ail
't.2 | ; , , , ., ) 5 ,
ve A .a
i|
''
'
'l'l
i
'L"p/,""/.".,n S,;- /"'/
qol"t o ^a-li L;. ,ol . oq^a/' . u q t c a - .s . t ^ a l a t J/e'n,;
L,. A;- Li/c;s",,i.,n A;/q; is lz"'z t";*t, I..-{kn lrV ' 'u^ ln^./, ;^,Ls" oti.uTil al;1Jn;lcL;),'r. , 1 ., do h.Ltq" '.vc N 'n-14* r"-9,elo.-
lz,o,.r. vernr-
L--bi/,qoli
nle',nnnJ,r. Q.i'"J^JtJ+ ,l,f
'/-,o l o '
P.o9..t't1ta^t
o/o'qL ;..,t.i
bl! '
bir
yPV'"I.,./';al
y- "l^
tai ltla.. /I,l.roif /<.nZr,, sisEm/e,- 4 . bir c,ol. i la"olo U,.t s;,1',*'a ,'",;,\e Lpl/erl.t.'leb,l'r, vetlt k/c boS,na bi,' b:1:I h,/ dab jnil<- blX,q/<- b'. it/cn; loql,"f eahb'/,'r valqh;/le /4.1, /. i il/ta uzrLc): b;lq;s4jo.,,n (anl"e I oailr Li. proc.etsiag" d-./ipir-;
L;,,,j') CAU "r.iL" ft .iJ,. n ,'"in),Irn l/liLz"is/a,no
,6/,'(/";n"ry)
so,,'/o./o / /J ,, l'/'n'
(,,'; ' qJ/ Li)q'saqer . a/, I /uL..l"sir. HAL|. ir' F"/,gf io t"' l t"''. l,o-,t{ se/,t< sqh;pJ vc,r,la 't , Lil,' {"r^J"li' ' Eu , /". qapn'alt ic,in O l'/erk ISle..4ola aaroL''r' ' in.o^lo, ujzJc" "e ( , b , y 1 7 i n s . l -r ' c r t t r : iLi'' ./.o''"//',' b , . r n t t c r , s ! c ' , v ,
i.,,.-^.,r-
|l cgn','t+t qq oL o U o^.q\, . r " . r q \ r prrgro",r\ ] i . E i r I oo5iL p r r g r " - \ qo"Y u \b o 'ilir B,r ,,' n ' !,'r ?!?'f/ ' s ; m l e a d i r : , l e n l o , i r , d 4 1 ' J o l d . r l qo r g g ' * r n o l c n , /c L , . lh" (n { , . .-,-+ (. (,.r, r. cv, , . ,1 , o l o r e l V 7 / iL t k a lr. t ; . Litt'i; - r . -, * , ,. ,) U ; l g ; yyt ; jt') l z - o , v . ^ - , + "\ "' .r. ,,L ' . : - , iuli
i", "iJ"tu"t,'( A ;' ,t Zl-""I .r,
i'., i; ;,,--.
| ",t ,,t1 ve I lO *^ryiP, hef'za'1n'u.-'m,A^a 1*,"..y) "o laP,' r, e1,.'5r.r
Mikroişlemciler Dersi ders notları
{rif. srfi/
.34",,t, i,{ ^^"r1 13 'p'rr..''.lanqL'.\i. 19:rll.st[] X,", f 1".1.u {;i.' ","u, u;J".,lf " oio.ol r] T,'o,'lc (ti. " O, -
."ul.t,
L "\^n; "\naIt
hhtp://host.nigde.edu.tr/muzam/
iz"^c it ^c
b'leF."dt-,' lel.ndt3" bi
Doç. Dr. Murat UZAM
AA
Ivlr ktotlt,'tn,t',"
5
l9yw., ^^n74
Micro Proz.osscr
|
)
g:w,t /4P lr,?rc,'lla^aLili r
b r.
mz lzz'aa
. B, ,r., b;le7.n vc,'l% .loir gtrz,t i qnn'ru .qzhrt to,'/,ru-lct1;n bqaL-.r 4ol,1trl.ar s4 h"rbfrin,' aflil".'lBr. $fuIe,." b" iic to,'l
bir t:te'tl"' muta)anq 4.hdr, bjl<,lrn ' b i r l
vgq'tlarvalarl
pP , b"t o lcn l" J4 1",'1,'r'2,, O 'ol iL'li (L;l--"1 Jn'iillor ;1". /lrrsolhlmtsidt i8 u al,1'r Bin-".'" J,eJI kli^i1i" 5,t(,n,$1f, ,f a ral+. 1<"ns"l ed ilrrler. i1,4;ffih get4liml*ls la-r t)e-lLflitL V :
Lpw
lt
rt lf-ao4 o_
I
,/oi4 . ')
,
l"'fh
vo/l"ee lr,*l
qruo/o.,r,, /ttP, Ltl""rz (wo.d l o /o." L is;n lenotth'/ea b;l 'i1Larlcr., SrorfldnJlrr/,r/or.. f4n,rlo, v. lal,t lo iu4 lr.-/t',ul fl f, /rr iTng'i,t, P olqnt/. b,'/,'n i ,, r. 8 L;* Lzlrl,aeZ,L t,.. ' ISlz.+,c-t' 7 - E|lt[.i "/rc //*
lb
L \i
+ \
$
s.'{
:.
't
,t
I
Pro3(q,\lannL,l;.O', uj,l
c t L 1 6-
4
<
"t,/.
o larrL r,tr"ilj,?..,l.r,
.
rnl'ain oro.e.c,.rla,rrLr'lirol,-.qy 4<.,-'L oauql\ hno"sik5; & B. taafi hil;,tdzat- qL+\&lL iqin Fqrf lan.lr,labil'ru-ri dc-;;LA n Bfr p,vqno prosr".r f*,qL,'/,'r' b,'. ouc,Fhr. O , gt|ig ol4u6t fu5 y'-apasi/-siai " cola d.-$isiL h"i/, tcsl.. o'i*.|r.'Ri. mJz.":sqla e-ltnoLlt: 'o Lip'f "1"-L t>-ri ru- .q"u /n17 lo.n mizn'L pq.g61,,a; Lo Sl, .5 (ot* L fus /q.1 \ecv. B en-"'- 5eL'/de-, .n,'Lrv f| p-"'6Lrrc,"1a t't-'|,' kom'u ilu anlteacal. ve. ;g '/ le'nz, s" lzacaL SeL'/.l"- lasa./aamtrhr./af qolL emqql' U q,e.tLi,"., qla -t1f C?lL bonThx tzsqp/r-o f. nLi,,1oala.,n, urt/p -,/z_ a L,Tfatr aa'p l) g ',vg g,'6i L"6,'l i7**, kn' g;bi nL;/4,'{i t Uq.1/n L-o'notlai uapar, $i r pr?q,a.a l.t,ytel j'/c dti-is,'k. isb', hr; "oltdf4 m-etl,rrf b;lg; 'fo
Ei,
'1 ft, or': "' .;1,, f ile Uq?tt ye y4f ta,'a va i lur a,g.q,h -li ct/' eP qeul^tsrnt. " lskr- Bul"!i, t f .- cn'tap "uZp6ck*L,& ci.tvi ', 'bir r'A4.,lli nlo hsfiz-{n d*ioldatr. lLla." qtL,zf agg'frd-a S;s*Q1ill ,e
biloiqi hart-uVa
qia'l
i J"p..'lI O.rtP"r 1".\ *h^'
F".rllr,,,., lzo,uutla.t ve- loilqi'1i hofrtonla
( k'hvg")
! r; * ?,!ffir ^T l : ^1 frii!' | t: i u',.'i I l-. x 5{ r?i 1y,a 'vo " fu,t L-o,.a,t|l.'n q'erz hafr'aJah' bilqi.ri il ler. *nvc, #X oLr.
ji;:t,[^V?fu !#:t;';:',ryriiff: .TFfrW,^ i ^uL'!-t.t w n,uLzd-'t1 :,3ti3 ;,fl!nT, \.at Eqtiynz t&+* 'hfiffi!"t'2,:+Ji:Pr/.."i,'*) i 1l1-"rlal a za.r".,,,nlanrr..g,
oJ"i-
d2,,u4t g-t" ritc.,1,
O na)tn'gS5r7r'l -, J.l1' eel,,,tLlcqd;. F L-/ o.AL
i b,i g n L ob-r,1.a a la.J_an ^at &,_ ut-, "y ^/ kj iirtr-t_,-/of r,s,,aoLL ltzlr
h r,ry41- l, : p,1, !i"?,; +'Im.Lk aL'r. t- u; |t: t /l', : k ",1*I, uygv.b,3 b,rhulO-tZ-bh hll;r L o ; i k - a q 4 t t l a . o t 4 . ' ' t k - t 1 .l,l/a n t/ m z k t i a r a ,lc-t
do&" coL
mqk'n'th'Lsz/
Att qn/o,r,a
ve
l.*/^ up ise 'u!19tla^lr.,nnlq, Ln llqn lno/.ieahr- ft;b u.4& I 'y.--i;lz olqlsl. pi.-g*nla"a ojg'h in.o
,ll,i,..,;sl*no
L i/ei
fi /etnz
? b"ll"'l< y',tf'/".','
A,, S,:k,1 in Or7rr,/?-4.t.yr/tu
mlc roP t'o c4sto.
0.,,fuuf
!nput {;qis*r,
ALU
//__j
Arql
sqsk'n
But
\r----+
E-,/
@@
Cn +ol
KAM
/ylt/n4.7
flql mimari/,.
lvl;Lro$/ena. /r.*//i
s,sl.n'
bir '
,r
da 'j r[n 11a
t
'/'" .tt t ,-' Lro;7lr^u' 1"-.*Jl,'I s,i t'',, -/ Losij lef / lr i / o,i S o la.o L SL/'"/oL o in 1*6uol;n /'4f l.^2-l I s;5y'c-m.in ., yr l' , ginS., qtlLf ,vc ,h^f 4, 6iLr
t,.[ | f !._ j,t^ft''$btdfr4.ai*, L;Icse^" i,?', 1 1? {-.! : _(:"^: ! -",: t1ffi ," ' j ?r'il"t'h '5Jc'^ q"")a' loil3 i s ayal b'13/s 'o s"sF4' i o /*"1< cj /anJ, n ltr
agr,/1L,ilir a r;/,w.h'L- loj/L bi;!/h (4Lv) ' .e9/sfer ,: L;s) '/e Lo4'/Yo/ Liriqt "lt ft1/z': r'\ L u B- L-s,,-/e -L;/s; ,zn i"Jz J.4,; 'L lus.7/"-r. Ls"/ *t, /o L "' l lti le,'art tr. Li, g A *t7t k ) ; qon/ol)' Z <, to *'va- tt l*;^' t4nn. " ".',^z g.-.c,e-& iTlz*,4t-: A^tL ,.04 , ,€Y'0F. 3;,bi^| oiil<- if k! kt, tah
So4u.ala/'
gd
Mikroişlemciler Dersi ders notları
.
}zglsk
/a..la
'7a th
za J.a d.arpolaatC
hhtp://host.nigde.edu.tr/muzam/
Doç. Dr. Murat UZAM
'r
A-,
/l4i 1r,. ,; lurn.,'1.. Ii
,, I A,."t:
xa/!kr/a. voJtc pu rygq /on/', b;U' 4etoola' srreitn44 "t4-
B, lrts,,*/n 4'/8
Li. p kt/o. "oqtm,n /irest na t<-qrvuu.rl'q Eullqn'ltrlor. l3ou er.;s MlL i.t t-L: nqlj r,
ru3'5lclo
.924t,'q',o rq L-'tl/entu
H''171^ atan
Gn{,.1 L;, u, . ts-nl,.l $tr;ni ntLr"6;$;:aXa&il"' $a,y-/tnl
u t'h!/d//4r7,/ let lo,ln ce,-rt/o/,' o/an 24^4441du4 W Lo,t#sl rslrnabrA-' at bt'/gr' arrz lo iri,a bn" aL-t5tzr H/ tt /2, "/,rt,fiv, nz 4 /L"o^tial . a4t g!ry
tr,,3n'h*J--"84f {'' t'Yil;"tl ^h(' l:; 2';4ZiiH qe'v re b/r/"t /z-r, v<' ,'n'^l' c ' l'*h $;ftn 4^L EJ"I": t"..'o ^, /,:'Ebt,,I L ff .,# fi ?,?"* L!,:'' E!1""y ){' u,r1 fura hno{a n
lz-oa {-' I bi.l-l
MrL r't,.lt,rr,., Nat'l
q,1 f',''1.)
vt Lou l.;bi/4'4
Bi. pr"q"o-
( e.;t'X,-, E,'/q;/rn'n
sd{/atn/E
L"l'/ elela' P'AM'o 3 t',i/nh o,/*i'!, " So4'q t n cz'lz'/44'L/h O f t28'am
^ ,^ac,/ a1ap,/o/tpr alqAa s e'vz.'t sg*a! cd.vq Ltn /oPlorr-s,'rL
LED'41
,Ver'le4 t' .gsi.*'
ie'n -' J Pt),'1'''t'41 ig..ir. /9qt'. e . 'lhzlt "4' to|n-a,t / a ' o / r r ' L / r /o., i<-r tqq q e tle tletll lan Lu^r/ 7L",:ti,'ti. bt/1ret.L/ /'l ;/f'l'pigr.t*tr l"L'A;"dt , /'/ f b;r 2,a,nt nJo b") 2;-u1.^ otrD' ve ''ra e4Q /' 'z e;;"8 i; z'r'e- g a nd'erit' t-elJo Z;;r.- " *)r.-'t,.^rt 3ts k'"hu/' ,
,:s/znrn: d^latlwttLtqtA
by prog.a7,!'4
",!{lm"IiJT;;: tnH't' ti i"'*, i!': ! "l'i-,rn",Bv;7i 1rzp ffit' r,/' II l"'
!./ o J , r. /3 Otrtlrr/. o / ,vra^a rlatn4ta -9o.rtnun BuL,t J;orttnua
. g; ^
utL), .[
b"p"Su,
,
Matzr;"t Lili B;. b" v'gr c r,a4in L^';J4
,-^ h:r,n)o lr;.
Lt.
LJ;,vt
-o.d J &
Lifle-ri n
saLilfi.
eaqgt
l/-L'Mtl"r i l . b . o , , a l o i , , . a s t t o ^ l o r , ^ J o ' 1o t o $ o r l a r . l aj i l . . / ' i ^ d - z i ; r-L.)i,w.aL t;i l,'7 ma8 t i{ ,,'z,r^1,,,4,.,^& eag^l.r'qu,1,' s-Lip ct k;li" ( 1 t \ . r . r r s o a o ?-16 Le..rLf v"rd,,l B,;q14l,Lt"- bu *-
u y',o^om, /,411""'lV.-^,n 256 hjL1w-llL t i. "'1.;ll var&ri Bo L.-l;^+t"na *esa.'m nu n;h-uJk/|t-ln-. lro^ut Lon Li^.a 4a"'er qt lt'\ fy\"tlli,'a drl; A.*ar,-;tItt.,a l,':ksi 'a.h>;r. . 0 "z I'le-,lon ""e4 '" r t ve LJnlar,,l Jlt; oro"t"/o,^o B" d.'llz'ia U/rhrLr,' , 124ru,"..,1la en &.4;1ir. R" dl- s ]< nantlt/, disfrfip./ ,t99n.a6't, Ja- nt/l'nzgo llq,' /n-"/, o,/..a4. J/". l,u Zila3 k y"y3,n f,zo,os'nin Z"8O lo.*.1r.,/o a:, e,,.c-.4/ . ? s, ;/o p /.' J//,Y i/9//
-z4t1,ts^t loqL-,,aJ.n a!"la o'ItrAaJirtte- bott dur,r'. to.J q icrq 2 - B " + , 1 c l l " , - , - l q r ? 5 6 l ^ a{ ! r L ; l 9 e r i 9 l e s t n t r l , d , r -
3 - Bu"Lo,. .,lla'&"
^i",bi.
f 1"9
e-l)o lL*z
$ u,, Sq.Jsrr bodr I etrar e 2o^u4arr oloqrd". eisl*'-;ldn'Oi q;6i :^tY zto'\ H v( ztot"H l"o(,,o Lal cd". i""h \.-vd"l"l-;r$ r" E6; s-
I
g
240,
48
L\a 4
OFFSIt d
Ltl 02-
tR
NEXT OPC'LE
J;J.,'nr
p)olinz
fo 3; tQ
oFtrser
2:7E1 \+1cn
",?lfro
.?JOI 1
?'a -
zt?14 Mikroişlemciler Dersi ders notları
hhtp://host.nigde.edu.tr/muzam/
ltlFi
Doç. Dr. Murat UZAM
lf
73
d* yrt y"-'T,A'f e',: rJ_ot * r ,(est^i u lS * r. 1 car.la.:.). "-[:y $qo^o - -Leu, pc; r.- "*ir.rr,-t - l L-bfk,."n b'ttoast.(bt"o ,1,nt.Y*:t,; +
-
-
Egv
t7tr 7..a,1{t6fi"Z"d_i
o;i#i
H
TF
2-TV ,t tl
. s^qp,t.c oL*. t
jcH
is<
b+=l
o/JuF. ,,cln
jh 7u#;fr:fiiilftt,ffi, r,A,.!,/ " ffl? roJ'"'i u -t,/;'
hzsop lq"alo'lir.
Q) /cqan'f_
sry^^J1 e + a'L(4!r,
scAlaaa....qCfl
d3--e-'4c'H.,:n
o2
24
rr) f. r.r-f
4;:.-,D ;,U;\L'
2\ O'.?Qc'niaZ7rblrv^ 6q
. Q. 7 t' qF
S"g,,.t By k'r
i;
ezt//./^.k
(b)
(")'
Frr3ro"r Counl<-
//a*
Lo1e
Eo,^pl4w4+ Cr/ v. .l 1e 2l H'{c.,' qrlLar ?-D q€
1"121 Aa;5/<-'/o./o
f/g,/,'
lt" Btfl,'L f X ,cI'l r4th-,'L., oloal<- !4'll"n,l'.lqa dn.o'.L". .tira, /"..1,
Zt7
k^a.t^,lbrt
6nc,L,L/,, -L;;l;"-, o/a-aL A_5o ,r.o, a rt./zti,/z vr Jt/ha,,q,.
TX rg;5{q'1,,a ll-Ltl bils; !nU.. fXtJ h"{r' Io6l9.silc 8-Lil y zlcle. TXr{ h,tre 6dg"stndu r'ga l,,.pyala r r^zgisl..t'ndo^ I t1J ly,{,u,L.J9. zr
3
fX+J hafir-e L6l3uia;nigar;f,;.i al<.t.^tlalirJq iqcAf t i le. loVla
hhtp://host.nigde.edu.tr/muzam/
Doç. Dr. Murat UZAM
lP r+
u Pct.l'-
O Prrqql
BtJij
(TX+d)
5UB
3
TX (rx+J)
rNC INc
b es".ip\ o.rs fX+J hr fru loalqesi ni,t i q e r i j l a ; Aw^;\a*;,dzl C'h-sr. IY';a 46 lbitl:lL ic"e,r;gi ^i b i, 4*h.
2
IX+J 6i r
rX
(rxta;
h^.61," L6lgz,:^ia i q < . i E i ^ i et r].*rf.
?
TX',:^ lL t ;+liLi\a,iif^i loir aztl*
3
fX+J 1,"6.- t;lges;;a,<.€_ri{i-i.ai bir oe_.ll .
Iz-.^"Lk..;" #Ltu- ,
G"*)
j - r x v e I y ; ^d r - L s . Lulla,.,l,rlot4isl<.. 1.,, h.€ r-o iLresr ol.^L s"p,,.a L1i.n," Hart z^ . i"d-Ls n re<;sJe-,, ;r..,.5|*,- ;1"*')"1,i-_ "J,
p"7,,h f
P7
9/d-7u
g, /;n;o
0 o/^tn
i/e'
enlaStl,t
N-o.l;l
to:^ sqpaq brfr.'t 2'yz f c,-loamts olq,otz ,.1, e J ; t ,+ *P*y " l z . 1 2 8 toptc,r saf^,,^ aa,Lfarl tlZT ile ovqs,n{. dt;r.ir. 2^ ,H,"Az^,"1,;lg;l; J'3,e. Lo^,"*t".Ja J,- olJ-p" liL;," 6p"... J 4^ha T11a
a.'!r'2tt' pq.ahRalaoreitnolq Ooe/-.tnaJ lJqztl;. ' ; a J e - ts r a g f s f a - ' t . p o ^ o , o l d v T . , n d r t < r Lollol,t^"2. ? . a 6 1 ,? ; 5 - J ^ d . r 4 , sr . c J { 5 1 - e .' a z l o i l g i - b - * . n l 1 " , r , , o p . o & . 1 a , , 2 b q k , l , L h r . _ 6 v g i ,>d - o - n i n & L < r il9,l; ;o-"{la 2 _ h L q + € _( , L + 1 4 ai:kl.'1",.t" " f rz-o,. ora-3"nu-a
:^(&/ IX nc lf ,5,,^ anfiy Y' na"alL ,j?H'; Kv
regrs{.r'lo.'n, . s'-os,gtc205oH vz Ztg5H b;l t brzsi. .otd-ak
"q1-.,. lz.llc.. "e,"/s+"..,lir, V n-jH U;,""rr,^u ' r o L _ l o u "rtti,.). ,i. olri',ifo*;.Ja
6- )rtn-,'" f-on^a^/an,p k,^n - /n,ma&3i, n, ;/t.'4' //,3',' l"o" l,- | be.L'./e. E o'e. so./ 4o.p.. /:e )t /c'z't okzaa ef ' eJ-r.
veya
/z'a yOlt-t
,
9o st'
F\.-
Tr'ffi".dci"ta\i6",
Bl"\.\
b'v-zr-,,larnr
gl"tl
Bilg; Tople,nr
Bilg; i51u,",'"-
Blot3
Kr3/Y\i So^'Jcrj4
Bt.t(
QcL.id
de?"lantust
i)ir soam? i>lluqi4
lltokJ
fo*r oio.o.'ndq be!;rli:r. B,r br''alcfe' bu. (i^&lq() "r". L,l.i t"i. lorn1.. (5oy'.r), \aftu iL,
i
;;ffiFt.Ycda -portuaqla" 3 t,,. rq a oollt' tm b i l Iggi ni ni aia bo;;.i ' "' q'i,.ialrri r' p o . t , n o l o ' . o L ''oountpr 'r.'1. Q
e , h , " l n v - S ii l e i l s i l i d l r . F f z' d -iFtn,,"rLt\-L F.;cdsia$) {.:ler !"[email protected]
l o i i L . i p l o . n l ' t . g q'eb'ifrkv' ', a s r i l e - . i l 9 ' l i d i c D n t l i + " p t " n , i , e ' l d c -v a r m t ^";.Ao t,. d"F &;y- -9;n.,.lt L-o"l,"1 eA.;li.,.'"u geal,J;55<' e-l& r<3ir-
li'; /.
ha2)rld^rr\4
/--
2..'.1
N.
r4"it;..( ^^ld'|g
le-ti\ti.oair'{
> rerqqs
I
HaVlr
Bt,L(
ge-aict qla+olaerc rqft'/-<''
et
IintSlat,fnvr \-lamo,n,at /,2
g toLl Mikroişlemciler Dersi ders notları
'l-rs,rri sonur.f 5 - Bl. s"^-a
^J-a"laailos:.
iti^,r.
ra tl.'.-tl"fil
i 1b.ia ].."^amlanrp 'knrrm la nrncs&3 l.r. lzon|,o.l eJmr,J,c-,r 8au- bo 1 laagt q Sarf.larr d).ztalcatult4tr' qrl*-tnlrrul,.Yada,d.ulhlnlLJ'. I4d4L< ve scyfq
\qndcLi Fr/'.t'/rl"^ dL gi;tler,ar 3i6i /0 6q{< -1t,oH'-.t4l?slHa La&. oloq Aofi.. &a".Jq tt;-ld:,' Lulv,wt4dJ. r. dv bqk'7o- /87oH'J2. ltTiH'e li-
lEo
olan 2ofi2. Jtr lz-opq a/aner ta L*tn F
1857 BYT€IO
L
L/-gu4a 13o L lolc,lo.
n'sla'Sk 9a lu 6,naga -q,la l,a fi 4 ola.e lz land,r,/tLn \!,l+la,r, ldtL.la ) e6-sk ;/die'i a,, bi
| ?soH',J";b,".b,rk z go
/a/h'"2 J-eh'q soa"a L u.eJaa& "l87oH'e Ln p,aq/enqcalt+ n bv/a'/n. ,'s''" Bu is /c.^ /ii
i+0
/oplrm c4 I-t1 a.
04
L,-t'
/el.ar/exa-
71 L4hal tElil4.+)
Mrrzrc.'tes
Ca mmo.n{s 'l tlo r'.r^alorr .lo ^t
BAILA :
' Sout'cg/&a bilcl b1*e'attl ' l3pat ou(BvF'h
. Ha6lr ibrc-t ri,r, 1t^.4t. , 6cgrei : Sayrc.r- | 'Saqt.'1 : !(rF -lr I, Mikroişlemciler Dersi ders notları
,l!l4^lL
HL/5oup.cg HL'yi Souraci.,in lu$r. iL..rr '! DE/ofiBuF D€ i orFf 6,ft.. re,i,lo(M ' " ,' Lb B,OAH B'rl 10\k/t slg.,!U tqi4 Itz.'l< soNp.Alri: L b A, (HL) So,rc.'Jan Lyk-i aI (1e1,4 LD 81*c't urr*pull"{t , ', t44n( lNC HL 'N 4 D6
brc
B
1Br,.nnotr.' *orca- lo6l9
a z el l , qil
; F9-e-:enm srfir43tk.iMrLiL tP Nz,sorrPA[i ; G8sle.;lcral &f<.'' g;let< LL A,O{H gur (Poer{)A ; Bilg frensf.v,',rra bi+hFi,ri 9.'5ta. hhtp://host.nigde.edu.tr/muzam/ Doç. Dr. Murat UZAM H ALT
Lz-L'.'h /n
ein rLAFrzeeiilessir'lonr picenlNe ;EU PRocF.\M ; BILGI KOPYALAMAYAPAR ;HL VE DE REGISTER,LCRI ITAFIZA IBRESI OLARAKKULI,ANILMISTIR
eirri6i or eir-eistNiN ;BiLGi TF-ANsFERINiN arrr,u,o.sr ii,n eel,inrti,ln ; qr Kr q ?oRTuNDAN S O U R C EE0u 1 8 5 0 H O U T B U F EQU 1 8 7 0 H P O R T O EQU 0 l H
BA$LA
sounexi
; r|AFIZA BLOGUNUNBA$LqIiGICI KoPYAr,ANAcAdr yER ; eilcitiiN q I K I I ; trE'UNUNADRESI
oRG 1800H
;ASSEMBLY BUMDAIi BAi I-\R
tD HL, SOURCE LD DE.OUTBUF LD B, OAH
;Hl'YI ;DE'Yr
r,D A, (Ht) ],D 1DE),A
; s o U R c E B Y T E 'I A L ; B Y T E ' I O U T P U TB U F F E R ' A K A Y D E T
INC HL INC DE DEC B
; B I R S O N F A K I S O U R C EB O I , G E S I N I G O S T E R ; B I R S O N R A K I O U T P U TB U F F E R B O I , G E S I N I G O S T E R ; SAYI"!\YI BIR AZALT
JP NZ, SONRAK]
; E G E R S A : r ' l ' ! \S I F I R D E G I L S E S O N R A K I ' N E G I T
LD A, O]H OUT (PORTO],A ITALT END
pedeai ylirl,s ; cbsrERiLECEK
S O U R C EI q I N E \ F I Z A I B R E S I O I , A R A K D U Z E N L E OUTIUT BUFFERiCiN Har.rZe ieensi Or,al,qr OrjZOrlr,e '^
, S O U R C EB Y T E ' I A ] , , BYTE,I OUTPUTBUFFER'A KAYDET
1 80 A :
23
120
INC
HL
, BfR soNRAKisouncr a6lcesiNi cdsrER
1 80 B :
13
t2r
]NC
DE
1 80 C :
05
122
DEC
B
1 80 D :
c20818
124
J?
N Z , S O N R A K I ; E A E R s A Y t ' 4 As r F r R soNRAKi'NE GiT
1 8 1 0: I8L2 |
3E01 D 30 1
t. 26 | 2',1
tD OUT
A,01H (PORTO ) ,A
1 81 4: 1815:
76
l2a t29
IiALT END
O U T P U T E V T F ' N Ni q i T
tteFrz,c.lenssi orenaK ofznrqr-e S A Y M A KI g I N
, BfR soNRA(i ourPUT BUFFER
edr-ersfni ed'sran
, SAYI"IqYI BiR AZALT DEAitsE
; G O S T E R I L E C E KD E G E R I Y U K L E , i BILG] TBANSEERININ BITTTGINI GOSTER , PRoGRAMSoNU
End of Asseml,ly No Errors
. syn$o]
slmbol
Table
Value
Kind
BA9LA OUTBUF PORT0
18 00 18?O 0001
S
sotnexi souRcE
1808 1850
s
Defined
13 8 9 !'7 ,7
References
I4 2',l 13
5 s)1nbols defined 4 starbol refelences
Mikroişlemciler Dersi ders notları
hhtp://host.nigde.edu.tr/muzam/
Doç. Dr. Murat UZAM
lr8o t4
.
V rAt t-'.
E
I d2-Lt
loPlda,el
4pqg'J.tu p.og.om h4'6r-J4 -qiilalcami; olc,r i-,1l<.'lar, *o/ar ve- i rc-hlen oldduin s 4 ! r s r n r s " A o 7 . M o L s i m u ' , l o p l " - ' t 6 h i + l ; L o t t a br; PAoBt€Mt --iA
* ADDITION.ASM * Bu program INBUF b6tgesinden batlamak iizere * hafrzaya yiiklenni$ ve toPfanr. 10 tane byte'r toplar * O U T B U F v e o U T B U F {t h a f r z a b i i l g e l e r i n e kaydede}
OUTBUF
Eou 1850H
COUNT
EQU 10
BASI,A
NXTBYT
SKIPCY
,10 byte
salanak igin
sayna deqeli
iAssenbly buladan ba$lar ;A'y1 lop]am iqin srfrrla kaydetnek iqin c'yi srfrrla ;Eldeferi igin bl! ibre olarak duzenle ;ELryi bilgi saylcr olarak diizenle ;B'yi byterlnr a-I ;Bifgi byteranr topla ;Bifgi ;Eqe! elde yoksa elde reg. drLLrrma kaydet ;Elde bitini s o n l a k i b ylerr gdster ;Bir ;sayaclyr bir azal! loplanmadr ysa ,Eger tun byte']a! ;NXlBY'r'. qerr gr! ve bl! sonra\r by!.err aI lD HL,oUTBUF ;H],'y' looLan.! kaydeEnek,c-n duzenle byte'ana kaydet ;Toplamrn diiFrik deielli g i j s t e r o u T B u F + l h a f r z a b d l g e s i n i INC ITL ; yiiksek deselli byte'ana kaydet ,Topfmn HALT
oRG 1800H LD A,00H r,D c,A LD HL.INBUF LD B,COUNT LD D, {HLl ADD A,D JP NC,SXIPCY rNc c INC HI, DEC B JP Nz,NXTBYT
1820H adresinden bilgi byte'farr haf rzava kavdedif ecekti!
INBUF
baglamak iizere
oRG 1820H DB OA2H,37H,4FH,9711 D B 2 2 H , 6 B H ,? 5 H , 8 E H DB 9AH,OC?H END ;Assenrbly sonu
EQU EQU oRG LD LD 1,D LD I,D ADD JP INC INC DEC JP tD LD INC LD HALT oRG DB DB DB END
1850H IO 1800E A, OOH C,A H 1 , ,I N B U F B, COUNT D; 1HL) A, D NC, SKIPCY C HL B NZ, NXTBYT HL, OUTBUF (HL),A HL (HL),c: 1820H O A 2 H , 3 7 H , 4 F H9, 7 H 2 2 H I 6 B H' 1 5 H 1 8 E H 9AII. OC?H
Table
VaIue
1800 000A 1820 1808 1850 180E
Kind Defined
s
),2 9
B S S
References
t6 8 2O
15 14 2Z 24 L8
6 slribols defined 5 sla'bol references
Mikroişlemciler Dersi ders notları
hhtp://host.nigde.edu.tr/muzam/
Doç. Dr. Murat UZAM
/'P83 3za Z 8O
zgo
ka,nurlo.,
/z-,"-l
s4h verJ,r. "dz
lo;r a/, o"2 i,s,/e.v/ e,etceLlzs /La1 4o u /t-o,-".,1/o p.T;.,/"^;; |6u,-t;, a, iiaz- /,. " /.o;//"; t./l s,n/n,J,-. :
;zd /",4^ "/ hr Bu tr r ! lr u.. arJ J43o-, d/c.tt !1ru,m'oaics
bsNZ
d
Las.r;p*ron
R gi loi. ozoll ve Z- =o ise bapl olanl+a{la. B. l,-"-,t F *g. ,l otnlh, vu e4L B iO ;s" /Y14
d
s4P
da-(-{,-il.c. tallr
oloraL
ve o,11,, (io-,
Y;Lla
Bu lz,omvt Hl a; a g i,sl<,*gi
l-i. bY+<'r DE /^-V--rp\t'ir. HL va \E A'a4lf
LDIR
'^, l-fi
I ^rr.^oul\ -
[6] ge.5,idz.1
./ e 6ir ar*firtl,r ve Bc bi.
t\..
o.l-L. I Lbf "-L-1",.
ya
,l-eL.nrlq ( L-;d,I^-r^ +y""*)
lc"a-- fu'"r Len-z-er. f"iL L". l.Ar i F l",n *<-L. o.l. n,,.
Lb\
dll" n a gopo..
gl-o
olota'
\ clclevu azall ( Loqd onl L e.-ar,r.+)
9;sfa&,5; ho(ru Lals"s;,
F.' Pl",f _Fl\l,^ F;. t t|e,, bE,"in
,'
e
t o p u a l a r , HL L"pyalar. H L ). l DE \f vz S g r.zr. 4,e.- or,lhl,.
LbDR
1^cVle ,.cz*ll,w le!1,Io (Lo"l , burrn uny o,6 ppul) f3,t L-omol LDb'ye bcnz-r . F"zt BC = o ola.o,
1 4 ,d o r
lLo, N+r^v vz vi?"p*
bJNz
p r o s r d t n t^ t . d 2 4 , 1 * i r i n .
il iar'1
aL4..i
l.-rlla',e\"olc elAeL; foplo,,..a
lf lqt,qd i i /yyr1t-.ls^ic 'L
i l e i l g i l i p r og r o r nd o r b ; .
jeUo V,f.r"clb teg. qr]ltrftw ',8\1,4t ;hli LA1J;+ ; B;. son.rL lvfiza Llgns''nig6s"lv 1 B sry,c.rs',' bi, ozell ve 810 1s" l0o8 .Lal94,',e a l/tg,p bir
Mikroişlemciler Dersi ders notları
9 in; t-{f.,',"do.
SoaraQ
bql<',
q/.
Doç. Dr. Murat UZAM
bir bir
//8+
iaal"'lrogrumJq iiarala' lrogrvmJq
a t. Lnl/ant/e,l lz:tl/a
Bu p."g-olnd!, .DJNZ .-.y\.( Ofc A ,va sF NZ,NxnB\T]/;14' 'arn /or) Iquttt Lu/la"rlm,Shr. ATNZ Ll,w"lt', lzo*t AfNZ ^t.-,-, lu ,B Lten^t ,Lu//a",./n,Sfir. /zo^ufw B ret, "t'vq Ch"4 |.| ay'el1jrnt /z-abv/ e.4.,-. 289_ I fuf
-/e't, F o/,ttt,ihr. NX-rByT ('tbo&H) La/g2s;,,2 o//nt,,-L ilL'qc hLsep laarr. ab-a cseg rda/.,' t,'1.; iq;i fa;X Sqp,na P {9en' s.grcr(Pc)
Progca'n
rtll aaaa l o o \ 9 a s i Ge.;
4t
18
- 18
af'arq iain 01H'ia 2'yz lc- hy.,r;
06 O?H
( 0ooo I oo{ )
F7H
(trrtorrr)
Xrtrot,i Z8O d=J ^/.;-'-+br,n, Vtllano,u.l
LblR r.r.n Bu pros Z.8O L.ornulrtnv h.ollq norala bt. ho$z^ -lollgry; lo3,.,n lo &ii,i e'do.., d,;9". bir l',r{u irloSvn" *ans{<. ? Ro0,M I t-\12 L-anuh:n, L-r:ll"""rol. ve do !'q !nce .q"rr,lmrl olon J - a * u c o p y , e s m p t ^ D g r a : ! t . t ^ot l l 5 i t + i / € / e L lg2+ rllJ by*-e'r . . S o r ) A c F ( o o o o H )h a f i 2 . A l a r o E u n v a n O U T B T J F( l g O O H ) h - eh r - q b l o S v ^ A i$ lettiqla e-d;a;2. vz |,-2."s k. so.'a d. oti5;;"1 beLil fran5Tr PORTo,c O/ 6;$,'s,ht 4hntz. . nelc iqia C]{zilU: L b r R l z o , n , ; * unn L o l l a n n a L i g i n H L n e-haf,u -q,'s*er,, SOl,RcE hqfia Li.l?os'"ai9 asfr-4.uL' 1o6l.9e si,ti ,, DF. rg;51=,.'r OUTBUF lu4lzf
u:. I3C :"t"1+'; 4f t
ivq
/6 L,'l/;L- (o3FtrH=
402+ b|k)- sajoot &jetia/
ef.Yl2'lidi.,
L.LJ l3A$ LA
M a.rnoaics
C^ m ,vez*-s
Lb l.lL,souRcg ', AL'1i
JouecE h,,fir. i..ia ihne ol"m2 4;r^,
Lb DE,or.,TBrrF i ouTsr,f F 1 b€ 1,,
a
.
4
LD BC ) O 3FFH ;'', Zc'& l.r*e't..\^ sly'stat lclt le 3ovP.CLl,ba OoTBtti'q btk #"ns{<. LbIR. "4 i olarw Lnder 44^'.,,1 a*.
t5 4,otH
o0TeoLr6,A H4LT
, ; ; i
EC O Lket'";( /) gtLle QasJ,.ge Bi\gi *nas{<.i"ia to;l*;9;,'; bali rl P.cS ram So^u,
Bu program bir hafaza bdlgesinden diqeline bilgi kopyalar. HL ve DE resister'larr haflza ibresl olarak kuflanrfngtrr. Bc registeri da b
souRcE EQU 0000H OUTBUFEQU 19OOH ?ORTO EQU OlH
BASIA
; Hafr za bolgesinin
ba$langrcr
oRG 1800H
;Assembfy buradan baqlar
LD HL,soURcE LD DE.oUTBUF LD BC,0{FFH LDIR
olarak ; H L ' y i S o U P C Ei q i n h a f r z a i b r e s i ;DE'yi ouTput BUFfer iq-in hafrza ibresi belrrle ;BCrde byLe'Iar.n sdyrsin
LD A,01H oUT (PoRT0),A HALT END
;Gdslerilecek deqeri yukle transferinin biltiiini ;Bilgi ; Program sonu
diderine Bu progran bir hafrza bitlsesinden bitgi kopyalar. H! ve DE registerrlarl hafrza ibresi ofarak kullanrtmlstr!. Bc registeri da bolgenin biiyilkliiqr.inu be]1!!ir LDIR ozel komutu kullanalrartrr. BiIqr trEnsferinin biEtidi 0. o, 9 " r'n qrkrs por .-ndan arrLnc I lle oel-r.,
0000:
SOURCE
EQU
0000H
; Hafrza
OUTBUF
EQU
1900H
; Bilqinin
1900:
l0
0001:
.L] PORTO
EQU
01H
1800:
13
ORG
1800E
*
bdlgesinin kopyalanacadr
,AssembLy buradan
baslar
1800:
210000
15 BASLA
LD
HL, SOURCE , HL'yi soURcE igin haflza ibresi olarak
1803:
1 1 0 0 t9
L6
LD
DE,OUTBUF i DEryi
1 80 6 :
01FFo3
t7
LD
BC, O3FFH
1809:
EDBO
18
LDIR
t80B:
3E 0 1
2A
I,D
180D:
D 30 1
2t
OUT
t80F: 1 81 0 r
16
22 23
HALT END
ouTpul
BUFfer
olarak duzenle r Bc'de bytetlarrn sayaslnl belirle
A/ OlH yijkl e (PORTO).A ; Bilqi transferinin
End of Assenrbly
s -bo_
BAS1,A OUTBUE PORTO SOURCE
vrtr-
r.la-
1800 1900 0001 0000
,F.
l5 l0 tl 9
oata.ences
t6 2I t5
synrLol references
Mikroişlemciler Dersi ders notları
hhtp://host.nigde.edu.tr/muzam/
Doç. Dr. Murat UZAM
rf81 A xev.Et?*' 1-
SqH';
It
rnztltnic'lez i"ia 'i);t*^.
D ng,'s f<-,n' JzL-h4t}-,
,u 4zH't'
'proq.-"qiS{..',,'
[o
cJcr.,t 4t L.
B
,,e.rr /.i'.'',
^ t"
L
,'l r-r'p''^{
,'i7;er^i Poa t'd'z-3;sr'<"h' ""i^ ie- F2H'" C ^4is l
,/.-in'