0 ratings0% found this document useful (0 votes) 40 views20 pagesCOA Assignment
Sutxiyxjydyidykduufuufufuydudiyduufu
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
) 2)
+The Tonge to Pees additon ISubsrauion Using
| fut adder eS ee Ta
+ Sinee we ae Eing “bit, T=4
Bian rong ou ee eta gt et
“The penuat Oh Uta Ay Ie wht out Tf rong.
f
now phe Urudt Th a 4 bit Ripa Cory Rdder|Subteate
damerihrale the Operation’ 1274 and It+7-
4p bie Hipple Cary Addul Subkauor
n-bst adder
19-4
Binwsy BH la= loo ote +4
Gey, oh eC FOS pout ats
i +t
Biawe;, FE -4= LL0O oe
©
a tloo
-4 + Mtoo
11000
- Quswer= 1000 ae
ce poe TM
144
—
when tion Numbeu TE Some Sgr are adied
Vis Not unlisin eng Hon fans outing
| OverHos and rustle will be wrong "
{ator
ret
ee
oe El
eee
10 Oto,
a—_——_— _
PT und Toollio O =1%6
ee ee twrye tA
}+—— > -
pdt y uP odsd
| nptitywecooes, OUR. Ad bd pany vecod
‘ Oe i 4 i and -I4-
wiper 4o¥ pre follousing + 14
Booth sMetoced mult plier
pe ee
| 414= 01000! SM (nut plat) oe eke
0
ne= © Lito i
+ L = & (mutiiploun) eo # lc ret
“14 = Ltoolo WE o
Sa
il 0.0 1 0-o
Ga Nes
-t haa
6 olovot
| Booth yuroded Vrulipinan ee Ol Deel CO
|
| Eee o toro
|
|
EPiei hee ca
eerie ot ty 1
09.0 0) Orion
006900000 |
| ba
| Doe 0000]
| Oe ered a] oO
ga
frod y's Lorn plemnurt
4 Sine angwet ds 40 negosive
int to eo) Were se
O 0 -O26°t4it-p or ee OK
OO Ome eS 4a ger
eeu ge Heid oe a
= +338Bit Pale yuntrg—————
+14 \-14
*'4= D1 p001 + olooorjroii
T= Pus 6 io ay. 624
Hoyt a4 Oloomw\Lotrtio
Ulootso
uy
“1 =>
Rit pon recoded maliiplie $= 0 -b +1 2
Ob.t GO. 6 Gack
; oO -t 41 2
Poo
a PU Ser rico
f° o060 te aa
ol TC One
o
tind QS lomplirnnt.
Liltoooto
O 0-0 Tei Oy
- ©
ih
| 0 Ono Ui oars =
i PP A a pec
G) Compas Bau PARE CP SS and US Uta faa cave aid
| SS => LLOILt
45 > lo LtolPro 1t y CA) Tree Strutere
| ep 0 0 -18) ei
aay! a FEOt BA
Pym} (08) OE seb 8,
a Gee 0 1 O 6 te) Lek J
o+tar Sis
wont eae) Che Sy
meso 0 0 0 0. +14) ey
fee! i! ar +
ae
ae. | 10 1 yt)
Spe Crt Se
jc ro Oo Geol
Oo aie 1 OF t mer
Meena! Ne 0 1a a
Shwe a OO a toot 1 —xSq)
Qu eligi On too 0.70 (ta)
0g Og Oe lO 2 WOH Ope Cen
Goreme oc oO Tot Sq
© we lin ip VaR ONO 0b cy
aie eterna ery
diviion Of 93 by! 19 ting eam yt pod and
nen rurtoag divities Algoxiiimn. Give The required Loge
| Bagram. .
hogte diag tomAdd Isubtect
Oivisex Mm
Restoring Method ie
O10lo
8/5 oro
AQ0000
| Divickad = Q@ = 23 = Lol ak
Oi ro ays 2 00001 Reg é
Quotient = 9 re ae —™ 10110 YB) stipe tes
= > Juminder=3 PRP Ras Re |
¥ ut e
~M= told 3° reuaeeae
SS ae —— | ee
00 eee
oo0 0!
oo10t 1:1 @@0) i 00,00 | ot rip] 4,
ol ta i s
Re roe ‘goo whe ro PSro ~ +1 ato]
‘ tae) 5M 10 110 mse ty Ast
oO ee “01 668 1. OOD sco meoe
| ee (OW tm 9 1 OLD
9,38 eens were Do OL O
o oot lt OOOWR am | oolo
es a Az1, 9022
Eom atm oo00l0 tt 1 OM) i
youd ootol beeen
pa 0 em Lovo
oooltl oo old | war
20 24 RK he,
ut
reminder Bk am 10 18 EEBe-0
3 ootoln o1olo 6.
00000 tony
*@oo0r Ont tS eet
fo rte ag a=
%o@o 111 {
go
orto 111 fel fel gap 44
ood Ford AF
a@io 00
; e
10008 1,1 90d wor ot
bles Qpet 4M
aQiot
rit POO tt ME
otolto aged AM
a Qooo®g
ooo OMmam wr
a quo. A
| weoon Mt
- 61010 yinee mse $d > Rerfonn HH"
Bo oos4
we
Explain te tonupt ob 3 bit Caney Look alaad adder woth
Ue
> Cary adder UA also known ar fart acldin
3A fot addin Uruuit mu Speed vp Bie Grration Bf Les Comey
_ Signals The Logical ¢
es mepraive for Sunn € Cay out (u48) CF
Hage 1
tan yorcte :
Frais = Sth iSO —-The expressions Gi g Pr ore rains Qurreite, $ PIOPAYAL funtion
™ Eek Bit conta LAND gate to forn Gj 5 1 OR gots to form Pr f
3 nped xXoR gets Lo form $i,
Pr =O y: can propagale only whan wor Yi 14 equodty 1.
Ge mys, Cen, Guungta, Only whan bot Ki SG) 14 epund tot
Tee
Mo he,
Bit Sdage cell *
wow
1 when T
| OS 2 BOGs §
| Cr = 0 @ Ga ~ 0327 GP + Ga
} > (tom OGM + & = (loPoPr RGGI ht Ge
= CoP Ph O4rh +4) 2
. OPT Cot PPGot iG. + Gy
% For atl Cavey bit AtlOr4y Hrougn Fort adelln 2, 9
= Gok wt
N= Gate for Sune bits It for Sb adder Sum lates is ee
eco2) expe Be 2 WAYS TE Poprrentng fleawry porate nieyders
aavetope 4 by 2ee format Solve (886.625) Ane maprevent rhe Seine
ery Sage PMusren
> Thou an wo Haprederabertnny Sebaenas tev Apres g floating
pela Number Thay uy Bae bid Whae pration
, SEY BN daehts ~ presivten.
A Baw glowing poder Murmrber can be deprerented by
© A Syn doy FH miawbey
+ Sere Sigal ftant bits
+ A Kqned state, fret Cxpovunctider qn drmpied baw dd
1356.6 AS eo) . ,
a
6 Gas xa ed ase ’
sapxa eso a
+50 ae HOO
ORs O. a
‘ a
1356 = ClofpPPULGoy Lolo, &
: \
4.01000\100\010 X we
= 1™m xv
Ms olotocttoe\oro
eai4,
Gs E'- 10d ap Ele F418 & THOM = 186
mess
heen F
Ween lee || toveieee |oroieotteste 0
1)] Gxplain tne Regichn Strctoa #] ARM proanioy and Tos” ”
datas of CPSP.
ey
ee :‘Register Structure
+ Thou wu Sitluw 32 bit
Progyamt labeled Bo terug’ eis
+ They comprixe Hyper gewrat papers peagisters (@o Hrrouge®, )
ang the program tousmnitec) 2s 1 ray
« The Qeural purpec yugishne Cor Goid ert memery
addreces ox date operand.
+ Regex Rs and Fis have dacltard vies related to the
management oy ts preansoy stack and sub youtinss.
+ The Wovecdt Program Stedes (cese) or SP Ply fhe
Steakux regishn Golde the torclition 22 Flas (ALZ,6¥),
lvderupt “clisable bits, and Proumor rnods Brts-
Fi) °
7
prowmscv rugisteut for BM" Applicat:
fst Bis -
+
CPsR PE ee ee
ne Negearse© Applicaton rer Ba,
Myer re nay raode, Ths Olu Six
ed to handle Llo divie interrupt , pro
powwow Lyset , Sifter i upH » PUY
violasions Lrkerupts and memory cco
STOR BI ase ha Le a
Cneeasting an applcat on program ,
The wie & number 3} acotiHion al qenrod ~ peor pow
pegisters Called banked 240qistor.
is: qu dupHeoler BE Some Of Bu Roto Riy sugishs -
Riffeert banked sugist Vu vied whan He proemoy
tape Dilan MOOS SE operet700.
| Gules from User mode tnto |
Jj ruegistus avoid, He ned to Save and |
|
|g The ue Ff banke.
yurtorn some Oh Abe User mode rugister contents 0
mMocle suites
‘ vantous Adcburring moots Supported by ABM Proumdy
mample for Cath :
J ‘Addruraing, moden!~
ds in User mods,
4) Baste Indened Adcbessing Mode [Fre -Indened
i) Relative Addrening Mocle hye dint
Tl) Unden Mods with vorile bave sl ee sakiovea
iv) Register padeeaiiog
v)‘Trnmnectiocts:
ti) Bowie tacked [Pre- Wrdened
Bare re
ex:- STR 23, L#S, ec}
ooo as
Gee vegan
re
Of vgs
fanee
Thi) Relative adebuming mode
Od.
lor Ri item
100d
Cable)
LOR RUTTEN
1 upaeted [rc] =loo?
Spe Opler
-
z
é
ee Cisco Jen
‘ Ban= regi
Oo= dey,
Tee
ete Ft vegivs ~—
“a & Le Sinsteanion £- LOR RA, Lex], 210, Ls L442
loo ’
a) Post -Icleneds pete
gre 80, [estat
Dorr es
| Bam register (Stat poinkn) :
D008 2 . .
a r0
‘Tes
Atta Ocunda
O} insmuaten
vy) Cagis
eat- Mov RL@L
pil eae,res See i,
S28 nd Storer dashuctions ‘- rig
TARES — toate a 6 sere mremary adovurt Speitied by the
bare TegNstor Plus on Offset Lato distination FeGistor ,
patie
lec,
el se a
PEMA ~ Locks muttple words fpr muvory Linto (me
VeGisters tnecernenting phe bare ragisen afin tour
STEM - Stories a half word from tr Source regishn Bro marry
| addret speitied by bare registy [lus an TIKF .
+ TST (Text) Potorrm a bikulee AN operation bemoan Pes Soc
Operand and updates the flags’.
|
* CMP (@mpau) - Subsas Pre Source operand from Ui durdinction
operands without storing Hee rust, Upelatiny vo
Hag, bored rr Une Husutt ,
D) Explain e importants “at Auerible DOGRE (meR > AEM
| programm’
[Assemble civertives plory e Gtuical ole in AkM Prgrammiag ay
Phey provicles Unsbrterrions to the awenble mM how ty q
| 5 POS He
Source Code © quurate Hue corresponding jmackine code Hire ane
les bey aspen Ty Ae Farprortance Th aKembLh divedives 6 pem
| programming,
| 7) rumony organization ii) ata befraiHon
| fA) Syrroo! definition Ard Steping ») tonto! ftove
ly Mae diftaitoms vi) EmdtHonal Woe,
| vii) Eveoy haadting @ debugging.
Be: aw
3) Explain tnt opevoding modes Uf opeiretion ae
The Rem proixoy have Seven operating modi
3 umn Mode
> Five excepHon modes
> System mode |
Five tepion mods Sa |
| | Rua interrupt modi te proviiee a igh: Priority intoript hondtin
13 mechanism compared 10 mode
eTypltaluy used for Rancting real-Hore fastse is Qutuud wan an Onteraal aeviee
Yaisea & normal jintenupt requent
Sup wwvisor (SVC) mocks : also kbnewn ay “privileged mode”
de Ho Qctess Fo aU Systm yuacures © engruct One
| _, Abors modti = Prtoid whan acata & Lestseiea obowr occu
Such a memory aces vinloren
3 undifined modi Enteud whin te prouav® encourts m
| bndefirad insrnce'™ .
| 3 System mocles a A privileged Pipdbietetin (Fo SUpusvNer oolt
but with a fou oliffeunces dn HES TSH Usage §
behaviours mare
f 3 ce nobonal bran with
13) Explain tre concept Of consreren $ Unto
tran pls.
tongstionss brenuh+
te 1s Hpac, bared on Store F10% set |
by Ihe previous Anshucuten - |
aem Dawu Fauude set Encticating tH tonclition vendes
4 eee Ae Brant "seutd CC }
| Commer conditions dndude equat (b8
Jus thon ot equal to(té) ete
example’ oe Poi
) not etal CE), greoder Hos Car)
ree, Soquap 2%
Unconditional bronckip tt above Guar Lhe program 50 Gump
yreqonclins oq ony condemn
cadtorr
oe peso how. not olipend Bre OG conclitone valet Op
es qunoted cg! followed by gee tonger Leber ee
wes
Sorephes= Bg tong
irnportanu fy Bonk pagishn OY Fret cat PG
y)| explain PX : 4 |
Cd Bes Cash Seperate sete ator
proclenoy mods. |
tines |
gthy urable 4f0er7 comteut sutkhing buwan modte .fas SRR i ai i as
| wih tneble healt Content sulting betwen mods ~q
| FE preconer state eres Mocle changes.
| ® THY optimize Laterupt handing by Prividling cledieckd
Vegisters
i LO facta effrvut vesource managed: ‘
Peelers FG TRA Bupowier — Ayort — Undlguned
a rat
@2 eo] {ee} LR?
3} R? et Lae
e |
[ese] ie fone] (teee. cual Capen
|
is} hae x Pro”umey Coveuny vise € C18.
Lits own Spedal gJearous _ _ wb 2
|
|
is os dasmuction set
|» Fae Faxed Length Lesmection
;
t
Lake nursber Tf adebuerving
ae '
tobi “a ‘La 2 Co BP Bayt,
% hers Powerful *® Mow po s
_& Single Lycle Enductioo.Ig) Explain concept H LOT wring aE to pera |
> Jor “wa ntdvork SE okevilces uric Com Surreyacercmulode % |
Aramipur olete over te Lotownt without human inti vention,
—> Ve LOT ds about Ender connecting embedded sysims brag ng
fogethr Two towing technologies welds Counectivity & Sensors,
_5 th ronneried CMbedded Syst a note pendent |
micro controller bard Computus Hrat Ue Sensors, 0 Co er
hate. + Oe Haeoe tos : 1 ‘
> Shyer BOT Syst ant networked AOGeHtun Uvroly a ‘
otPruetar protocel su, 24 ne Blustoolh OF A Cutorn
tpmimurteaiton Sy bern swt Ce
ame Al : :ago x
RE a ms
| The data J sent over the prtoort MOO hub w
| Compuen
| 2 Ths main compurr collects and analyz
SHruay ce im memory and even making SySiem cLeiien
bescd mm nua T analysis
the clate,
4.
lq Ea. —
) Adentity 2m ype A
| Amthuchons € wontte appropriate commen ds.
T) LOR Re, New
| > Type mp addrawing mode buck acleresaing rwode
Swe oS
d
| LOR RE.NOM1 (asus NUMA ds meron
a ca is ¢
PPrepriecte. Command nom ‘
li) Mov Po, aus
Adobuscing modes tmmuictiate adobuming mode
it) cmp pe. es
Addburcmy mods: Register
WV) LOR 245 Tes, 5
Adduyag ook tnolixed adeburwny mode
v) stR 22, [ec,#-47
» pre- indexed addrussing mode
bs Preble We
30) Differunce berwar microprourrer °& Wry Loom ilen
MUcro processor 1 Mbore torckoller
wt 1 a Spee doy tre Dh as Spedaliged Form OF
Qurrial purpoe Wekero proUrneor
5 a : hur consesrs (PU.2A~,90m,
» Ut is Sulton Up regishn Thmun € 210 ports .
vy High > power consumption |y fous power consumption
4 »
ue heart bf orp | Ue ds Peart 07 an embedded
System -
» proc Conaptex € pouserfull * cere. then,
Systemrae O
cou
fin dn ARM axsembly to
binary, number . Theis
grits ALP to -find pra Numba ff one
2] iypeabens vai Cormenuatty « ig
wom bly Aanguage
find te no. 0} onts
prorem tterctes tn
no-T} ores entountoud
program (ALP) wre
in agma 39-bit
ougr tah bit 1 input number $ counts Hes
AREA Rest Cope
eNrey
LOR PO=OxAAAAAAGE ;
3 load the 7
Riya as é Number an RO
Clean Ry to Hero
LooP
Mo
VS Ro, Ro, sR, wl 5 eget Hoft ko by 1 & move with Status
his value in Ko
RPL ADI
DES RR HL 3 ADDI tok: if Cary flag wos st
CMP Ro,tto 3 Chuck 14 RO har beeome Fro
ONE Love 5 if Po no# Zeno branth bak to loop
ExT
B exir
TNO |
|
23)| Find Be Smallixt no- dn oven anneuy § Store the rusult on
parmory Aocotur Ox'40000000
AeA Reset, Lode
ENTRY
LDR Po=DATA 4
Log 232 0x40000000
| yor RH =ox08
Loe Rt. LeotaFo4
SoR PH, Pur tot
pack
5 ILN-n0. OF elmients
Loe p2, eo3
(mp en 2>
Bis LES”
mov #12.
3 HL BRANUH on Low
Less