How SP and BP registers are used to access stack segment?

Subject Microprocessor and Assembly Language
NU Year Set: 2.(d) Marks: 3 Year: 2010

SP (Stack Pointer):

This is stack pointer register pointing to program stack. It is used in conjunction with SS for accessing the stack segment.

 

BP (Base Pointer):

This is base pointer register pointing to data in stack segment. Unlike SP, we can use BP to access data in the other segments.

Login to post your comment.