Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MRO-FINALS

Total questions: 23

Worksheet time: 23mins

Name
Class
Date
1.

What is the value of P2.2 if the value of P2.0 is 0 and P2.1 is 1?

MOV C, P2.0

ORL C, P2.1

MOV P2.2, C

(a)  

2.

What is the value of P2.2 if the value of P2.0 is 1 and P2.1 is 1?

MOV C, P2.0

XRL C, P2.1

MOV P2.2, C

(a)  

3.

What is the value of P2.2 if the value of P2.0 is 0 and P2.1 is 1?

MOV C, P2.0

CPL C

ANL C, P2.1

MOV P2.2, C

(a)  

4.

What is the instruction to turn off the Port 2 bit 3?

(a)  

5.

What is the instruction to turn on the Port 1 bit 2

(a)  

6.

What is the instruction to turn on the Port 0 bit 5?

(a)  

7.

CLR C is a 2-byte instruction and CLR CY is a 1-byte instruction

(a)  

8.

MOV A, #0F4h

RR A

RR A

RR A

RR A

SWAP A

(In hexadecimal)

(a)  

9.

MOV A, #0F4h

CLR C

RRC A

RRC A

RL A

RLC A

SWAP A

(in hexadecimal)

(a)  

10.

MOV A, #5CH

MOV R0, #0B6H

RL A

RL A

ANL A, R0

SWAP A

(in hexadecimal)

(a)  

11.

MOV A, #3AH

CLR C

SWAP A

RRC A

ORL A, #oCCh

RR A

Type the value of register A in hexadecimal after the execution of all the instruction:

(a)  

12.

MOV A, #3AH

CLR C

SWAP A

RRC A

ORL A, #oCCh

RR A

Type the value of register C:

(a)  

13.

MOV A, #3AH

CLR C

SWAP A

RRC A

ORL A, #oCCh

RR A

Type the value of register A in hexadecimal after the execution of the instruction:

ORL A, #0CCh

(a)  

14.

Which instruction can be used to rotate a register one bit position to the right?

(a)  

15.

What is the value of the A register in hexadecimal format from the 4th instruction?

MOV A, #0F4h

CLR C

RRC A

RRC A

RL A

RLC A

SWAP A

(a)  

16.

What is the final value of the A register in hexadecimal format from the given instruction set?

MOV A, #0F4h

CLR C

RRC A

RRC A

RL A

RLC A

SWAP A



(a)  

17.

What is the final value of the carry flag from the given instruction set?

MOV A, #0F4h

CLR C

RRC A

RRC A

RL A

RLC A

SWAP A

(a)  

18.

What is the final value of register A, in hexadecimal format, in the following code?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)  

19.

What is the final value of carry flag in the following code?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)  

20.

What is the value of register 0, in hexadecimal format, in the following code?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)  

21.

What is the value of register A, in hexadecimal format, in the 5th instruction?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)  

22.

What is the value of register A, in hexadecimal format, in the 6th instruction?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)  

23.

What is the final value of register A, in binary format (you need to type b as the suffix of your answer), in the following code?

MOV A, #3AH

MOV R0, #FFH

CLR C

SWAP A

RRC A

XRL A, R0

RR A

(a)