Answers

Question and Answer:

  Home  Advanced Embedded Systems

⟩ Explain issues related to stack and bank 1?

☛ Bank 1 uses the same RAM space as the stack.

☛ Stack pointer is incremented or decremented according to the push or pop instruction.

☛ If the stack pointer is decremented it uses locations 7,6,5… which belongs to register bank 0.

☛ If a given program uses R1 then stack is provided new memory location.

☛ The push instruction may also take stack to location 0 i.e.it will run out of space.

 206 views

More Questions for you: