指令MOV ACC, #01H 和MOV A, #01H执行的功能一样。
举一反三
- 指令MOV ACC, #01H 和MOV A, #01H中,ACC和A的寻址方式一样。
- MOV SP,#60H MOV A,#01H;(A)= , MOV B,#02H;(B)= , PUSH ACC;(SP)= , PUSH B;(SP)= , POP ACC;(A)= , POP B;(B)= 。
- 若(10H)=0FFH,(11H)=00H,(12H)=0FFH,(13H)=00H,写出每一步指令运行结果 MOV A,10H(A)= , ANL A,#01H(A)= , MOV A,11H(A)= , ORL A,#01H(A)= , MOV A,12H(A)= , XRL A,#01H(A)= , MOV A,13H(A)= , XRL A,#0AA(A)= ,
- 已知(A)=01H,(SP)=50H,(DPTR)=100H。则下述程序段执行后 (A)、(B)、(SP)、(DPH)、Acc.7的结果为( )。 RL A MOV B,A MOVC A,@A+DPTR PUSH Acc SJMP $ ORG 100H DB 10H,20H,30H A: 30H,2,51H,01H,0 B: 20H,02H,4FH,10H,0 C: 30H,02H,51H,01H,1 D: 20H,4,50H,00H,1
- 以下程序的执行是在RAM指定区间查找数据( )。START:MOV R0,#30H MOV R2,#21HLOOP:MOV A,@R0 CJNE A,#0AAH,NEXT MOV 51H,#01H AJMP EXITNEXT:INC R0 DJNZ R2,LOOP MOV 51H,#00HEXIT: SJMP $ END A: 0AAH B: 30H C: 20H D: 01H