1.What was your learning from this experiment module? 2.why we use stack segment?

1.What was your learning from this experiment module? 2.why we use stack segment?

by Omar Faruk Babu -
Number of replies: 0


1. In this experiment I have learnt stack memory addressing mode. And also learnt how stack memory store data by Last in, First out system. I have learnt how to store data in stack by push instruction and how to restore data by pop instruction . Then i have learned the change of current position of SP when i push a data in stack and pop out a data from stack.

2. We use stack segment to store multiple data in one register.It's a stack implementation of memory locations. As the stack is a segment , it is a contiguous array of memory locations. Thats why we use stack segment.