WorksheetsMRO-FINALS
Total questions: 23
Worksheet time: 23mins
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)
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)
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)
What is the instruction to turn off the Port 2 bit 3?
(a)
What is the instruction to turn on the Port 1 bit 2
(a)
What is the instruction to turn on the Port 0 bit 5?
(a)
CLR C is a 2-byte instruction and CLR CY is a 1-byte instruction
(a)
MOV A, #0F4h
RR A
RR A
RR A
RR A
SWAP A
(In hexadecimal)
(a)
MOV A, #0F4h
CLR C
RRC A
RRC A
RL A
RLC A
SWAP A
(in hexadecimal)
(a)
MOV A, #5CH
MOV R0, #0B6H
RL A
RL A
ANL A, R0
SWAP A
(in hexadecimal)
(a)
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)
MOV A, #3AH
CLR C
SWAP A
RRC A
ORL A, #oCCh
RR A
Type the value of register C:
(a)
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)
Which instruction can be used to rotate a register one bit position to the right?
(a)
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)
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)
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)
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)
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)
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)
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)
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)
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)
