计算机导论作业2Word文档下载推荐.docx
- 文档编号:5772487
- 上传时间:2023-05-05
- 格式:DOCX
- 页数:18
- 大小:19.90KB
计算机导论作业2Word文档下载推荐.docx
《计算机导论作业2Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《计算机导论作业2Word文档下载推荐.docx(18页珍藏版)》请在冰点文库上搜索。
35B1wouldcausethecontentsofregister5tobeplacedinthememorycellwhose
addressisB1.
40RSMOVEthebitpatternfoundinregisterRtoregisterS.
40A4wouldcausethecontentsofregisterAtobecopiedintoregister4.
5RSTADDthebitpatternsinregistersSandTasthoughtheyweretwo’scomplementrepresentations
andleavetheresultinregisterR.
5726wouldcausethebinaryvaluesinregisters2and6tobeaddedandthesumplaced
inregister7.
6RSTADDthebitpatternsinregistersSandTasthoughtheyrepresentedvaluesinfloating-point
notationandleavethefloating-pointresultinregisterR.
634Ewouldcausethevaluesinregisters4andEtobeaddedasfloating-pointvalues
andtheresulttobeplacedinregister3.
7RSTORthebitpatternsinregistersSandTandplacetheresultinregisterR.
7CB4wouldcausetheresultofORingthecontentsofregistersBand4tobeplacedin
registerC.
8RSTANDthebitpatternsinregisterSandTandplacetheresultinregisterR.
8045wouldcausetheresultofANDingthecontentsofregisters4and5tobeplacedin
register0.
9RSTEXCLUSIVEORthebitpatternsinregistersSandTandplacetheresultinregisterR.
95F3wouldcausetheresultofEXCLUSIVEORingthecontentsofregistersFand3to
beplacedinregister5.
AR0XROTATEthebitpatterninregisterRonebittotherightXtimes.Eachtimeplacethebitthat
startedatthelow-orderendatthehigh-orderend.
A403wouldcausethecontentsofregister4toberotated3bitstotherightinacircular
fashion.
BRXYJUMPtotheinstructionlocatedinthememorycellataddressXYifthebitpatterninregisterR
isequaltothebitpatterninregisternumber0.Otherwise,continuewiththenormalsequenceof
execution.(ThejumpisimplementedbycopyingXYintotheprogramcounterduringtheexecute
phase.)
B43Cwouldfirstcomparethecontentsofregister4withthecontentsofregister0.If
thetwowereequal,thepattern3Cwouldbeplacedintheprogramcountersothatthenext
instructionexecutedwouldbetheonelocatedatthatmemoryaddress.Otherwise,nothingwould
bedoneandprogramexecutionwouldcontinueinitsnormalsequence.
C000HALTexecution.
C000wouldcauseprogramexecutiontostop.
MultipleChoiceQuestions
1.WhichofthefollowingisnotcontainedinaCPU?
A.InstructionregisterB.Programcounter
C.General-purposeregisterD.Memorycell
ANSWER:
D
2.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)changesthecontentsofamemorycell?
A.10ABB.20ABC.30ABD.40AB
C
3.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)places00000000inregisterA?
A.1A00B.2A00C.3A00D.200A
B
4.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)places00000000inregister5?
A.25FFB.9555C.15FFD.8555
5.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)willnotchangethecontentsofregister5?
A.1508B.2508C.A503D.A508
6.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)isequivalenttorequestingthatregisterAberotatedtotheleftbythreebits?
A.AA05B.AA03C.AA08D.AA01
A
7.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)changesthecontentsofregister7?
A.4077B.4075C.4057D.37BB
8.Whichofthefollowingisnotaformofparallelprocessing?
A.SISDB.MIMDC.SIMD
9.InwhichofthefollowinglocationsisinformationmostreadilyavailableformanipulationbytheCPU?
A.General-purposeregistersB.MainmemoryC.Massstorage
10.Thebusinacomputerisanexampleofwhichformofcommunication?
A.SerialB.ParallelC.NeitherAnorB
11.Whichofthefollowinginstructionsdoesnotfallinthecategoryofarithmetic/logicinstructions?
A.ROTATEB.ADDC.ORD.JUMP
12.Whichofthefollowinginstructionsfallsinthecategoryofdatatransferinstructions?
A.LOADB.ANDC.ROTATED.JUMP
13.Whichofthefollowingisnotacomponentofamachineinstruction?
A.Op-codeB.PortC.Operand
14.WhichofthefollowingisnotanactivityperformedentirelywithinaCPU?
A.FetchinstructionsB.PerformBooleanoperations
C.PerformarithmeticoperationsD.Movedatabetweenregisters
15.WhatmaskinregisterFwouldcausetheinstruction8AAF(refertothelanguagedescriptiontable)toputa0inthemostsignificantbitofregisterAwithoutdisturbingtheotherbits?
A.11111110B.00000001C.10000000D.011111111
16.WhatmaskinregisterFwouldcausetheinstruction7AAF(refertothelanguagedescriptiontable)toputa1inthemostsignificantbitofregisterAwithoutdisturbingtheotherbits?
17.Whichofthefollowinginstructionswillnotproducethesameresultastheothertwo?
(Refertothelanguagedescriptiontable.)
A.A502B.A506C.A50A
18.Whichofthefollowinginstructionswillnotproducethesameresultastheothertwo?
A.9555B.2500C.1500
19.IfregisterAcontainedthepattern00000000,whichofthefollowinginstructionscouldalterthecontentsofregister0?
A.700AB.800AC.900A
20.Whichofthefollowinginstructions(asdescribedinthelanguagedescriptiontable)isessentiallyanunconditionaljump?
A.B033B.B133C.B233D.B333
Fill-in-the-blank/Short-answerQuestions
1.Ifregister0containsthepattern01101001beforeexecutingtheinstructionA003(seethelanguagedescriptiontable),whatbitpatternwillbeinregister0aftertheinstructionisexecuted?
____________
00101101
2.Ifregisters5and6containthebitpatterns5Aand58respectively,whatbitpatternwillbeinregister4afterexecutingtheinstruction5456?
(Seelanguagedescriptiontable.)
B2
3.Ifregisters5and6containthebitpatterns5Aand58respectively,whatbitpatternwillbeinregister4afterexecutingtheinstruction6456?
(Seelanguagedescriptiontableandassumeafloating-pointformatinwhichthemostsignificantbitisthesignbit,thenextthreebitsrepresenttheexponentfieldinexcessnotation,andthelastfourbitsrepresentthemantissa.)
69
4.Writetheanswertoeachofthefollowinglogicproblems.
101010101010101010101010
AND11110000OR11110000XOR11110000
10100000,11111010,and01011010
5.SupposeregistersEandFcontainedAAandCC,respectively.WhatbitpatternwouldbeinregisterDafterexecutingeachofthefollowinginstructions(seelanguagedescriptiontable)?
A.7DEF__________
B.8DEF__________
C.9DEF__________
A.EEB.88C.66
6.Ifregisters0,1,and2containthepatternsA5,A5,andB7,respectively,whichofthefollowinginstructionswillresultinajumptolocationAA?
A.B0AAB.B1AAC.B2AA
AandB
7.Ifregisters0and1containthepatternsB5andF0,respectively,whatwillbeinregister1afterexecutingeachofthefollowinginstructions?
A.A102__________
B.4001__________
C.4010__________
A.3CB.B5C.F0
8.SupposetheinstructionB1A5(asdescribedinthelanguagedescriptiontable)isstoredinmainmemoryataddressesE0andE1.Moreover,supposeregisters0and1bothcontainthepatternFF.WhatvaluewillbeintheCPU’sprogramcounterimmediatelyafterexecutingtheinstruction?
A5
9.SupposetheinstructionB1A5(asdescribedinthelanguagedescriptiontable)isstoredinmainmemoryataddressesE0andE1.Moreover,supposeregisters0and1containthepatternsFFand75,respectively.WhatvaluewillbeintheCPU’sprogramcounterimmediatelyafterexecutingtheinstruction?
E2
10.Encodeeachofthefollowingcommandsintermsofthemachinelanguagedescribedinthelanguagedescriptiontable.
A.__________LOADregister7withthevalueA5.
B.__________LOADregister7withthecontentsofthememorycellataddressA5.
C.__________ADDthecontentsofregisters5and6asthoughttheywerevaluesintwo’s
complementnotationandleavetheresultinregister4.
D.__________ORthecontentsofregisters5and6,leavingtheresultinregister4.
A.27A5B.17A5C.5456(or5465)D.7456(or7465)
11.Encodeeachofthefollowingcommandsintermsofthemachinelanguagedescribedinthelanguagedescriptiontable.
A.__________ROTATEthecontentsofregister7totheright5bi
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 导论 作业