If AL=17H, CL=34H, SS=3000H and SP=FF45H. Analyse the following assembly code snippet. What is the value of SP after the following code executes?
PUSH AL
PUSH CL POP WORDPTR[ECX]
*)FF43H
*)FF44H
*)FF45H
*)FF46H
which one correct??
Answers
Answered by
0
After the execution of the code the value of SP = FF45H
In 8086 microprocessor , PUSH command decreases the value of SP register by 2 and then write a 16-bit data at that memory.
POP increases the value of SP by 2.
If SP = FF45H
then execution of first PUSH instruction , SP = FF43H
after executing the second PUSH instruction , SP = FF41H
then when the POP instruction will execute the value of SP will become equal to SP = FF43H
Therefore the value of SP will be FF43H.
Similar questions