题目内容

已知程序执行前,(30H)=40H,(40H)=10H,(10H)=32H,(P1)=EFH,试写出执行以下程序后,有关单元的内容。MOVR0,#30HMOVA,@R0MOVR1,AMOVB,@R1MOV@R1,P1MOVP2,P1MOV10H,#20HMOV30H,10H执行程序后,有关单元的内容为:(30H)=,(40H)=。

查看答案
更多问题

程序填空:求符号函数Y=SGN(X)+1当X>0Y=0当X=0-1当X<0其中X存放在30H单元内,函数值Y存放在31H单元中,请将正确指令填入空格内。ORG1000HMOVA,30HJNBACC.7,MOVA,#0FFHSJMPCOMPPOST:MOVA,#1COMP:MOV31H,AEND

已知(R0)=20H,(20H)=36H,(21H)=17H,(36H)=34H,执行过程如下:MOVA,@R0;(A)=MOVR0,A;(R0)=MOVA,@R0ADDA,21H;(A)=ORLA,#21H;(A)=RLA;(A)=MOVR2,ARET

编写查找最大值的程序,假设内部RAM30H开始的10个无符号数,找出其中最大值放MAX中。请程序填空。ORG0200HMOVA,@R0MOVR7,#09HLOOP:INCR0MOV40H,@R0CJNEA,40H,CHKCHK:JNCLOOP1MOVA,@R0MOVMAX,AEND

已知(A)=83H,(R0)=17H,(17H)=34H,执行下列程序段后(A)=,(R0)=,(17H)=。ANLA,#17HORL17H,AXRLA,@R0CPLA

答案查题题库