Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 81 – 90 of 222 Questions
Page 9 of 23
Q81❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which instruction decrements the Stack Pointer (`SP`) by 2 and then transfers a word from the source operand onto the top of the stack?
Q82❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
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.
Q83❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
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.
Q84❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To access subroutine parameters passed on the stack, an immediate (though destructive) method is to __________ them off the stack into general registers.
Q85❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In 8088 real mode, the 20-bit physical memory address of the stack is calculated using which register combination?
Q86❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
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?
Q87❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
True or False: The hardware/assembly operations for placing items onto the stack and removing them from the stack are called `PUSH` and `RET`.
Q88❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
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.
Q89❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In 8088 real mode, the 20-bit physical memory address of the stack top is computed using which segment and register pair?
Q90❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
After the execution of a simple near `RET` instruction in a subroutine, how is the Stack Pointer (`SP`) modified?