Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 121130 of 216 Questions
Page 13 of 22
Q121❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In assembly language bit manipulation, masking operations are categorized into four primary selective bit operations:
💻 assembly Snippet
; 1. Clear: AND ax, mask_with_zeros
; 2. Set:   OR  ax, mask_with_ones
; 3. Invert:XOR ax, mask_with_ones
; 4. Test:  AND/TEST ax, mask_with_ones
  1. A.Selective Bit Clearing, Setting, Inversion, and Testing
  2. B.Selective Bit Addition, Subtraction, Multiplication, and Division
  3. C.Selective Bit Shifting, Rotating, Moving, and Swapping
  4. D.Selective Bit Masking, Pushing, Popping, and Calling
Q122❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Suppose register `AL` contains the decimal value 5. After performing two left shift operations (`SHL AL, 2` / `SAL AL, 2`), what is the resulting decimal value in `AL`?
💻 assembly Snippet
mov al, 5   ; AL = 5 (00000101b)
shl al, 2   ; AL = 20 (00010100b)
  1. A.5
  2. B.10
  3. C.15
  4. D.20
Q123❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 assembly language control flow, what are the three primary types of jump instructions based on target displacement distance?
💻 assembly Snippet
; Short Jump: -128 to +127 bytes
; Near Jump:  16-bit offset in same segment
; Far Jump:   32-bit pointer (CS:IP) across segments
  1. A.short, near
  2. B.short, near, far
  3. C.near, far
  4. D.short, far
Q124📝 Short Q📑 Lec 6EasyHigh-Yield💡Conceptual
Define a 'short jump' in x86 assembly language control flow.
💻 assembly Snippet
; Example: jmp short my_label (Opcode: EB, Operand: 8-bit signed displacement)
Q125❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
After the execution of the `SAR` (Shift Arithmetic Right) instruction, how is the Most Significant Bit (MSB) affected?
💻 assembly Snippet
mov al, 0x80 ; AL = 10000000b (-128)
sar al, 1    ; AL = 11000000b (-64, MSB retains 1)
  1. A.The msb is replaced by a 0
  2. B.The msb is replaced by 1
  3. C.The msb retains its original value
  4. D.The msb is replaced by the value of CF
Q126❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Unlike short and near jumps which specify relative offsets, a 'Far' jump instruction is not position-relative but is __________.
💻 assembly Snippet
jmp 0x1000:0x0020 ; Absolute Far Jump specifying new CS and IP
  1. A.memory dependent
  2. B.Absolute
  3. C.temporary
  4. D.indirect
Q127📝 Short Q📑 Lec 6MediumHigh-Yield💡Conceptual
Why is it necessary to provide both segment and offset addresses when executing a FAR jump instruction in x86 assembly language?
💻 assembly Snippet
jmp 0x2000:0x0010 ; Far Jump: Loads CS = 0x2000 and IP = 0x0010
Q128🧠 Long Problem📑 Lec 6HardHigh-Yield💡Conceptual
Explain how multi-word extended shifting (32-bit left shift) is performed on a 16-bit x86 processor architecture, providing example assembly instructions and explaining the role of the Carry Flag (`CF`).
💻 assembly Snippet
num1: dd 40000
shl word [num1], 1   ; Shift lower word, MSB -> CF
rcl word [num1+2], 1 ; Rotate upper word through CF, CF -> LSB
Q129🧠 Long Problem📑 Lec 6HardHigh-Yield💡Conceptual🌟Starred
Write an 8088 assembly language subroutine named 'ConvertBinaryToDecimal' that receives the starting address of an ASCII binary string (e.g., '11011' or '1001') via the stack. The function must calculate its decimal equivalent and print the decimal value on the screen. Ensure proper stack frame management and register preservation.
💻 assembly Snippet
push string_addr
call ConvertBinaryToDecimal
Q130❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In primitive form, block processing instructions operate on ________ of memory at one time.
💻 assembly Snippet
movsb
  1. A.Whole block
  2. B.A single cell
  3. C.A single bit
  4. D.Whole segment