Which of the following selections contain instructions that jump to label L4 only if bits 1, 2, and 3 are all set in the DL register?

1. and dl,0Eh
cmp dl,0Eh
je L4

2. test dl,0Eh
jnz L4

3. and dl,07h
cmp dl,07h
je L4

4. and dl,0Eh
test dl,0Eh
jnz L4

Answer :

2) The instructions for making a jump to label L4 if bits 1, 2, and 3 are set in the DL register is 'test dl,0Eh' followed by 'jnz L4'.

The assembly language deals with the instructions required to make a conditional jump to label L4 based on the state of bits in the DL register. Each of the selections offered contains a different sequence of instructions to perform bitwise operations and jumps.

To determine which option is correct, we have to understand that we are looking for the situation where bits 1, 2, and 3 (binary 01110) are all set.

Option 2 is the correct set of instructions. It uses the test instruction to perform a bitwise AND operation between DL and 0Eh (binary 1110), without changing the value in DL.

If bits 1, 2, and 3 are all set, the zero flag will not be set, and the following jnz (jump if not zero) instruction will cause a jump to L4.