Back to the 2024 paper

Module 2: The 8051 Architecture

20247m

Write short notes on: Stack & Stack Pointer

Worked SolutionAI Assisted

Short Notes: Stack & Stack Pointer

  • Stack: LIFO area in internal RAM (default 08H upward), holds return addresses, register context, data via PUSH/POP.
  • SP (81H): Points to top. Reset 07H. PUSH → SP++ then store; POP → load then SP--. Relocate: MOV SP,#60H to avoid overlap with register banks/bit area. Depth limited by RAM (max 128-7FH). Overflow collides SFRs.

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.