0 ratings0% found this document useful (0 votes) 45 views9 pagesLecture - Note - 3for Computer Design Lesson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
s alo
4 oj\t
o +|°
As previous
oO oO
14 | Nov Allowed
Not AllowedPROGLEA SOLVING WITR ComPuTéR
i J owors | Out put
Nolte [or [Ag Hel Conte [pate]
Device ‘
Lowe | Uni
un
Hardware Grophic 4 a CENG Computer
board with 0-3
Inpat Device + AUS gon toys
Dudget Device . A poniber
Acithootic Lore Unit: A ceaister ith 20 bits
ae fel ede erat ts. |
ConWol Unit : An accmmleter with [2 Bits
ve leted © 1H:
Memo 4000 welds (00 - 993)
4 Fach word is 20 tts bene th.
ane SXY bit:
woe GH ™
Auer yes Yel y bi g bi
mand.
cust duo y bits Ts wsed OC Saead
Last thee 4 by is 4 Comer)
Pemoe
Qj
CSreragat Ade@
Wher “si suc an Ostet) CENG
yhe accumulatr U
. “ um the c ot ;
os cet — ont unit
ee emloctag
Cre gis der)
This address shows execution
Sequence 4 memo addres4.
ors ) the meaning “A emecute the
COMmeand Un tre memor aoddreds
o;s anda of ter eben tian
address Qeecumutastor by 4,
076 (The nent executienal oddvel
the mano 1)
The add reas aceonnte doo
Con be assiened wihk an now
votue.
. , Value
far wee id Mes Boat
leAsr,
Ny COR assipe 124 +e
Ane pean memo od eet Oe
will he 2XCommends vw cENG.
Commord Code Operation
Decimal — Binorg _
oo Ope 0000 Trapt Onn board
ond place rhenor:
Address N-——— J
oL — ovee eeet Print, the value cr
the memory addrest Dn
eo. sare au ds the manic. _ ’
More fre value in tte
mame C4 eddress Un y
og once ony te cage
Move the volue Q te
Cegisie fo tHe mowory
b oN dress ni Mee
4 9000 e108 Alda Ha Vober the
register with the velre
i phe momo addre44
V\ the resulh (uilke un
reps ter, RE +n
O5 0000 21°) ~~ Subs preetion -
Q<_ mM,
6 dee vido 7 [Pip Vico Hie
o OER,
DH coe sit _ Divistes R<€ RMA
D9 eee Love Jump memory address k
00> 1004 Samp Yo msonotg wadents Me
pS i} We volue la ye = O
fo poet 2200 ump memory addres K
Th the a ceptiier £0
11 cect ered - Sey 4 ex! hoyLonny les
o4s Eater ~ volu b
0° Crd §yare RUS key oor
Ad dresd ] o¥s.
oL 124 ‘Dizgleg tre content og
mamery address 42y.
SCY
02023 Move tt Yo content 4 memory
029 te ‘dro
feqiier. Deeurouy Value
Pare) regriter will be lost.
O34 Move He contents | Srey
Lashes Ug y
hO memory a dreas
oy 144.
06 030 Wutthiels jhe contents &
ie fea ee Aken
mendes Ad dreds fo
store a Q peg ult
a ge . Preis
tte, wil
sl lost. “&
08138 Continue the exec tory
fuse the memory
438 -
TL He value H He repiiley
ees loss then Oo) Me hinen, He
Oxecution frsen Yee memory
execute Ve’ paxt culdeetd.Exowgle.
dind He yest 4 Ye A+B
A Gand ce will ke entered om keg cod.
(read He values of 4,8, c)
A bend C ove (ole) ove Vavieb led
Lets put Hese variables cr He mome/y
A — + oso
& —-=osd
CG <= Bde
Y —s05?
Rivet
A ddeot
oo
Boe oo 4
Oo Fe on as
oe °
ot
0of of O52
ob o3 asl
ee od ao
oo” 4 °
Hie velo of fl
ahMecusaes Prdeess_ [eprom
Oo|—— oovs!
vot ——__ 00052
003 o205!
04 — 0} 0§2
ous ——— _ ©4252
006 —— 3 oS?
ee
oe It
Tha fon wil) be tack hewn
pe pove 9900 2002
2 pe oPSyn ie Nowes fev Commend
Commend (de Su be lie Nowe
Oo INP kesbsovd—> Ma
Sb PRN My ar toll
D2 SRG WA or bog)
o3 oO STR. R—=> Mn
oy ADD Re Ran
os —— sue Ze t- Mn
oe eG Br
o} SIV eebryy,
6§ Mey Me
03 ——— 2RO Reo aa Ms
ho Not Ree am Ma
“ae o> STF
@
Yo tne
“Radees Sambs) Command Sypmbolic Aabdeeds
oe. 2 — ~*~ ING a
ood —— IN’ 7
po. —- — = ine -
a GRE 6
poY - 7 Div c
05 - = oo) A
poe 2 7 STR %
voy - —2Z PRN Y
i ste
5 A
ae a
ost cq
053 7Querticns
rv
Ye ot ire
2) a he Sum of en bow
ramdoar 24 I
3) y~ Ze
4) find He nuk of she
sO jr
5) Find He averngee
) aah oie