wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8051 Addressing Modes: Immediate, Register, and Direct

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which 8051 addressing mode uses a '#' symbol to indicate that the operand is a constant embedded in the instruction?

a)

Indirect addressing with '#'

b)

Direct addressing with '#'

c)

Register addressing without '#'

d)

Immediate addressing with '#'

2.

In 8051 register addressing, which statement is correct about allowed transfers?

a)

A to R0–R7 is allowed

b)

R0 to R7 memory is allowed

c)

RAM-to-RAM register move allowed

d)

Any register pair move allowed

3.

In the 8051 microcontroller, which addressing mode allows access to the internal RAM directly?

a)

Indirect addressing mode

b)

Immediate addressing mode

c)

Direct addressing mode

d)

Register addressing mode

4.

Which instruction correctly loads accumulator A with the immediate hexadecimal value 35H?

a)

MOV #A,35H

b)

MOV 35H,#A

c)

MOV A,35H

d)

MOV A,#35H

5.

When accessing sequential data in memory, which addressing mode is optimal for modifying the pointer during each iteration and why?

a)

Indirect addressing, address held in register

b)

Direct addressing, address literal in code

c)

Immediate addressing, data constant in code

d)

Register addressing, source is accumulator

6.

@ is used to indicate that the register is giving__________________________?

a)

an address

b)

an immediate value

c)

starting address of an array

d)

reset value

7.

In the instruction MOVX A,@DPTR, what memory and addressing are involved?

a)

External RAM via 16-bit DPTR

b)

Internal RAM via R0 pointer

c)

Code memory via A+DPTR

d)

Internal ROM via direct byte

8.

What takes place by the instruction MOVX A, @R0 or @R1 ?

a)

To read data from external RAM

b)

To write data to external RAM

c)

To initialize external RAM

d)

To delete data from external RAM

9.

Which instruction type is used to fetch from a look-up table stored in code memory using a base+index?

a)

MOV with direct byte

b)

MOVC with A+DPTR

c)

PUSH with DPTR

d)

MOVX with DPTR

10.

Given DPTR=0400H and A=05H, what address is read by MOVC A,@A+DPTR?

a)

0005H in code memory

b)

0405H in code memory

c)

0005H in internal RAM

d)

0405H in external RAM