Which bitwise logical instruction is primarily used as a bit-masking operation to check whether specific bits of a number are set (1) or cleared (0)?
Ch 06: Parameter Passing and Stack Frames
Detailed analysis of stack frame construction (push bp; mov bp, sp), accessing parameters via [bp+4], [bp+6], allocating local automatic variables via [bp-2], and stack cleanup conventions (cdecl vs stdcall).
216 Questions216 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 51 โ 60 of 216 Questions
Page 6 of 22
Which bitwise logical instruction is used as a masking operation to selectively invert (toggle) specific bits of an operand?
Bitwise masking operations in assembly language are fundamentally classified into four core functional categories: selective bit __________.
During a logical or arithmetic Bitwise Left-Shift Operation (`SHL` / `SAL`), what happens to the Most Significant Bit (leftmost bit)?
Suppose the decimal number 35 is shifted binary 2 bits to the left (`35 << 2`). What is its new decimal value?
Write any two program control / flow control instructions used in 16-bit x86 assembly language.
Explain the function and mechanism of the Rotate Right (`ROR`) assembly instruction.
If `AX` contains decimal -2 (0xFFFE in 16-bit hex) and `BX` contains decimal +2 (0x0002 in hex), what happens after executing `CMP AX, BX` followed by `JA label`?
What is the key functional difference between the `SHR` (Shift Logical Right) and `SAR` (Shift Arithmetic Right) instructions?
If register `BL` contains decimal 5 (`00000101b`), what value will `BL` hold after performing a single bitwise right shift (`SHR BL, 1`)?