Reflection of module 5

Reflection of module 5

by Jahid Hossain -
Number of replies: 0

1.What was your learning from this experiment module?

(1)Save any data temporarily using stack.

(2) The PUSH instruction which is used to save the data in a stack.

(3) The POP instruction which is used to restore the data from a stack.

(4) The LIFO system which is the way how data are save and restored from the memory.

(5) The stack pointer and the offset address of the data. 

2.why do we use stack segment?

Our main objective  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.