Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Mastering 8086 Assembly Instructions

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What instruction is used to move data from one register to another in 8086?

a)

MOV

b)

SWAP

c)

TRANSFER

d)

COPY

2.

Which instruction adds two operands in 8086 assembly?

a)

DIV

b)

SUB

c)

MUL

d)

ADD

3.

What is the purpose of the MOV instruction in 8086?

a)

To compare two values and set flags accordingly.

b)

To jump to a different instruction in the code.

c)

The purpose of the MOV instruction in 8086 is to transfer data between registers and memory.

d)

To perform arithmetic operations on data.

4.

How do you perform subtraction in 8086 assembly?

a)

Use the MOV instruction to copy values instead of subtracting.

b)

Perform subtraction using the DIV instruction.

c)

Use the ADD instruction with the syntax ADD destination, source.

d)

Use the SUB instruction with the syntax SUB destination, source.

5.

What instruction would you use to perform a bitwise AND operation?

a)

|

b)

^

c)

&

d)

~

6.

Which instruction is used to compare two values in 8086?

a)

ADD

b)

MUL

c)

CMP

d)

SUB

7.

What is the function of the INC instruction in 8086?

a)

The INC instruction multiplies a value by 2.

b)

The INC instruction divides a value by 2.

c)

The INC instruction increments a value by 1.

d)

The INC instruction decrements a value by 1.

8.

How do you implement a loop in 8086 assembly?

a)

Utilize the ADD instruction to repeat a block of code.

b)

Implement a loop by using the MOV instruction with a counter.

c)

Use the JMP instruction to create an infinite loop.

d)

Use the LOOP instruction with a counter in the CX register.

9.

What instruction is used to jump to a specific label unconditionally?

a)

JMP

b)

NOP

c)

CALL

d)

RET

10.

What is the purpose of the DEC instruction in 8086?

a)

To reset a value to zero.

b)

To multiply a value by 2.

c)

To decrement a value by 1.

d)

To increment a value by 1.

11.

Which instruction would you use to perform a bitwise OR operation?

a)

XOR

b)

NOT

c)

OR

d)

AND

12.

How do you implement a conditional branch in 8086?

a)

Use INT to handle interrupts for conditional execution.

b)

Use CMP to compare values and conditional jump instructions (JE, JNE, etc.) for branching.

c)

Implement loops using the LOOP instruction instead of branches.

d)

Use ADD to perform arithmetic operations for branching.

13.

What does the JZ instruction do in 8086 assembly?

a)

The JZ instruction jumps if the Carry Flag is set.

b)

The JZ instruction sets the Zero Flag to 1.

c)

The JZ instruction jumps to a specified address if the Zero Flag is set.

d)

The JZ instruction always jumps to the next instruction.

14.

Which instruction is used to multiply two numbers in 8086?

a)

DIV

b)

ADD

c)

MUL

d)

SUB

15.

What is the function of the DIV instruction in 8086?

a)

The DIV instruction multiplies two numbers.

b)

The DIV instruction performs unsigned division.

c)

The DIV instruction adds two numbers.

d)

The DIV instruction performs signed division.

16.

How do you perform a bitwise XOR operation in 8086?

a)

Use the AND instruction with the syntax: AND destination, source.

b)

Use the NOT instruction to invert the bits of the destination.

c)

Use the XOR instruction with the syntax: XOR destination, source.

d)

Perform a bitwise OR operation using the syntax: OR destination, source.

17.

What is the purpose of the LOOP instruction in 8086?

a)

The purpose of the LOOP instruction in 8086 is to create loops by decrementing the CX register and jumping to a specified label if CX is not zero.

b)

To perform arithmetic operations on the AX register.

c)

To initialize the DX register with a value.

d)

To store data in memory locations.

18.

Which instruction is used to push a value onto the stack?

a)

PUSH

b)

LOAD

c)

POP

d)

STORE

19.

What does the CALL instruction do in 8086 assembly?

a)

The CALL instruction loads a new value into the accumulator.

b)

The CALL instruction saves the return address and jumps to a subroutine.

c)

The CALL instruction performs a bitwise operation on two registers.

d)

The CALL instruction terminates the program execution.

20.

How do you return from a procedure in 8086?

a)

Use the 'CALL' instruction to return from a procedure in 8086.

b)

Use the 'EXIT' instruction to return from a procedure in 8086.

c)

Use the 'JMP' instruction to exit a procedure in 8086.

d)

Use the 'RET' instruction to return from a procedure in 8086.