单片机原理与运用-第三章答案.pdf
资料收集于网络如有侵权请联系网站删除谢谢精品文档第三章单片机的汇编语言与程序设计习题1.设内部 RAM 中 59H 单元的内容为 50H,写出当执行下列程序段后寄存器A,R0和内部 RAM 中 50H,51H 单元的内容为何值?MOV A,59H MOV R0,A MOV A,#00H MOV R0,A MOV A,#25H MOV 51H,A MOV 52H,#70H 解:MOV A,59H;A=50H MOV R0,A;RO=50H MOV A,#00H;A=00H MOV R0,A;50H=00H MOV A,#25H;A=25H MOV 51H,A;51H=25H MOV 52H,#70H;52H=70H 所以:A=25H R0=50H;50H=00H 51H=25H 2.请选用合适的指令对P0 口内容做修改(例如使P0.0P0.3不变,P0.4P0.7为0)。解:MOV A,P0 ANL A,0fh Mov P0,A 资料收集于网络如有侵权请联系网站删除谢谢精品文档3.试问外部数据存储器和程序存储器可以用哪些指令来实现?举例说明。解:访问外部数据存储器指令有:MOVX DPTR,A MOVX DPTR,#0100H MOV DPTR,A MOVX A,DPTR MOVX DPTR,#0200H MOV A,DPTR MOVX A,Ri MOVX A,R0 MOVX Ri,A MOVX RI,A 访问程序存储器指令有:MOVX A,A+PC MOVX A,A+DPTR 4.设堆栈指针 SP中的内容为 60H,内部 RAM中 30H和 31H 单元的内容分别为24H 和 10H,执行下列程序段后,61H,62H,30H,31H,DPTR及 SP中的内容将有何变化?PUSH 30H PUSH 31H POP DPL POP DPH MOV 30H,#00H MOV 31H,#0FFH 解:PUSH 30H;61H=24H PUSH 31H;62=10H SP=62H POP DPL;DPL=10H POP DPH;DPH=24H SP=60H MOV 30H,#00H;30H=00H MOV 31H,#0FFH;31H=0FFH 文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档5.设(A)=40H,(R1)=23H,(40H)=05H。执行下列两条指令后,累加器A 和 R1以及内部 RAM中 40H 单元的内容各位何值?XCH A,R1 XCHD A,R1 解:XCH A,R1;A=23H R1=40H XCHD A,R1;A=25H 40H=03H 6.两个四位 BCD码数相加,被加数和加数分别存于50H,51H 和 52H,53H单元中(次序为千位、百位在低地址中),和数存在 54H,55H 和 56H 中(56H 用来存放最高位的进位,试编写加法程序)解:ORG 0000H LJMP START ORG 0100H START:MOV A,53H ADD A,51H DA A MOV 55H,A MOV A,52H ADDC A,50H DA A MOV 56H,C SJMP$END 7.设(A)=01010101B,(R5)=10101010B,分别写出执行ANL A,R5;ORL A,文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档R5:XRL A,R5 指令后结果。解:ANL A,R5;00000000B ORL A,R5;11111111B XRL A,R5;11111111 8.设指令 SJMPrel=7EH,并假设该指令存放在2114H和 2115H单元中。当该指令执行后,程序将跳转到何地址?解:2116H+60H=2176H 9.简述转移指令 AJMP addr11,SJMP rel,LJMP addr16 及 JMP A+DRTR 的应用场合。解:AJMP addr11 为 2K 字节范围内的无条件转跳指令,把程序的执行转移到指定的地址。SJMP rel 是无条件转跳指令,执行时在PC加 2 后,把指令中补码形式的偏移量加到 PC上,并计算出转向目标地址。转向的目标地址可以在这条指令前128字节到后 127 字节之间LJMP addr16 执行这条指令时把指令的第二字节和第三字节分别装入PC的高位和地位字节中无条件地转向指定地址。转移目标地址可以在64K程序存储器地址空间的任何地方,不影响任何标志。JMP A+DRTR 指令的功能是把累加器中8位无符号数与数据指针DRTR 中的16 位数相加,将结果作为下条指令地址送入PC,利用这条指令能实现程序的散转。10.试分析下列程序段,当程序执行后,位地址 00H,01H 中的内容将为何值?P1口的 8 条 I/O 线为何状态?CLR C MOV A,#66H JC LOOP1 文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档CPL C SETB 01H LOOP:ORL C,ACC.0 JB ACC.2,LOOP2 CLR 00H LOOP2:MOV P1,A 解:CLR C;CY=0 MOV A,#66H;A=66H JC LOOP1 CPL C;CY=1 SETB 01H;20H.1=1 LOOP:ORL C,ACC.0;CY=1 JB ACC.2,LOOP2;CLR 00H LOOP2:MOV P1,A;P1=01100110B SJMP$20H.0=0 20H.1=1 P1=66H11.的特查指令表,写出下列两条指令的机器码,并比较一下机器码中操作数排列次序点。MOV 78H,80H MOV 78H,#80H解:直接寻址单元传送到直接寻址单元的机器码是第二个操作数在前,而立即数传送到直接地址单元是第一个操作数在前,次序正好相反。文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档12.手工汇编下列程序段ORG 873BH AAA EQU 851AH QQQ MOV A,35H CLR C SUBB A,#0AH JC QQ16 MOV A,36H SUBB A,#0AH JC QQ15 AJMP AAA QQ15:MOV 35H,#00H QQ16:JNB 02H,QQ17 MOV R6,39H DEC R6 SJMP QQ18 QQ17:MOV R6,39H INC 39H QQ18:CLR 05H LJMP 8500H END 13.若有两个无符号数x,y 分别存放于内部存储器50H,51H单元中,试编写一个程序实现 x*10+y,结果存入 52H,53H两个单元中。文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档解:ORG 0000H SJMP START ORG 0030H START:MOV A,50H MOV B,#10 MUL AB;(50H)10积的高、低字节分别在B、A 中 ADD A,51H MOV 53H,A;积的低字节加(51H)其和存放在 53H中 MOV A,#00H ADDC A,B MOV 52H,A;积的高字节加进位位存放在52H 中。SJMP$END 14 从内部存储器 20H 单元开始,有 30 个数据。试编一个程序,把其中的正数,负数分别送 51H 和 71H 开始的存储单元,并分别记下正数负数的个数送50H 和70H 单元。解:ORG 0000H SJMP START ORG 0030H START:MOV 1EH,#51H;正数存放首地址 51H存于 1EH单元MOV 1FH,#71H;负数存放首地址71H存于 1EH单元MOV R0,#20H;建立取数(源操作数)的地址指针MOV R2,#30;预置数据长度MOV 50H,#00H;正数个数统计单元清零MOV 70H,#00H;负数个数统计单元清零LOOP:MOV A,R0;取数文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3文档编码:CV9V9W3E6G8 HW3Q4C4X6I1 ZU5S6P6J1F3资料收集于网络如有侵权请联系网站删除谢谢精品文档JB ACC.7,NEG;是负数转 NEG处理POST:MOV R1,1EH;是正数,将暂存的地址送R1(间址寄存器)MOV R1,A;将正数入存INC 50H;正数个数加 1 INC 1EH;正数暂存地址加1 修正LOOP1:INC R0;取数地址加 1 修正DJNZ R2,LOOP;计数长度减 1,不等于零,继续循环统计SJMP$;结束NEG:MOV R1,1FH;是负数,将暂存的地址送R1(间址寄存器)MOV R1,A;将正数入存IN