求每一步的执行后的结果,求单片机大神教一下!
求每一步的执行后的结果,求单片机大神教一下!1.已知程序执行前有A=02H,SP=52H,(51H)=FFH,(52H)=FFH。程序执行后POPDPHPOPDPLMOV...
求每一步的执行后的结果,求单片机大神教一下!1.已知程序执行前有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 A
MOV A, B
INC A
MOVC A, @A+DPTR
PUSH A
RET
ORG 4000H
DB 10H, 80H, 30H, 50H, 30H, 50H
请问:A=( ),SP=( ),(51H)=( ),
(52H)=( ),PC=( ) 展开
POP DPH
POP DPL
MOV DPTR, #4000H
RL A
MOV B, A
MOVC A, @A+DPTR
PUSH A
MOV A, B
INC A
MOVC A, @A+DPTR
PUSH A
RET
ORG 4000H
DB 10H, 80H, 30H, 50H, 30H, 50H
请问:A=( ),SP=( ),(51H)=( ),
(52H)=( ),PC=( ) 展开
展开全部
希望采纳
POP DPH //出栈,DPH=FFH,SP=51H
POP DPL //出栈,DPH=FFH,SP=50H
MOV DPTR, #4000H
RL A //A=04H
MOV B, A //B=04H
MOVC A, @A+DPTR //A=30H
PUSH A //SP=51,(51H)=30H
MOV A, B //A=04H
INC A //A=05H
MOVC A, @A+DPTR //A=50H
PUSH A //SP=52H,(52H)=50H
RET
ORG 4000H
DB 10H, 80H, 30H, 50H, 30H, 50H
请问:A=( ),SP=( ),(51H)=( ),
(52H)=( ),PC=无法确定,道行太浅
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询