Ad Code

Stack pointer (SP) changes after every PUSH or POP

How value of Stack pointer (SP) changes after every PUSH or POP instructions?

Whenever an element is pushed on the stack SP is decremented by two and when we pop from it, it increments by 2 as in case of decrementing stack. A decrementing stack moves from higher addresses to lower addresses as elements are added in it
Reactions

Post a Comment

0 Comments