MP Unit 1
MP Unit 1
MP Unit 1
U"-llT ~L
Evolut1011 ~f Mic.-ropv--oc.esso-rs
*) 6L4 b i + qa..-ta b~
- .
·1
f Na~e. --- - -'/t.OA-- T't'ans i~ tors OQtQ but> cloc.K .spe~cl Memo'f)'
8 b ~r - - ----· -
~oso 1974 6000 2. MH2,.... 6~ KB
j
1
- ------
I
-
-Per,t,·un1 .I
!c,:; i "
I
I
' I 11 ' I
I ALU I -
I
I
I I
L -- - -
I
....L -- - - - -'- --
M ithrh€.ti'c. etl\1 ~ic. . un:t CA LU) -~ This unit p~ forrt>s l"f)a+he':°.h caL
Col'f)pu..+o.tions such O.b ad c:Lt 10 Y)_,
loca fecJ op ~t1on.s ,Qj
subfh.Qc.h'on .) d1vi s ,bn af')d boo\e at") func J1bn s C
F(e.
Qr'\d 1oa1C.-a. l
A ND, DR e tc.). 1he Al...U also exect{__+e.s com Fi's 1·ons
i"esi'1 '"8.
-t-'2.Ansm,ts s19r,al to t-he A LU
p"6"o cesso h- J w h 1'c h inTti\.{'Yets
~ ) lhe G pu o~
H-,e 1nst>i-uchon qnd PM-fol'rt) rhe CQ)C.ula.t1'on ,
q
~ea i.st QJtS -~ Reais tV1.S M.e. used . -ro 1-)(:,Lc:l Oh- stoY e b1nM ,~ dcd
f ern poha .A..i la .
H,es e 'oeij i6 teJIS C.Qn b e LI.bed to hto'oe
Some a d va nce 'l'Y) ic.m ptoc essoA.S ho,te •mem c"-j c.o c.he.-'
Co e.he. l--1 Q.N)Oh .\/ - :
Hx-. la..!>t do.to u:!=,ro by Hl e. c.. PU .
w \.., ,c.h 91 e.to 1'15
p'1 oce.,;s ~ b e c.a u.~e the c pv
*) M uri o✓'l-~ CQc t'les ~pe.ed u.p rhe c.ornp u.h09
t o ,..,et12.1·e.ve.. doto .
do~ net rove +o iao to t he 6 lo tv<V;,.. R A t-1.
ope. ode
~ pe ot Acft1-ress,·ns Mod ~ -;
·rno cle. o pcJl..a "c\ 1°s s pe c..if 1ed In 1--h(:!
f
,., ~.... e -·. :rl") th is
i) -:CmmQ. cl 1'at"e>< """"'o
105 r~uc.hbn j-\-GQ\ . •
lqio/
'exp= ADD -=,. ; wh,'cri so~ s A del '::/- tor~ ~ Co oi"M t s of Acc wm\t
"f i's ~~ c,peA-O "d h ~ .
2) Re.5-1s~ mod ,-: r't) ~16 -moo\e ~ e. op~ t1d l-S .sw-n.-d In ~e
'<ea4·stu..
~-d
de:'
a...'
a
H-\1:s mode , 1-+>e inst -AU c.h on spe c.;fi•c.o
3) Re8°i.s+eJ). 1nd 11\.ec: r Y'l)Od e -; I Y"I
the: ~H•..31's tVl.- wh os e con t el')t give. u.h ~
odd ~ss of cp~ l"lo l 5'\"o "O?d 1n m e.moocj .
c.oni'Cl ,·t1 ..;;;),. u... .,. - dd ...,._,.,,,.,.. ,._.,..u_,,.... ·t
~el
f.
~ ) The. '1egCJ1stv ).. rn .... ...., ' t ; ~.::. tJ.,J,..,t rr,,::...,,. ~n Of~ fio ( '--
Me rYi O~
ope .ode Re8"1'5t M.. R, j
j opcocl e I Ad ~ ess ]
l > 6p~('\cl
:
'
l4 °COH •
Exp~ A DD B, ~ooo H~ qdd rhe.. con \-en tof B wi It) cont-e1> t- ot
oe ss w ~ ope>..~ ~ 1:S p,ese_nr •
H€-re Ltcoo H 1s \-\,e e ffec.-h've qdd
c h on e.u ·1 \ \ .
cidd-fe.>Slf"l9 mo d e - : Tn rhis -mo de. ~ H-,e tnS t ~ u
s) Tnd i'-'l.e c r rwe..
g ive. rhe qdc l'fe 5S i..Dh eh-e -t h~ eH-ec.
a cld-ress IS 5-ro Yed I-he rf)e .N) o~ , In
*.) This m ode. tb loto.S c;lown Ht)e exe c.u...ho n.
ope.ode/ A ddY eS S
I
Poil')t.U. t o
,v ...,.,
r o pe..\.Clrd '/
C
,, 'II
0 plW'.l '1 d. '-
, -- .. ·-- .
. '
Aaclvess
Poi nt~ to
OpeA-aM 1 - - - -- ~ t
AD D 100 ( R i)
/ L) Tryclex .9-Je_frs ~
~ t3os Q. Vol u e..
5 A == I OD + ( R i)
this phoce SS LS '1 e.pe.c.\.ted C.onf I nuoM ly b't C PU f-rorn b oot L<f ( s \-a,,..t,08 /
·• 0
-fo\\cwi r,d CVJZ.the step$ that OC.C. 1..t-'2.. dUh if\a rhe l~Sr..\.U c ho-o c..~cJ e ,
.i) Fetc.h -t he inst A-uchOY') - ~)me.. 1risrA..u d1'on IS f e+che & ~ IYI,.t-he Tf)e.t'f )~ ·
*) the ad ~ YE.'SS of f- he "rneN)oY <T lo co...h·on l.t.J·111 be
8ive() b~ I-he p-9-t o~-<z>l"Y) (,01,l ()t~ ( pe, ).
~) Atr~ .jetchi'1J ~he I riS f h llc..h crd) t "'6'o m 'o'l)E rf) CJ~ ~1" ~ p la ce c() , 0 .LIZ,
~ ) Dec.ode !-be 1n,.st,'2-Ll ch 6'0 -: f-he. tnsrh- ucht'n pla c..ed 1~ I R 1s d€eo cle&.
b~ \-he c\e_l.Od e.h ·
Load.. ;~ddMs ~ to pc
Lt!.>c-1d... (or:,te/' \t of p c.
-to I R,
upcla,,te PC to nex t
c..,old'{e SS.
NO
J
Dato.. T-rar,5 fe>.i- Sci")e me..s
I 'nh~ \.5 to Cl
We (.O r) c.o r.n ec + Sev~ L l"pLt+ 1 ou...+pu..t O()q me:rnon ~ p e,'\-1r u .
"Mi°c<op--n:>c essoh . Al l \-hc !>e. d e.v 1·(e rr'IO~ cl if-fvi.. 10 H1e speed of cre ~-hon
u~ cl ~ to ty,o r, S fVL .
Usu o \\j , w'h e.n rnemoJ1(j is c.onnec..t ed u w i H1 -t~( r<i ic."t"o p roUH,o'I
C
Pa h a lle l Dqtq T-<ttns~ s~icL Data Tn:.n sfe.J)._
l ) P"1-09 -co m~ed'1:/DQtC! T-n::i n sfeh- .L- s~nc.hYenou..b Dc..t 'c::i 'Transf-ek-
" .
2-· A5~nc.h-ni no~ Da.t.:; T<r:;r, £f-e.J.\-
i) Sctr)ci>YOnOLJ.6
ii) A s~.,d,'©ncn.i.b
*'> Tl')e F blcrri u ,i rl) e ~'[qt 'r) N)Ccl X /o t vt.t16te ~ IS 1"-a.J CPU V'a.,h t-o
w cu'f IC' f'l 9 +1("()e f ol>- 1'1 t. I /o o(ev i're t o b e. e.iead if ,io
1- tM t1SfYl iS6 ie1
1N,~ of-
o~ f1 e ce cla_~ .
( H f C,H)
~) I n i -h r 1nt Vv1t<-p t- c/h..i vc_n ?fY'Jode , i rie 1/0 ole.v1c e 9-fcii's eb o spec..,·o.J
S J,9 {)<:l L Gq / le & I nta»v t, Ft , when he b e.co me<!, J-tead tf t; t -ron~ -
~ -
D M A 1 -<n()~ te})_ -:
*) T h i's 1;:1 pe. of thetl\ h.fe.A.- 1':s Lv.1.Qd when -thV1e IS q hu5e omo u 0 +
of d ~ hQv e. io be t ~ () $ ~ •
MQch,ne C~cle. .i
l'-(-__ :.---~ ---:--); ---;,t)t Mach) ne ~ ci r 2.
Fetch C.0cl e ( F c. I~ . ( )l )
Exec.tt.+1on ~c. 1e. E c _
-:Cn6 1~ '-'c.,ti·on ~cl e ::: opeode f ~fc.\) ~cle (Fe)+- E="x e ct4h'(.),, 1fle (Ee)
'1, -4,,
Mochi'ne ~cle .1 Mac..h1' "e'<fclt l-
p-<oc:e SG cl 1¼-i' ng o pcode . f e-t ch - ~
*) D uA- i ng T .1. stot-e - ~ pc. ~erie-ca...te.!> (W 1M add -res~ , w he.JJ..e c ode 16
s t o1> ecl-
* ) D~.,•~.-1()9 T '.l .st-ah~ - ~ opcad e 1'.6 M ct d <f t o b e. hllod b8 t he. p --roc.es sol'l. .
* ) Dll ~ ing T 3 S t C\."t~ - : o p e.ode IS s to-'1ed Ir) the 1n s t'2.J.,,c.. h'o n ,'9;.e~ 1·$ t-e-~ -
Inte..Yl.U pt
I :1,-
~
J-iah.d WAA e. Int-e '6 '1"!J pt SofJtwo -re :rnterrc....ft
\
~
Ma..6,l<.a b\t:. Non roa.bkQb) e
( . Int e>w..t f ~
2000
LXl SP, 2~ oo ( H)
2.003
LXt B, o ooo( H )
2.00E; PU~H B
100 !f Pop psy..J
2.00 B C.):\LL DE L!\"f
~ OlJT 01(H)
.2..0 1. C HLT
2o6~ DELAY : PUSH H
2065 Pt1CH B
So~ -to 2066 LXl S, 8oFF CH )
ST-'\C..~ 2069 L1.: oc.x B
2.06A MOV A;B
106B ORA C.
~06C.. J°N2. L1
10 6 fI- RET
a'"'d toodec\
• J
'
/
.
~
Advanc ed Su b aaut,
~~ ~ ~ i-
ti N')e. s ·.
l..
~'f'O rt'I -t- 1 1\ now w e hove 5e~0 1--h:lt'
~
eve. c. an c.o\\ o ~u b"'fO uh n.e rr"' ul+ i pi e.
heye .
OH,e....- -h Ip~
·o O t .
..Subiro u h ~ oT"e. o\!>o u6f'd w h ,ch o..re d,scuS~~ !l.
....
N "-S+ir,~ -~ 1--1-,e_ pvoflY"Omm·, ~
~ a~ thu_ bYDu t,·ne
i.s
~ 'tech'l'"\tq.ue o f o iub~ut ,' '1E.. c o llt'1J
na-t,·1:J . c..,1--) qt") 0 hub-ro ot,·~
C.0\I E>cl.
Co\\~ Of'"')ot-h.v} _ .&L!b-rcu hn~ , a\\
TehJlfr) add-res~ oY-e .s.tO"<'~d ,ti STAG<.
2 000
J
'2.00i \1
:::="
::::::=:- ;2.0.90
f
ioso
2.05
2.05
,·2.05
105£i
C.A LL
90
20 l /
~ ::::
2o9A
2098 ICAU.
20C'2.
2.0C.3
2oc~
iJ;:
.105
l ~ 09E~-
l
- .
I RET I --- I RET
l
Mato P~m.. Su b-ro utt't\.Q .1. .s~bh.O u..tfr\11 2
MulH'ple E.ndi~ 04bmt.rttnD ~-
~ ~
t)
( If") ..-his t"echni9 ue when q .sub,rou tine \5
J
e:ceo.t.-tec:L ~ 1-he<e 0'5"e 2 conc::l.4+ioria\
91eturn s C RZ or"'Ki Re) arid one un -
c.onc:ti+,·or,cJI Re...tu'lf() C RET) . 2o5oCH )
RZ
~ l1 rhe aelrO ftaa is .Set ,f·e Z:: 1 H-,en.
s0b,rou+ 1·cne e.u\\\ 'l"ehnsn f,orn 20So(H) .
.jc) if .-he c..o--rry f 1°8 \S &et ,:- e C -=- 1
\--hen &ub~ou· h"ne Q>II 0 et-ur-n ~om.. RC. I iosg CH)
.,,,, 2.059(H ) ·
.s 20~o(HJ
6u b-rootfnc
R 15 C O nd C 15 C A-rch i te. c. h. we.
X. - - - - - - --
Tn 6h -uc _t10r, set ec,.,,pu.f<
-i- " 9 , :~
1. ~ - 9 t .hfo.-,Qs fo- r "R ed uc ed
tc: f
pe of po 0 ces soY o -rch itec.ruY--e th ot us es Q .6r no ll .6e
a +c1
)gt +) · the se ,~s t-c u c.t
,on s Or"€, no (m o ll f
of
0
• SC CI SC
Rl
s C > Ian )
( <. 10 0) *) lov-ge se t of inst"(LJ ch dn
¾ ) ve."'y j-evv ,.;--t>+--ou ch 'o() s v-€ .so
er> .sc jtw ov e i'- ~
Is *) Ma in foc us IS 01') ha....de,..;,o
~) Ma in -fo cus tb tt-1) ple .
Compile-'l. ho s o CC>rnp)ex. fun
ch crn l~ Con,p i l ~ is
*) V~ iab le st3e 1~.6 tou ct- r'o ns
*) F,.)(.ed 5t3e ,;;1->-t-ruc.hor,s
a , Ree to
pe.>i. forM onl.::J oe g is t~ to *) Co n pell.fo'5N) Re8 to r=?e
*) Ca n ope,,\..cd1m)..s
Me m al'\ d Me m . to Re.cJ .
oe.3 1'5reh. ~ i tt)m .at ,·c. o~~t10
Y15 .
AR
'
!..~~ ~ , C ·
M
-- .L-
Enable
Enable
(a) (b)
Fia Tri' - state ioverte sith a) Active high Enoble line
b) Active low Enable lune
Enoble
CActive High)
G1 Enable
CEN) EN
buffer
EN
Yo 3:8 Yop
2:4
B .Y2 A 2
P B
Enable
UP olP line
Seleched
A
O Yo
YL
Y2
Enab)e Sgnals
1
ll b
Active
ot2 O binosH wde l
louD 333 -OL eneald at Ke eip
inputs Encode
Latch 9 clocked)
5D-Flip-Flops C
cohen up seds
to inteaface
latch is uSed mormally output dences.
)A on h e datg bus fo oshot
dats a l e available
data to olp deice, USed hold
Hherefose a latch o to Hhe
peiod of time Ctes usec.
data
Latch (Tronsparent D-Hip tap) -p-D Preser 6
CIK dea
CIK
F DPip Ftop
Vcc GND
10D
20
10
20
3D
CLK 30
40
50 74LS37 50
6D 60
7D 70
8D G 80
Enable Gutput
Contol