资源描述:
《个发光管闪时次右移亮( light emitting diode flashes to right shift light)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、8个发光管闪时次右移亮(8lightemittingdiodeflashestorightshiftlight)Thirdchapters3-1choicequestions1,MOVXA,@DPTRinstructionsinthesourceoperandaddressingmodeis(B)(A)registeraddressing(B)registerindirectaddressing(C)directaddressing(D)immediateaddressing2.ORG0003HLJMP2000HORG000BHLJMP3000H,whenCPUresponds
2、toexternalinterrupt0,thevalueofPCis(B)(A)0003H(B)2000H(C)000BH(D)3000H3.performthePUSHACCinstruction,andtheMCS-51completestheoperation(A)(A)SP+1SP(ACC)(SP)(B)(ACC)(SP)SP-1SP(B)(C)SP-1SP(ACC)(SP)(D)(ACC)()(SP)SP+1SP4,LCALLinstructionopcodeaddressis2000H,afterthecompletionofthesubroutinetoretu
3、rninstructions,PC=(D)(C)2000H(B)2001H(C)2002H(D)2003HAfter5,51executeMOVA,#08H,PSWisset(D)(A)(A)C(B)F0(C)OV(D)P6.ThefollowinginstructionsetstheworkingregistersoftheMCS-51into3zones(B)(A)MOVPSW,#13H(B)MOVPSW,#18H(B)SETBPSW.4CLRPSW.3(d)SETBPSW.3CLRPSW.47,whenexecutingMOVXA,DPTRinstruction,thec
4、ontrolsignalproducedbyMCS-51is(C)(D)/PSEN(B)ALE(C)/RD(D)/WR8,MOVC,#00Haddressingmodeis(A)(A)bitaddressing(B)directaddressing(C)immediateaddressing(D)registeraddressing9,ORG0000HAJMP0040HORG0040HMOVSP,#00H,whentheleftprogramisexecuted,thevalueofPCis(C)(A)0040H(B)0041H(C)0042H(D)0043H10.Therea
5、doperationofprogrammemorycanonlybeused(D)(A)MOVinstruction(B)PUSHinstruction(C)MOVXinstruction(D)MOVCinstruction3-2judgmentquestions.Themaximumnegativejumpdistanceoftherelativetransfercommandof4.MCS-51is127B.(wrong)128B5.whentheMCS-51poweronreset,thestackpointerSP=00H.(SP=07H)(wrong)6.CallSu
6、broutineinstructions(suchas:CALL)andreturninstructions(e.g.:RET)arerelatedtothestack,buthavenothingtodowiththePC.Thereturnof(error)subsequenceisalsorelatedtoPC(PCintostackandoutstack)7.MOV@R1,#80H(wrong)5,INCDPTR(pairs)6,CLRR0(error)instructionsystemdoesnotexist.7,MOV@R1,#80H(pairs)8,ANLR1,#
7、0FH(wrong)9,ADDCA,C(wrong)10,XORP1,#31H(pairs)3-3simpleanswer1brieflydescribetheinstructionformatofMCS-51assemblylanguage.Answer:MCS-51assemblylanguageformatisasfollows:[][mnemoniclabel:theoperationcodeoperand1]2][[operandoperands]3][annotationlabe