Back to the 2021 paper

Module 2: The 8051 Architecture

20212m

Which operation is performed by stack pointer during its incremental phase?
(i) Push
(ii) Pop
(iii) Return
(iv) All of the above

Worked SolutionAI Assisted

Answer: (i) Push

Explanation: In 8051, stack grows upward. PUSH increments SP first, then stores byte: SP←SP+1; [SP]←src. POP decrements after read: dst←[SP]; SP←SP-1. So incremental phase corresponds to PUSH. RET/POP decrement SP.

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.