Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 8190 of 216 Questions
Page 9 of 22
Q81❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When comparing two operands (`CMP DEST, SRC`), if the result sets the Zero Flag (`ZF = 1`), what does this indicate about the operands?
💻 assembly Snippet
cmp ax, bx ; Performs AX - BX
; If AX == BX, ZF = 1
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.DEST < SRC
  4. D.DEST > SRC
Q82❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
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.
💻 assembly Snippet
shl ax, 1 ; Identical to sal ax, 1
sal ax, 1 ; Identical opcode and behavior as shl
  1. A.True
  2. B.False
Q83❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
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.
💻 assembly Snippet
cmp ax, bx
ja label ; Jumps if AX > BX (unsigned)
  1. A.true
  2. B.false
Q84❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088/8086 assembly language architecture, conditional jump instructions (such as `JZ`, `JNZ`, `JC`, `JNC`) can perform only which type of jump?
💻 assembly Snippet
jz short_label ; Short jump (-128 to +127 bytes displacement)
  1. A.Far
  2. B.short
  3. C.near
  4. D.all of the given
Q85❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
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.
💻 assembly Snippet
jmp near target_label ; Near jump within same 64KB CS segment
  1. A.TRUE
  2. B.FALSE
Q86❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088/8086 assembly language architecture, conditional jump instructions (such as `JZ`, `JNZ`, `JC`, `JNC`) are restricted to which type of branch displacement?
💻 assembly Snippet
jz short_label ; Short relative jump (-128 to +127 bytes)
  1. A.far
  2. B.near
  3. C.short
  4. D.all of the given
Q87❓ MCQ📑 Lec 6Medium🔁RepeatedHigh-Yield💡Conceptual
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`?
💻 assembly Snippet
mov ax, -2 ; AX = 0xFFFE (65534 unsigned)
mov bx, 2  ; BX = 0x0002 (2 unsigned)
cmp ax, bx ; Performs 0xFFFE - 0x0002 -> CF = 0, ZF = 0
ja  label  ; Jump IS taken because 65534 > 2
  1. A.Zero flag will set
  2. B.Jump will be taken
  3. C.ZF will contain value -4
  4. D.Jump will not be taken
Q88❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
How many explicit operands does the `ADC` (Add with Carry) instruction accept in x86 assembly language?
💻 assembly Snippet
adc ax, bx ; Destination = AX, Source = BX (2 operands)
  1. A.3
  2. B.0
  3. C.1
  4. D.2
Q89📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Explain the difference between `SHR` (Shift Logical Right) and `SAR` (Shift Arithmetic Right) instructions in x86 assembly language.
💻 assembly Snippet
shr ax, 1 ; Logical right shift (fills MSB with 0)
sar ax, 1 ; Arithmetic right shift (preserves MSB sign bit)
Q90📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
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.
💻 assembly Snippet
; Adding 32-bit integers (DX:AX) + (CX:BX)
add ax, bx ; Add lower 16 bits (sets CF if carry occurs)
adc dx, cx ; Add upper 16 bits plus Carry Flag (CF)