When comparing two operands (`CMP DEST, SRC`), if the result sets the Zero Flag (`ZF = 1`), what does this indicate about the operands?
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 81 โ 90 of 216 Questions
Page 9 of 22
True or False: In x86 assembly language, `SHL` (Shift Logical Left) and `SAL` (Shift Arithmetic Left) are identical in operation and assemble to the exact same machine opcodes.
True or False: The `JA` (Jump if Above) instruction CANNOT be taken after a `CMP` instruction if the unsigned destination operand is greater than the source operand.
In 8088/8086 assembly language architecture, conditional jump instructions (such as `JZ`, `JNZ`, `JC`, `JNC`) can perform only which type of jump?
True or False: In 8088/8086 assembly language, a Near Jump allows transferring execution to any target offset within the same 64 KB code segment.
In 8088/8086 assembly language architecture, conditional jump instructions (such as `JZ`, `JNZ`, `JC`, `JNC`) are restricted to which type of branch displacement?
If register `AX` contains decimal `-2` (`0xFFFE`) and register `BX` contains decimal `2` (`0x0002`), what occurs upon executing `CMP AX, BX` followed by `JA label`?
How many explicit operands does the `ADC` (Add with Carry) instruction accept in x86 assembly language?
Explain the difference between `SHR` (Shift Logical Right) and `SAR` (Shift Arithmetic Right) instructions in x86 assembly language.
In x86 assembly language, explain the operation and mechanics of the `ADC` (Add with Carry) instruction, and how it is used for multi-word addition.