1.What was your learning from this experiment module? 2.why we use stack segment?
In this experiment module we lear about stack sagment. Now I am write about it:
a.Stack holds the data temporarily and stores the return addresses used by the procedures.
b• The stack memory is an LIFO (Last in, First out) memory, that describes the way that data are stored and removed from the memory.
c• Data are stored into the stack with a PUSH instruction and removed with a POP instruction.
d• The CALL instruction also uses the stack to hold the return addresses for procedures and a RET instruction to remove the return address from the stack.
e• The stack memory is maintained by 2 registers: Stack Pointer and Stack Segment.
2. Ans: We use state sagment because of store data to push instruction and restore the data to use pop instruction.