Answer:
1.Ans:In this experiment module we learned stack memory addressing mode.in this we learned about stack operations, data store and restore data.we learned about LIFO(Last input first output) how data store or removed from the memory, Push PoP instructions.Stack segment has 16 bit register.stack pointer(SP) always points to the top of the stack.It defined as where the location of data.stack has 2 operations(PUSH And POP).PUSH saves a word in stack and always increment SP and POP retrives a Word from the stack and always increment SP.In PUSH operations stack point stay in top and after push operation offset address decrease 2 value and in POP operation offset address increase 2 time value in stack segment. PUSH saves a word and for example PUSH CX will save the current value of cx in the address pointed by SP and POP CX gets tge word from the address pointed by SP.
2.Ans:we use stack segment in Program.stack segment register holds the starting address of the stack segment in the memory. Stack segment is call stack of currently executed Program. It has 16-bit register so we can save more data in this.To input more data we use stack segment.stack segmentation allows the use of 16 bit registers to give an addressing capability, without segmentation it would require 20 bit register. It only access to the stack is the top element. It can anything added or removed from the stack.A stack is a data structure that store data in such a way that the last piece of data stored.