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

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

by SAKIUL ISLAM (181-33-632) -
Number of replies: 0

1.What was your learning from this experiment module?

(i)We have learned to save any data temporarily using stack.

(ii)We have learned about the PUSH instruction which is used to save the data in a stack.

(iii)We have learned about the POP instruction which is used to restore the data from a stack.

(iv)We have learned about the LIFO system which is the way how data are save and restored from the memory.

(v)We have learned about the stack pointer and the offset address of the data. 

2.why do we use stack segment?

Our main motto of using the stack segment to reuse the registers repeatedly. Because we have only four registers(AX,BX,CX,DX) in the assembly language. By using the stack we can easily store any data in the stack temporarily using PUSH instruction and restore the data using POP instruction.