What your understanding about Incrementing and Decrementing-00849
This subjective question is related to the book/course vu cs507 Information Systems. It can also be found in vu cs507 Mid Term Solved Past Paper No. 3.
Question 1: What's your understanding about Incrementing and Decrementing Stack?
Answer:
Whenever an element is pushed on the stack SP is decremented by two and whenever an element is popped on the stack SP is incremented by two.
A decrementing stack moves from higher addresses to lower addresses as elements are added in it while an incrementing stack moves from lower addresses to higher addresses as elements are added.
As the 8088 stack works on word sized elements. Single bytes cannot be pushed or popped from the stack.