• 2022-10-30
    试分析如下程序并说明其功能(将每一步指令执行结果写出)。 MOV A,#17H MOV B,#68H MUL AB MOV 30H,A MOV 31H,B
  • MOV A,#17H;A←#17H MOV B,#68H;B←#68H MUL AB;A×B→BA B=#9 A=#58H MOV 30H,A;30H←A = #58H MOV 31H,B;31H←B = #9 实现两个8位数(17H与68H)的乘法运算,并将乘积958H的高8位和低8位分别存入片内RAM 31H和30H单元

    内容

    • 0

      根据下列程序段运行情况,将运行结果和指令分别补充完整。 (1)( );(A)=10H ( );(B)=10H ( );(A)=20H MOV 23H,A;(23H)=20H ( );(A)=21H MOV 24H,A;(24H)=21H INC A ;(A)=22H ( );(25H)= 22H (2)MOV A,#50H;(A)=( )H MOV R0,A;(R0)=( )H MOV @R0,#30H;(50H)=( )H ADD A,@R0;(A)=( )H MOVX @R0,A;(50H)=( )H

    • 1

      指出下列指令的本质区别。 MOV A,30H MOV A,#30H MOV 31H,R0 MOV 31H,@R0

    • 2

      若(R1)=30H,(A)=40H,(30H)=60H,(40H)=08H。 试分析执行下列程序段后上述各单元内容的变化。 MOV A,@R1 MOV @R1,40H MOV 40H,A MOV R1,#7FH (R1)=();(A)=();(30H)=();(40H)=()

    • 3

      执行下列程序段后,写出AX= 【12】 H。 MOV AL,87 MOV CL,4 MOV AH,AL AND AL,OFH OR AL,30H SHR AH,CL OR AH,30H

    • 4

      分析下列指令的执行结果,并写出每条指令的机器码。MOV A,#70H;MOV DPTR,#2030H;MOVX@DPTR,A;MOV 30H,#4OH;MOV RO,#30H;MOV A,@RO;