1.What was your learning from this experiment module?
I learn how to work stack operations and how data are stored and removed from stack memory. The stack memory is maintained by 2 registers. They are Stack Pointer and Stack Segment. Data are stored into the stack with a push instruction and removed with a pop instruction. The Call instruction also uses the stack to hold the return addresses and a RET instruction to remove the return address from the stack. We also learn about LIFO (Last in, First out) memory that describes the way that data are stored and removed from the memory. I learn all about from this experiment.
2.why we use stack segment?
We use stack segment. Because stack holds the data temporarily and stores the return addresses used by the procedures. Stack is a segment where some register values can be stored so that it is not lost. We use 4 register. They are (AX,BX.CX,DX).Stack store any data temporarily by using PUSH instruction and restore the data by using POP instruction.