Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 181190 of 261 Questions
Page 19 of 27
Q181❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Similar to how multi-word addition with carry is performed using ADC, which assembly instruction performs multi-word subtraction with borrow?
💻 assembly Snippet
sub ax, cx
sbb bx, dx
  1. A.SWB
  2. B.SBB
  3. C.SBC
  4. D.SBBC
Q182❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Is the statement 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 dest_greater
  1. A.True
  2. B.False
Q183❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088 real mode architecture, conditional jump instructions can only execute which type of jump?
💻 assembly Snippet
jz short_label
  1. A.Far jump
  2. B.Short jump
  3. C.Near jump
  4. D.All of the given options
Q184📝 Short Q📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Write down any two program control instructions used in 8088 assembly language and briefly state their purpose.
💻 assembly Snippet
jmp target_label
call my_subroutine
Q185📝 Short Q📑 Lec 3Medium🔁RepeatedHigh-Yield💡Conceptual
What is the exact execution behavior of the assembly instruction sequence 'MOV CX, 0xFFFF' followed by 'LOOP $'?
💻 assembly Snippet
mov cx, 0xffff
loop $
Q186❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When the divisor operand of a DIV instruction is 16 bits wide, where is the implied 32-bit dividend stored prior to division?
💻 assembly Snippet
div bx
  1. A.AX register
  2. B.The concatenation of DX and AX (DX:AX)
  3. C.The concatenation of ES and AX (ES:AX)
  4. D.The concatenation of DS and BX (DS:BX)
Q187❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend is divided by an 8-bit divisor using the DIV instruction, where must the 16-bit dividend be placed prior to execution?
💻 assembly Snippet
mov ax, 100
mov bl, 5
div bl
  1. A.AX register
  2. B.BX register
  3. C.CX register
  4. D.DX register
Q188❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 32-bit dividend stored in register pair DX:AX is divided by a 16-bit divisor using the 'DIV' instruction, what is the bit-width of the resulting quotient stored in register AX?
💻 assembly Snippet
div bx
  1. A.32 bits
  2. B.16 bits
  3. C.8 bits
  4. D.4 bits
Q189❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend in register AX is divided by an 8-bit divisor using the 'DIV' instruction, in which register is the quotient stored?
💻 assembly Snippet
div bl
  1. A.AX
  2. B.AL
  3. C.AH
  4. D.DX
Q190❓ MCQ📑 Lec 3Hard🔁RepeatedHigh-Yield💡Conceptual
If register AX contains decimal -2 (0xFFFE in 16-bit two's complement) and register BX contains decimal 2 (0x0002), what will happen upon executing 'CMP AX, BX' followed by 'JA label'?
💻 assembly Snippet
mov ax, -2
mov bx, 2
cmp ax, bx
ja label
  1. A.Jump will be taken
  2. B.Zero flag will be set
  3. C.ZF will contain value -4
  4. D.Jump will not be taken