To preserve register state across subroutines, the standard convention is to use __________ operations to save caller register values on the stack and recover them prior to returning.
Ch 05: Subroutines and Stack Architecture
Examines stack memory allocation, downward growth of the stack, return address pushing, caller vs callee register preservation, and avoiding stack misalignment bugs.
222 Questions222 MCQs0 Short Questions0 Long Questions
SEMESTER PASS
CS401 - Computer Architecture and Assembly Language Programming Examination Practice
Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.
Showing 81 โ 90 of 222 Questions
Page 9 of 23
The `POP` instruction transfers the word at the top of the stack (pointed to by `SS:SP`) to the destination operand and then __________ `SP` by two to point to the new top of stack.
Which instruction decrements the Stack Pointer (`SP`) by 2 and then transfers a word from the source operand onto the top of the stack?
To access subroutine parameters passed on the stack, an immediate (though destructive) method is to __________ them off the stack into general registers.
In 8088 real mode, the 20-bit physical memory address of the stack is calculated using which register combination?
In 8088 architecture, what is the maximum number of word parameters a subroutine can receive via registers when all general-purpose registers (AX, BX, CX, DX, SI, DI, BP) are utilized?
True or False: The hardware/assembly operations for placing items onto the stack and removing them from the stack are called `PUSH` and `RET`.
True or False: The `PUSH` instruction increments the Stack Pointer (`SP`) by two and then transfers a word from the source operand onto the top of the stack.
In 8088 real mode, the 20-bit physical memory address of the stack top is computed using which segment and register pair?
After the execution of a simple near `RET` instruction in a subroutine, how is the Stack Pointer (`SP`) modified?