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 Razia Sultana Retu -
Number of replies: 0

1.We learned from this experiment module -

stack memory store data by LIFO(Last in ,first out) system.

Data are stored into the stack with a PUSH instruction and removed with a POP instruction.

Each offset address change has difference of 2. 

 stack pint can store 16 bit

PUSH will move the data to the top and the offset will continue to decrease by 2.

POP will move the data to the bottom and the offset will continue to increase by 2.


2.Stack segment serves as temporary storage  for resister during call and interrupts .As like

 if we want to store a data into before stored resister then we move it into stack memory using  PUSH  instruction. Whenever we need the 1st data ,we can call is by using POP instruction.