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

Subject Microprocessor and Assembly Language
NU Year Set: 3.(c) Marks: 4 Year: 2011
  • BP - base pointer:
    • Primarily used to access parameters passed via the stack
    • Offset address relative to SS

 

  • SP - stack pointer:
    • Always points to top item on the stack
    • Offset address relative to SS
    • Always points to word (byte at even address)
    • An empty stack will had SP = FFFEh
Login to post your comment.