1.I have Learned in this Experiment:-
#Stack Operation: A stack is a simple last-in, first-out (LIFO) data structure. ... So a stack supports two basic operations: push and pop. Some stacks also provide additional operations: size (the number of data elements currently on the stack) and peek (look at the top element without removing it). The primary stack operations.
#Stack-Memory Addressing: In this mode, operand is at the top of the stack. For example: ADD , this instruction will POP top two items from the stack, add them, and will then PUSH the result to the top of the stack.
2.We Use stack segment because, The stack segment register (SS) is usually used to store information about the memory segment that stores the call stack of currently executed program. SP points to current stack top. By default, the stack grows downward in memory, so newer values are placed at lower memory addresses. To push a value to the stack, the PUSH instruction is used. To pop a value from the stack, the POP instruction is used.
#Stack Segment: The stack is a segment of memory where data like your local variables and function calls get added and/or removed in a last-in-first-out (LIFO) manner. When you compile a program, the compiler enters through the main function and a stack frame is created on the stack.