Microprocessors and Interfacing Laboratory

Microprocessors and Interfacing Laboratory

by Sabbir ahmed Kafi -
Number of replies: 0

1 Ans:

I have Learned in this Experiment

The stack memory segment is an area of memory allotted for automatic variables. Automatic variables are allocated and de-allocated automatically when program flow enters and leaves the variable's scope. stack memory is allocated and de-allocated at the top of the stack using Last-In-First-Out 

2 Ans:

 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. To push a value to the stack the PUSH instruction is used.To pop a value from the stack the POP instruction is used.