Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ddco pdf1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

Mitvo-opevations RTL

tonlr
too-opn Opo tohrch is palormeol on the vgist
data vegi-ley C16 Gèt)
PR-
R-ncaon v egis for (18-b)
1RJemporasy Airka (t6 Ge)
NR- Mernosyddyec veqtid (12 bit6
fpoqvdro tounfo( h )
N9pef Rgitn (t-brt)
ooOcefput i s le(a
6i6)
MSR-m tmeu) ehfu Atgistu (nf6)
pe-Aelols he data
kn
K no
ovto
onn as
ii
is
corterrt o egirktr
tegsktr
perkomeeal oy
*Opevatton
OiCYO-operatr on 3 d h f t mo
2 kogne mo

Aithmelic
m0 2)kogrc (2,
3pa -tt -) Io1,XoNO
IXNOT, NPND
NOR)

rthmetic mm (tYo-ope Yations


Qscvepron
Opexatron RTL
dloletcoo R
Aldfioo RRR
R-RtR2
Adoleton Sobrlva SR,
efernRR.R
Soolsaefen
R-RtRt'
Sobrtraefron Addition
tion wrth cavn
wrth cavr
Addi
>R-R+Ratl
Adoliticn oith
caYY with borro
Gub
Re- RtRa
Sub.wft6 borvp-
R e RitI 7 Jnivcm ent by
Onerement >R R-1 dec Yement
ecyeo ent
R-R aneRconil
to R
-Mu-trp &ca-ttcn inuoluu ada tron shi-ting
So, t is not ovtctof involue o in avt6 mefi
opevatr on uplikd-tron is a cOm binationd Y_100
O00
opeva-t'oo. O O0x
ox

SI Se C
Ap

4X1
3 MUX

FA
BT C
3 MOM
- FAz 2

3
FA3 3

bLpoA4I CAr
13MOX3

Ao
K-AA AA
P rBBa B,B Bo
The Lirc vgirkor Cofe nf (As A A Ao) i
mo cham ge
oA reg)stv torund
4ta ce thtve is
dfrt l zeded

Bamph ,Olinaton
ADP R Ra R-R+R save the
> R+Ra ( be uded ton b
laninfovoation e reqisda
4DD B1, R2K3 R
nDP R) ACACP (Ac hasa Ra nafion
distinatibn
A
CCOlator ii h
Ctn Y-A+B+ Cin
S So escrptron
0 y- A +B+0 oCol tOn
Y AtB+l oldtion with cary
V A+ B tO Subtraczt on wt6 borro
SubAraAton
V AtB+I
V A+ 0 +O Iran er

V A+
Y= A+ 1S +O Y A-1 dtcrement

A 1 +I A AYanéfer

ogical Mitro-operarttond: (APS)

O
mfevo-oprT. ( AND, OR, XOL, No7
(Rest ave Comb are deive d prors
Ahxt 4)

F 4 s F s Fa Fo Fu F2 Fi3 h Fis

)0000O
o00 0 I o 0 o

fo-0
-2y/x
Fe Y 21

Fg y

Fr-34y-z ) (z+y')
1zv

FB- y)- z'*y Iz'Vg


FI tn)
F154
unctron RTL Dutnptioh
Set fo 2eso
Fo
ANDY
AND Y

ANDy
F

XOR Y
OR y

F 1a4)
NOT (aty)

(70y) lOT 20
NOT y

tteT X 02 y

NOT
Fi2
h3 vy OROR Y

F1a
Set to one
IS

90
001 0 0
1tt O10 100
Crcee

So

MUX

S So1
Mo
plccab ons logie
11
Selectve s t operakfon

2Sdecdive tomplemet

) delectve eleav

Mask opv
s) re ot op
ave Koo
koo 4-brt
4-bt regis
qisteuAe
l t A5B
Slueve 4tfopm:
2t A-ioio Binoo)
10
i: laken as alata xeqiker 2
S: One 4tbe neg isker make lke changes o
a s logscal operaool to
be reated
d o t a x e g i r t e r -

DR
A 101O
art net ad stu vbea
logic
in al opvand
B 10O A i seplace by lÝ
it10Tn A
DO is there 10 B, 1Oom
0rffen asitis

f l l be sed
lo1 herethe
A eg1hr t olala
a r d's
veaiska pes-fioTm')
,

logrca l opev nd whue


e ikeY tonlent post(on tto to Cntotr change
toe logcal opevand tonlent ío
Nefe logrea l OR
SeCecktve set opn

28elecoltve tomplemen Oa-la regslr Comttnt ustl

htgincler

Complemeot whee be g ica epelttoY lonte i

optvondhegida
e t b e pla ces o i l mo change uhes e 0. egs cal opo

DR
A = IO
B-1100-LO
OD 10

Noke:
Selecbeve ComplemtndXOR

wfll be cleae
Seleckive cleay Vata regife ton-leo-t
Conteots j
heGnsker
whee tbe logcal oprandl
mot changed whee ogical opesant
h e t oR place i

segilter conrent o

110
51100 AAB
O010 logiea
opr

Mask oprt Jaut opvn, hilt


Me tlaasork)

.
Mtsk p r
01 O - pR optvand.
A ogrca
I1O0
o l0D
values 20'%,the
e logica. opvnd
ave
we
. hu te h fhe
Corresppornat'ng da-to gidu con-ltt oi b e
oong pis i h e
ve

bib assam
ae
kog ica C AND
o l e a s e d

LMas Opro

eprO

drta vegisrev Conen


inser 7 daio io
GHelps do

E o n00111 chamge do 0110 1110


Mask 1 1 000010real pera nd
(AnlOy CO1O OOO
1|1
O_ LA
(oR O000
s e l e c k i v e g e f \ ,

Ol1O1IO

h t Miro opera-brom
t»>igk-- hilt
Mogical
CY ula

R-:hl Ri
R J sbr R = R0O

)R-cshl >
Lmotolo
O00

)Ri-Cs hr GToo e
ashl R sae a logrca leftsE1.
RR

ETEBE
Y cared. O

)2 -ashr
R
O0 p100
A
7he l a s posHtro is pr eeTVeol,

V- Ro- Koa
V-O6eve is outr lou
tbere is movey floo
in case ogical
V-l
oloptrtt
the shiter civcu t lK 5 rigb opevatro Ows

ek:A-Ag As A Ao &evta npuet for ahifin2


chl (na A Ao STO))
Seleohcon Ho H H2 H
(ch)
OA A AO 5T
(sh O Az A A
S

-Ho
2x
Ao

A 21 H

2x1

21

*A 10 1Ol1O
=

ioot 11I00 Kfor


ashr B c)cshB )ashy
L p1o110O
O0011110 00011 10

10101
opro cles cus about

b e st9n
oih
es)tcaro o6 stg ca-tron
jcutiht
magnitule

ntembed A010010

shln >D)0o100
el:
h a t tbe
mest siqnthtcant ki
Voendlicatu b. usg
eehile shiflin
the bt ,
stm, lhen is mo chang
indicaa Ahat tntatron.
prerecvedhcch
c-fuole veprts
nagn
Agn
s a n to

B-101DIIOO
o l : 4 B - 0 1 0 1 / o 0 0

ave
sB
tinolecatHhat

V 10-1 , hat

aibberent
egtsor G check tt
Check he comtrm ol 10N o
) odd o =
even
wMmov aer
.
4 vens
meutlip.le ves
mtettiple
wbue s
wbee te
stae
d each
COnstale
>let w

ave denignafedh, E, to P> tath o4-be


Reqiste»s MUX3 MxMun Mox
0 seCelron hns
> l e t So, Si be he
Bs Pal B
S So F
A
4-ort ou
OTplct

S1
So

A- 4 41
4X1
MUxO
MUXI MUY MUX3
L 233 23 L 23 12

AoA A A
A

No mutdip leven ase dercdedl bad on no d bt 7


7gicks
) Condrucel a
cirtu it diagro) oith no. ses s
cach aegirke enpacity 4 bt
S-S, A

O0 A

O
0
O-
F
1 O-
I11
lg1234sL lp234542 j
p1234 S6 p12.3 4s6

Hiplexus are 32
)Let aume no mu

no o gi'ste e 4
d btr inhe mg istrek
a) Caleuela-le no
indfbe sit nultiplextr selectoo enes
Mention dhe sie bus ne
i t )4x1, 2 lines ase
reguirca..
32-it bus C

aAsassumehere are 4no.mubipkexe» avebere


idb 3 selection lineg
n)+lovo manyy ih aaetbve in eack qite
Mo man no-d gisfes can make 6
tenfamahon
a)bi6 is tox c)e s2e d Mux
Competey istrucors
Memoy-Kthmnte Tratvuctions
LegicAe -Rhence Jnod eucfions
o-Reheveote 9,rickvuection
emory Letence dru etos: (is a 16 ct nuthion
ethn
15 14 12- T0 direet adl dyort tra
opcodte Addpe 1 nolret addre
opeva-tro code
Reprsemked with 'AR
Do-D4 3YE olecooler
op code- O00 fo Q1D, AC: Accumu
lator (gneral\
ppu.
MemOry 7tktence ddress Mode estruptre
J udruc:
-O D-1
0000 1000 Aolat oo memay
ADD ocaton tonfenrAd
(AC C+MGARg]

0001 00 Nnd oprn Memog


AND
loLa-tion Conttnd U
GAR
CAC-AcCAM[PR)
tonton
LDA O010 O1O Oad me movu
ino ACAtkM
1011 Aore Ahe AC to
STA O01 inAo Memovy l o t

M(AR)AC

ON O100 OO Branthu n tondetronally

Banch, save
BSA O101 110)
Tetuun addee

TSE OtO 111O Ynevemend


4kip pca0
AA US BBT
N
DnsAruefion s

STnpt 1oufpeet (fo Vheen te


keprvse n:tacon
Jrooo 0000 0000
O

2
O O

O O

so veherence Addres
ecpt<on
TeunmoniCS

INP
Readd6e characzter
F800-
rom P negrftr

OUT FA0O Ovite l


{he owtpu
Characttr into ect pu
Taisft.

SkT F200 Skip on inpufa


FIO0 Shep o Ourfput 6
ToN FO800 Lnterr ept on
FO40 tev rupt OFF
DoF
1-22 ApDR ess INSTRUcT IONK bis

Thee ddloluw Jnstrucion

e should inooloe 3 addreaes


atteast 1 neqis Ke
Jhe ofhertodmaybe 1g7tI
Meoo oca

ExJo pufov X- (A+B)* (C+D) Homory e eden


Raisdo
)ADD Ri, A» B R-MAJ+ MCE]
ADD R, CD
sMUL X , Ri» R MX-RR

Joo ddos Jnotruction


MoV Ri, A R R MA
ADD R + MCE)
MUL R R RR

- A E)CC+
MOD Rr, A R MCA]
ADD Ri,5 R R+M B)
Mou R, C Rae-M [
PD Ra,D R Rat M[D]

MOL R.R2 R R
6TORe X, R MOX)- R
3Dne addrss Imtructo r The duekina-tion is
atumala
X- (A+8)* (ce+-D)
LOAD
A AC MCAI
ADD AC AC+ M[B]
MMOV c h AC
-A PS-orina ACinztemp
ST T M ocdtion
LOAD
AOV C AcMte
A DD D
AC-MCC7+D
MUL T AC-A* MO7
STORe X MCXk Ae

a) Zero lelorers iseru ckions: Top 0f Sta


sHacK
cR
Jop of
POSH A TOCL-M C)
PosH TOS-B

ADD T%-(A-+E)
TOS-C
POsH
D TOX-D
PUS
TOSA0D)
ADD
MOL TOS-(A1E (C+b)
PoP xA M -TOS

You might also like