1.What was your learning from this experiment module? 2.why we use stack segment?

1.What was your learning from this experiment module? 2.why we use stack segment?

by Md Nayeem Hossain -
Number of replies: 0

1.  I have learned stack memory addressing mode from this module and how stack memory store data by Last in, First out system. I  have learned how to store data in stack by push instruction and how to restore data by pop instruction . Then i have learned the change of current position of SP when i push a data in stack and pop out a data from stack. Then i have learned the offset address changes (increase or decrees by 2 position)  in stack when using push and pop instruction & Last I have learned how to interchange data of two register using the push and pop instruction.


2. We use stack segment to store multiple data in one register.
For example if we have 3242H in AX and we need to store another data 1111H in AX  then first we need to store the data of  AX(3242H) into stack memory using Push ax then we can store 1111H into AX again.
and we can use 3242H whenever we need by using pop instruction.