0 ratings0% found this document useful (0 votes) 62 views9 pagesMicroprocessor and Microcontrollers - Unit-3
Microprocessor and Microcontroller
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
Se et
| ssi PNSWER TyPRES QoESTIOMS !
G4. _@ DedcrAbe the ESC instouchon?
Ds: “The £8¢ instsuction 4 cHons by)
pent Copyocestoy Pom the mic ye procesror.
umenever An ESc -ingtyucton erecuter > the. mice
co prog for provides ne memory - Gddrest ,-)
axed , bet _otnerwite performs qG Nor. Were
\4_@ 6 bit inetoucton for the Co proce tfox embe-
dded in tne ESC instruction: IW wer} op
Cokes ne 2°66 AweotS ESC Ond Ga NoP kt in
Somme cade the gog6 wil) acces” plete _jtene
{WW memory Por Wwe. Co pro Ce€or -
@2- Explain tne NoP_ihgtruction? ee
fod Nor Jf Cn _inttsucton rod Connok be chesipied
vndey Any . group ditsct&ted te paw. “his
just ruchon does Mt qo anything... eH ie jt ¢@
Quit vPePy). Moe 3 vsed Girne eep jn Generatin-
mo))_hme. elayd_of Reorder of c_fese —
_micmfecondt. Mot affects no flags. -
@3. wha if Lock jnshyuction? ae
fof 3 _muiprece x gor oe tne different
) xk a> A Systen def bit, hich
\f__needed p accedt Sdeeaal deicef Like digkt
Loc imewuchoy if given Of prefix, in the Care
wien a pmcepror needs excluave cere
of tne gf Sytem bout efor @ par culey Ingham
Yon. 9+ appects No flags. =.$M oe BD
7 2 a
- Qu. _DePine WEI ng uckon : |
Pas. “Whe CPU Pinidher x execubng “the Ssieat |
- nt sucion and holt ony “furthey _eaccuntn. ”
aw interrupt ox reget if necetecsy te exib
Rape fom the haut etate- — -
Herd ware mews Rend Interyupht te
Cav at yeawer Intervale . —
he address Ond deta buf Qve’ pGced_in high
5 ance ore. o segi¢tex Contenkf are_
appected . _
. OS. wrok ja eof - Move _ inghetction 2 -
“fag, “Whe Movs _inghsuctions 4 sed ho Copy a A
: ikem Prom the _-gousce String b the d
"aon _fhsing._“The_towrce _ghsing ig peinbel
by D8: 8} and the der }inalion attiing iy
. pointtd by BS! DF :
<0 what id ote of REP inshruction®
Ang» “Wie ‘nghruckon? 4 used ar Q_ prefix bd ebher
———_\asteutheng, _
Me_indiruchong ty which the RB?”
——it__prvide 14 erecuted ed!
ace |__repeated|y until
+ the_64_ reg shen boomer Zeyo. v
— Thefe_are _vted or | CMS 8CAG inghyuch
————Ont_only sae ingtructon — prepreg. -
+ £3 \ Rae mover STR, STR2.
ane Be ee ete Contents
[—_*_" EY nepoo repeats tne aveaoton waves sil
OK becomes Zev. , fe omegam ,, @
“S Dare.
LOX ANSWER TPES GUESTZoNs!
@h. Beplcin the, Dela’ bronfer ingtruchon of 82867
Ong. We. date, trond per ingtyuchoms Ore oF “red |
jo Yronsper data from one Locahond fe Carptesy:
Another - “Wid YyendPer lata Can be _eitrer
prom ve gater to vegidtex _, regi igtey te memory,
oy Memoyy he register: _
Ay 1k pes tent te Yete here hat the. _Wemory,
Yo memory tvongper 4 dala disectly i€ nok _
spokS\ Ble =
Patrteusing. Ave A Rome Lastyuc hong we ore _
hed Qos date dsanper puspode! _ —
a Mev’. - a
Wid igi Ihstructon imply Ce pi ef dhe data Prom
tne Source }» qthe _ olegtimation. a +
@___ pvsn: 7
Wis inghruction 12 ured fs puth: dale ‘inh the
BYOCK - _ es
@_ or. — : re
“hia type ef ingtauchon 12 wt vied fe get the
data prom ne -thak we
OO xcna’ —_
__ Sr exchange the _ contents Aken and the
__deghnation. _ ee
———
wis inshiuction id vsed bp transfer deta fon
tne inp omit to accumulotos. a“@_ovt.
“This inglauckon is Lead te twentper data Prom
accumulator fe Yhe — oubpuh unit: a,
~ @2 wate ye khext neter on the Paithm ele BA |
7 \ogicW _instouchon of 8286 ?
~ Plog: CD ADD inghsuc tion 1
: jostruction i = to add the Curyent Center}:
"of _de#linalion with “Hed of ouste and_gpre fre Feu}
iw _deshaokon. Hese we Con _o4e regigter_and (ox men
~ cay \eco.Mong. AF 5 cf , OF PF oF 5 od Ze
~___ plage axe affected. ]
~ © dc\ dep with caaes!
TW instruct performs fre kame operation eras
W4truction _, bub £ +h bi}
Me result OW Ane Condition cole lag? are _
~ affected by thid _& jnstouchon. :
~_@O S$ v8_ ingtwcion!
~ Sof netruchon 4 vfed fo _gubtgact the cursent Grit
~___ vb ef _deehnokion Win Mok of pnusce rd efere -
“ye ve Suh mw destination. Here we Gn bfe rege
~__Bter ond [ow memory )oGtions pF , CF, opp? Sf -
. “¢ 26 flags Gee appecto.
© _ 888! SosTRACT or TH Bokfots!
The aubtaatt with brrew inttouchon oybtecct the
__ousce ope cperernd ond the borrow flee (e
WICK Man seelect he wesult of the peeiowy —
Vv
|__cdlewloions , Prom ne dleshnation epesand.m ©
© cme: ComPArg?
: he ingtouchen Comparer tne -£ovrce. operand
mae May be a register oy cn immediate det
a memiy ecafion, wit g_deatmeation opero
b regster oy G meaner \aGo
satel.
© TNC 4 DEC inghrchone§ —
Tpe_ond DEC ineheuchons are we véed + increme
at and _deczement ne Content of the _tpecifi.
@ deahnation by One. AP, CF, of , PE, SF, |
and Zp @ Plast Gre appectod. ——
@D AND thatvuchon' oo
Wig “inahauchion logically —ANne Gath bit of Ine.
Source bybe/ word with the CoxB¥£ pending bit
Wn ne dettn deshnation ond Lfered the
sestult in deshnaton “He Pouxce Gon be en _j-mm-
ediake Numbe x xegitter ee memory lecotion | yregl-
flex Con pe a yegittes oY. Memory. Ata ton-
@__ oR ingtauction’. -
Whig _ingtvuchon. \egically oF ¢ “each “vit of. the
Source bybe (wo xd with the “Cosmet pe nding bikin.
re _deshnation ond Shree the wre sult in deghin-
aon. - —_— -
© ws inthsuction: _
he Hot inetwuchon complements «des potlentr of.
Gy op oferxond wegitter OX __G__memigtg emery _
docation_, bit by bit.@
® DATE
Ge _F XoR _ingh mutton’ ;
The oR ingh wucHon if Qgain _Girvied Gul jn ©
G tim lor oy fe tre AND _@x) Ord OR ofe xeon, ©
___ “the ¢ wna +ne _opexondt are_alte
Skee Smilax. “he x of _ofe ration gives a —
Wigh aut put hen Yhe 2 in bi x :
132 mj ler, oYneywide Qutpd jf Zero.
@3. Define tre ghift /wolate inghructond of SoB6P
Boe SyaPh Ingtauchiont move tne mary cleda tothe
oe H Ph vith
wegster os Memory Jocalhonf. “Wey al Gn pev fer.
~ Sa .
9 _muliiplica tian of _povest of 2°" and ativifion
“,
f_powex of J : 3 —
Were Gre two type oh of Bhiphe Srgiced gniftix
Cnd -Gathmabic Li Ding \oker ist ted with gins
numbers WK \e Pormey with _UNwigned,
y Terget rGiSter rertnery
g a i x6
SAL po :
Te Be
GL
{ oy
eS)
Sign} (MS)
Relate on the omnes herd yohater the Vnformetion int
Begrtey oF memogy Amer Prom gee end dy _enil-
ey. ey oy Awrogh Mee Carru ;
& Teg Fetter or vnemery i
—ee ee ee a
“Qs. he P Ane PFlag_monipulati
Ans. @ sTe he Bly “pe om ba ngerectons
TW Tit nthe Hons sets Ahe catty Pag Sc dees ae
© ce inghruction’. |
_ Wyss jnhuction sege¥ tne covey flag be _zeso. CLO
doy not _ a po
© cmc inghruchon' oe ;
“THY inghuchions_comyplementy_ tne coyry. leg. Lome _
dos? ok peck anyones : Flag — oe
© sm jnthruction: —
Wes _yn@huction is oged_}e_ get the disection. Plug bon one
ge = Ah $5 andl 2 ‘DT _-Can be ofecre mented cub matic
Cy ys _execuior of § 24mg ington STD
der” ot of any ether Pes. a
O cep wginchon
Wye Lngtrutiion 4 8 ted
flog hy zero fe Anat £4 _Ond [
—ahal_anhnoh cally _Gpber execution ef ingen
C19 does nat affect ary. einer _f Jeg,
ox DE Con be hcoeme©
ate
a=
© st2 weucions se
TR inghouChon cht “ne__intewoupt flag 1+ hie ,
__eralee INTRA _inberyupkt of the S266 = S71 dee
——Osk_afPeck ny. oFher “Plage
. @ CLT. inthauthion': — -_
Wis ington wesehr Ye inbetatipt flag fo Ode
- Yo Mig Se6 owl) wut et pond Ww ‘On wre ruph
_—_Rignd @ ey YS Tie doyat CLI oer nub offen
ny —_-orher flag. 2
—@S write o yoann add a deja eyte \ecated ab _
_ ofpser See im 20h -egment to @notner tate
hye _@s aven\eble at ofoeh Iw fhe Lame. feomen}
ond @hse re real at ato oFovl~in the feme —
deg men}. :
Aw. “ine Plow Chart for AK padblern may be Axown
x! @ A Orswn in & Ligue.
~ a Gar)
Mov A, geeoh % Qwitialiaing DC with vdue _[S¥elize fa]
ne DS PA S00 ReGigher |
Mw o4 Ison) bet fist acta byte for 3 I
_ oS opp tet : rok ented
_App__Dx (coon : Ddd_ tnd to he fe Cond C5eH 1A Get
- : bbe foro 060s eg Fer a
Mw Cob) ax | epre QX In fost Lo
7 Csegult ). \Pexfoxm Gaile
het : Stop r :
- [Frese veal)
- . ofooh
L
Gam ©
Ob:
bade _—
_ +} “The lw Chart Por the ‘wegen
- Mov aa, a a
Mov Ds, PA * : Snihabge ola fepment_ pegarer
_ Mov _® (050) . 62 Get Contenty of 05004 AR
mv CK, SA Copy the some Gatenty tain tA
- dp Logout) ost’ Ddal byte sil te Contente of
o6oeH _
Ramey a oe -
Mov ox, [060] . Store the xegult in DA
MO Lejouh| Di! Che the ewegu) in ofooh
ALT Shp =
a ¢ “\scation 2Seh Gre mved po the 9A eegisber
wing, mov md ¥ruChon The some Acta it _mwed
__dlts bp the CK wegitter. fer ania cele.
yere Oy, he two cphon Of Shown:
@) mov ex, gk! APS the contents ef BX will be
L some Yeseel after freckhon
‘of mw 3x, soent
4) Mov Cx, feos) | trove
0500 he register (x
(s44gT)
(START
[s7re TEU Th ooh
CT.7 i