已知程序执行前有A=02H,SP=52H,(51H)=FFH,(52H)=FFH。 下述程序执行后: POP DPH POP DPL MOV DPTR,#4000H RL A MOV B,A MOVC A,@A+DPTR PUSH ACC MOV A,B DEC A MOVC A,@A+DPTR PUSH ACC RET ORG 4000H DB 10H,80H,30H,50H,30H,50H 请问:A=( ),SP=( ),(51H)=( ),(52H)=( ),(PC)= ( )。
举一反三
- 程序分析 已知程序执行前有A=02H,SP=52H,(51H)=FFH,(52H)=FFH。下述程序执行后:请问A=,SP=,(51H)=,(52H)=,PC=。 POP DPH POP DPL MOV DPTR,#4000H RL MOV B,A MOVC A,@A+DPTR PUSH A RET ORG 4000H DB 10H,80H,30H,50H,30H,50H
- 已知程序执行前有A = 02H,SP = 42H,(41H) = FFH,(42H) = FFH。下述程序执行后,(42H) =( )。 POP DPH POP DPL MOV DPTR,#3000H RL A MOV B,A MOVC A,@A+DPTR PUSH Acc MOV A,B INC A MOVC A,@A+DPTR PUSH Acc RET ORG 3000H DB 10H,80H,30H,80H,50H,80H
- 已知程序执行前有(A)=02H,(SP)=42H,(41H)=FFH,(42H)=FFH。 POP DPH POP DPL MOV DPTR,#3000H RL A MOV B,A MOVC A,@A+DPTR PUSH Acc MOV A,B INC A MOVC A,@A+DPTR PUSH Acc RET ORG 3000H DB 10H,80H,30H,80H,50H,80H 程序执行后, (A)=;(SP)=;(41H)=;(42H)=;PC=
- 已知(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
- 运行前:(2000H)=01H,(2003H)=05H,(DPTR)=3400H MOV SP,#32H MOV A,#03H PUSH DPH PUSH DPL MOV DPTR,#2000H MOVC A,@A+DPTR POP DPL POP DPH 程序运行后,结果为:(A)= ______ ,(DPTR)= ______ ,(SP)= ______ 。