例:
MOV SP, #18H ; (SP)=?
MOV A, #30H ; (A)=?
MOV DPTR, #1000H ; (DPTR)=?
PUSH A ; (SP)=? (19H)=?
PUSH DPH ; (SP)=? (1AH)=?
PUSH DPL ; (SP)=? (1BH)=?
POP DPL ; (DPL)=? (SP)=?
POP DPH ; (DPH)=? (SP)=、
POP A ; (A)=? (SP)=?
MOV SP, #18H ; (SP)=?
MOV A, #30H ; (A)=?
MOV DPTR, #1000H ; (DPTR)=?
PUSH A ; (SP)=? (19H)=?
PUSH DPH ; (SP)=? (1AH)=?
PUSH DPL ; (SP)=? (1BH)=?
POP DPL ; (DPL)=? (SP)=?
POP DPH ; (DPH)=? (SP)=、
POP A ; (A)=? (SP)=?
举一反三
- 运行前:(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)= ______ 。
- 如果(DPTR)=507BH,(SP)=32H,(30H)=50H,(31H)=5FH,(32H)=3CH,则执行下列指令后,(DPH)=(),(DPL)=(),(SP)=()。 POP DPH POP DPL POP SP
- 已知程序执行前有(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=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