When two 16-bit word parameters are pushed onto the stack prior to invoking a Near subroutine that executes the standard prologue ('push bp' / 'mov bp, sp'), at which relative BP offset is the first parameter (pushed first) located?
Ch 15: 32-Bit Protected Mode Architecture
Covers transitioning from 16-bit real mode to 32-bit protected mode, setting the PE bit in CR0, constructing 8-byte segment descriptors (base, limit, access rights), and hardware memory protection rings (Ring 0 vs Ring 3).
173 Questions173 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 91 โ 100 of 173 Questions
Page 10 of 18
Compare Callee Stack Cleanup (e.g., using 'RET n') and Caller Stack Cleanup (e.g., using 'ADD SP, n' after CALL) when passing parameters via the stack.
Explain why the 'RET n' instruction adds the immediate value 'n' to the Stack Pointer (SP) AFTER popping the return address into the Instruction Pointer (IP), rather than before.
Explain how local variables are allocated and deallocated on the stack within a subroutine frame, and contrast them with global variables.
Explain how local variables are allocated on the stack in 8088 assembly language using the 'sub sp, n' instruction. Why must the byte allocation count be an even number, and how are local variables accessed relative to the Base Pointer (BP)?
In a standard x86 subroutine stack frame initialized with 'push bp', 'mov bp, sp', and 'sub sp, 4', distinguish between the relative BP offsets used to access parameters versus local variables.
The standard PC serial port (COM port) hardware interface uses which type of pin connector?
Which software layer provides a higher, more logical abstraction of the storage medium (files and directories) compared to raw sector/track BIOS access?
DOS INT 21h Service 01h reads a character from standard input with keyboard echo. Into which CPU register is the ASCII character code returned?
In a DOS Device Driver Header Device Attribute Word, which bit determines whether the driver represents a Character Device or a Block Device?