Professional Documents
Culture Documents
تجميعات المعالجات1
تجميعات المعالجات1
2 out of 2 points
Assume A = 28H and B= 59H. After executing the ADD B instruction,
what
Will be content of AC flag and status of the Carry flag, Zero flag and
Parity flag?
Selected 28+59=81h
Answer: z=0
p=1
cr=0
Ac=1
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B
registers and places the result in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Selected Answer:
False
Correct Answer: True
Question 4
0.5 out of 0.5 points
ADC is used to add contents of register or memory with accumulator and carry flag
Selected Answer:
True
Correct Answer: True
Question 5
0.5 out of 0.5 points
Register D is temporary register.
Selected Answer:
True
Correct Answer: True
Question 6
0.5 out of 0.5 points
SUI 3EH is an ___________________ addressing instruction.
Selected Answer:
immidiate
Correct Answer:
immidiate
Question 7
0.5 out of 0.5 points
ADC M is used to add the contents of a specified memory along with the carry flag
to the contents of the accumulator.
Selected Answer:
True
Correct Answer: True
Question 8
0.5 out of 0.5 points
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A
will be 09H.
Selected Answer:
False
Correct Answer: False
Question 9
0 out of 0.5 points
If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C
will be 07H.
Selected Answer:
True
Correct Answer: False
Question 10
0.5 out of 0.5 points
Intel 8085 pins are divided into 6 types
Selected Answer:
True
Correct Answer: True
Question 11
0.5 out of 0.5 points
Register________________________________ is temporary register.
Selected Answer:
Both
Correct Answer:
Both
Question 12
0 out of 0.5 points
_______instruction adds the contents of specified register along with the carry flag.
Selected Answer:
Both
Correct Answer:
ADC r
Question 13
0.5 out of 0.5 points
If ALE is high it indicates that A7-A0 are address lines .
Selected Answer:
True
Correct Answer: True
Question 14
0 out of 0.5 points
The address bus of the 8085 microprocessor is _________________________ .
Selected Answer:
16 bit
Correct Answer:
Both
Question 15
0.5 out of 0.5 points
The sign flag is set to 1 if the result of an arithmetic or logic operation is Negative
Selected Answer:
True
Correct Answer: True
Question 16
1 out of 1 points
Write a sequence of instructions that will load EIH in the memory
location whose address is 1106H.
Question 1
0.5 out of 0.5 points
_______instruction adds the contents of specified register along with the carry flag.
Selected Answer:
ADC r
Correct Answer:
ADC r
Question 2
0.5 out of 0.5 points
"TRAP has highest priority followed by RST 7.5, RST 6.5, RST 5.5"
Selected Answer:
True
Correct Answer: True
Question 3
0.5 out of 0.5 points
"If the initial value in DC register pair is 1023H, then the instruction DCX D
decrements value of DE by 1 & stores 1022 in DE."
Selected Answer:
False
Correct Answer: False
Question 4
0 out of 0.5 points
"Before the execution of instruction ADC M, if Carry flag = 1, A=6h & Contents of M
are 08h what will be the contents of A?"
Selected Answer:
None
Correct Answer:
0Fh
estion 1
0.5 out of 1 points
if CY=1 & D7-D0 = 10100000.
What will be the values of :
Z, P, AC, S,
BITS D7 to D0
Response Feedback:
Sol:
D7 D0 = 11 01 0 0 0 0
CY=0
S, Z, P, AC are not affected
Question 2
0.5 out of 0.5 points
The PUSH instruction is used to push or store the contents of a register on stack.
Selected Answer:
False
Correct Answer: False
Question 3
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5. If D4= 1 RST 7.5 is set.
Selected Answer:
False
Correct Answer: False
Question 4
0.5 out of 0.5 points
"TRAP has highest priority followed by RST 7.5, RST 6.5, RST 5.5"
Selected Answer:
True
Correct Answer: True
Question 5
0.5 out of 0.5 points
"RP return if sign flag is not set S =0 , MSB bit = 0"
Selected Answer:
True
Correct Answer: True
Question 6
0 out of 0.5 points
The address bus of the 8085 microprocessor is _________________________ .
Selected Answer:
16 bit
Correct Answer:
Both
Question 7
0.5 out of 0.5 points
The signal _____________is used to insert a RST (Restart) instruction or call
instruction through external Hardware.
Selected Answer:
INTA
Correct Answer:
INTA
Question 8
0.5 out of 0.5 points
_____________________ is a non maskable interrupt
Selected Answer:
TRAP
Correct Answer:
TRAP
Question 9
0.5 out of 0.5 points
POP _________________contents of given register pair.
Selected Answer:
Retrives
Correct Answer:
Retrives
Question 10
0.5 out of 0.5 points
CPO call if parity flag is set P =0 even Parity
Selected Answer:
False
Correct Answer: False
Question 11
0.5 out of 0.5 points
"RP return if sign flag is not set S =0 , LSB bit = 0"
Selected Answer:
False
Correct Answer: False
Question 12
0.5 out of 0.5 points
Once stack location is defined data storage begins from memory location whose
address is one less than address in the SP register pair.
Selected Answer:
True
Correct Answer: True
Question 13
0.5 out of 0.5 points
In_____________________the data transfer is possible between accumulator A register
and I/O devices .
Selected Answer:
I/O mapped I/O
Correct Answer:
I/O mapped I/O
Question 14
0.5 out of 0.5 points
RPE return instruction
Selected Answer:
both
Correct Answer:
both
Question 15
0.5 out of 0.5 points
The instruction POP H transfers the contents of memory pointed by SP to L register
and the contents of memory pointed by SP+1 to H register.
Selected Answer:
True
Correct Answer: True
Question 16
1 out of 1 points
Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST
6.5. [1 Marks]
MVI A, 10H; Load bit pattern to enable RST 7.5, 6.5 and disable 5.5
00001010=0Ah
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
Selected Answer:
set
Correct Answer:
set
Assume A = 28H and B= 59H. After executing the ADD B instruction, what
Will be content of AC flag and status of the Carry flag, Zero flag and Parity
flag?
zero flag=0
parity flag= 0
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B
registers and places the result in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Response P=0
Feedback:
AC=1
Question 2
1 out of 1 points
STA 1211H
HLT
Correct Answer:
Question 3
0.5 out of 0.5 points
Selected Answer:
False
Correct Answer: False
Question 4
0.5 out of 0.5 points
Selected Answer:
immidiate
Correct Answer:
immidiate
Question 5
0 out of 0.5 points
A8 to A15 signal lines are bidirectional and used for higher order address of a 16
bit address.
Selected Answer:
True
Question 6
0.5 out of 0.5 points
Selected Answer:
True
Question 7
0.5 out of 0.5 points
word length
Correct Answer:
word length
Question 8
0.5 out of 0.5 points
ADC is used to add contents of register or memory with accumulator and carry
flag
Selected Answer:
True
Question 9
0.5 out of 0.5 points
Selected Answer:
False
Question 10
0 out of 0.5 points
Selected Answer:
16 bit
Correct Answer:
Both
Question 11
0.5 out of 0.5 points
"While performing an arithmetic operation like addition, one of the operands is
automatically assumed to be in A"
Selected Answer:
True
Question 12
0.5 out of 0.5 points
Selected Answer:
False
Question 13
0.5 out of 0.5 points
Selected Answer:
Both
Correct Answer:
Both
Question 14
0 out of 0.5 points
"Before the execution of instruction ADC M, if Carry flag = 0, A=6h & Contents of
M are 08h what will be the contents of A?"
Selected Answer:
None
Correct Answer:
0Eh
Question 15
0.5 out of 0.5 points
Selected Answer:
True
Question 16
0.5 out of 0.5 points
ADC M is used to add the contents of a specified memory to the contents of the
accumulator.
Selected Answer:
False
Write a program to enable interrupts RST 7.5, RST 6.5, and RST
5.5. [1 Marks]
Bit D3 = 1 in the accumulator makes the instruction SIM functional. The bits D2,
D1and D0 are all equal to zero and this enables the interrupts 7.5, 6.5 and 5.5.
Correct Answer:
EI 00001000=08
MVI 08H
SIM
HLT
Question 2
0.5 out of 0.5 points
RET Inserts the two byte from the top two locations of stack in PC and
increments the SP by 1.
Selected Answer:
False
Question 3
0 out of 0.5 points
Selected Answer:
16 bit
Correct Answer:
Both
Question 4
0.5 out of 0.5 points
Vectoed
Correct Answer:
Vectoed
Question 5
0.5 out of 0.5 points
Selected Answer:
INTA
Correct Answer:
INTA
Question 6
0.5 out of 0.5 points
Selected Answer:
True
Question 7
0.5 out of 0.5 points
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be
effective."
Selected Answer:
False
Correct Answer: False
Question 8
0.5 out of 0.5 points
Selected Answer:
PUSH
Correct Answer:
PUSH
Question 9
0.5 out of 0.5 points
Any general purpose register can be used for data transfer between I/O device
and microprocessor.
Selected Answer:
False
Question 10
0.5 out of 0.5 points
Selected Answer:
2006
Correct Answer:
2006
Question 11
0 out of 0.5 points
"IF BC=2014 , POP B transfers the contents of memory pointed by SP+1 to B
registerand the contents of memory pointed by SP to C register."
Selected Answer:
False
Question 12
0.5 out of 0.5 points
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using
_________ instruction"
Selected Answer:
EI
Correct Answer:
EI
Question 13
0 out of 0.5 points
Selected Answer:
push
Correct Answer:
both
Question 14
0.5 out of 0.5 points
Selected Answer:
TRAP
Correct Answer:
TRAP
Question 15
0.5 out of 0.5 points
The registers are saved and retrieved on a Last In First Out(LIFO) basis. This
means the register pair that is pushed in last must be popped out first.
Selected Answer:
True
Question 16
1 out of 1 points
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Correct Answer:
Sol:
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Question 17
0.25 out of 1 points
Z, P, AC, S,
BITS D7 to D0
CY=0
Z,P,AC,S
NOT EFFECTED.
Correct Answer:
Sol:
D7 D0 = 10000001
CY=1
Response Feedback:
Sol:
D7 D0 = 11100000
CY=1
S, Z, P, AC are not affecte
If A = 1001 0111 And if 8 bit data = 0001 1111 Then ANI 0FH results in A = _____________ in the A
register.
Selected Answer:
1001 0111
Correct Answer:
0000 0111
Question 2
0 out of 0.5 points
Selected Answer:
True
Question 3
0.5 out of 0.5 points
If A is 05H then after the execution of instruction ADI 37H the 8 bit data 37H is
added to 05H and the result 3CH is stored in the accumulator
Selected Answer:
True
Question 4
0.5 out of 0.5 points
INR C Increments the content of C register by 1 and the new value is stored in C
register.
Selected Answer:
True
Selected Answer:
"MOV R,M"
Correct Answer:
"MOV R,M"
Question 2
0.5 out of 0.5 points
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using
_________ instruction"
Selected Answer:
EI
Correct Answer:
EI
Question 3
0.5 out of 0.5 points
"While performing an arithmetic operation like addition, one of the operands is
automatically assumed to be in _____________ register"
Selected Answer:
Both
Correct Answer:
Both
Question 4
0.5 out of 0.5 points
DCR C Decrements the content of C register by 1 and the new value is stored in A
register.
Selected Answer:
False
Question 1
2 out of 2 points
carry flag= 0
zero flag = 0
parity flag = 1
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B
registers and places the result in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Question 2
0.5 out of 1 points
LXI D , 1060H
MOV H,D
HLT
Correct Answer:
LXI B,2050H
LXI D,2370H
LDAX B
MOV L,A
LDAX D
STAX B
MOV A,L
STAX D
HLT
Response Feedback: INCORRECT SOLUTION THAT IS WHY YOU SCORE 0.5 MARKS
Question 3
0.5 out of 0.5 points
ADC is used to add contents of register or memory with accumulator and carry
flag
Selected Answer:
True
Question 4
0.5 out of 0.5 points
Selected Answer:
False
Question 5
0.5 out of 0.5 points
Selected Answer:
True
Question 6
0.5 out of 0.5 points
ADC M is used to add the contents of a specified memory to the contents of the
accumulator.
Selected Answer:
False
Question 7
0.5 out of 0.5 points
Selected Answer:
False
Question 8
0.5 out of 0.5 points
Selected Answer:
False
Question 9
0 out of 0.5 points
"Before the execution of instruction ADC M, if Carry flag = 0, A=6h & Contents of
M are 08h what will be the contents of A?"
Selected Answer:
None
Correct Answer:
0Eh
Question 10
0.5 out of 0.5 points
Selected Answer:
immidiate
Correct Answer:
immidiate
Question 11
0 out of 0.5 points
"IO/M=1,S1=1,S0=0is_____________________________operation."
Selected Answer:
None
Correct Answer:
I/0 read
Question 12
0.5 out of 0.5 points
Selected Answer:
True
Question 13
0.5 out of 0.5 points
Selected Answer:
True
Question 14
0 out of 0.5 points
_______instruction adds the contents of specified register along with the carry
flag.
Selected Answer:
Both
Correct Answer:
ADC r
Question 15
0.5 out of 0.5 points
Selected Answer:
Both
Correct Answer:
Both
Question 16
0.5 out of 0.5 points
If A= 0AH and B= 03H then after the execution of instruction SUB B the content
of A will be 09H.
Selected Answer:
False
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
Sol:
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Question 2
0.5 out of 0.5 points
Selected Answer:
False
Question 3
0.5 out of 0.5 points
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective."
Selected Answer:
False
Question 4
0.5 out of 0.5 points
Any general purpose register can be used for data transfer between I/O device
and microprocessor.
Selected Answer:
False
Question 5
0 out of 0.5 points
Selected Answer:
False
Question 6
0.5 out of 0.5 points
Selected Answer:
Both
Correct Answer:
Both
Question 7
0.5 out of 0.5 points
Selected Answer:
True
Question 8
0.5 out of 0.5 points
The microprocessor cannot accept any interrupt request until interrupt enable
flipflop is reset again.
Selected Answer:
False
Question 9
0 out of 0.5 points
Selected Answer:
I/O devices
Correct Answer:
both
Question 10
0.5 out of 0.5 points
Selected Answer:
BC
Correct Answer:
BC
Question 11
0.5 out of 0.5 points
Once stack location is defined data storage begins from memory location
_____________________.
Selected Answer:
SP-1
Correct Answer:
SP-1
Question 12
0.5 out of 0.5 points
Selected Answer:
True
Question 13
0.5 out of 0.5 points
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be
effective."
Selected Answer:
False
Question 14
0.5 out of 0.5 points
"TRAP has highest priority followed by RST 7.5, RST 6.5, RST 5.5"
Selected Answer:
True
Question 15
0.5 out of 0.5 points
Selected Answer:
Vectoed
Correct Answer:
Vectoed
Question 16
0.5 out of 1 points
Z, P, AC, S,
BITS D7 to D0
so , CY = D0 = 0 , D7 = CY = 0
Correct
Answer:
Sol:
D7 D0 = 11100000
CY=0
Response
Feedback:
Sol:
D7 D0 = 11100000
CY=0
S, Z, P, AC are not affected
Question 17
0.25 out of 1 points
Write a program to disable interrupts RST 7.5, RST 5.5, and enable RST
6.5. [1 Marks]
MVI A,02 ; Load bit pattern to enable RST 6.5 and disable 5.5 and 7.5
Correct Answer:
EI 00001101 0DH
MVI ODH
SIM
HLT
Response Feedback:
EI 00001101 0DH
MVI ODH
SIM
HLT
Question 1
0.5 out of 0.5 points
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be
effective."
Selected Answer:
False
Question 2
0.5 out of 0.5 points
Selected Answer:
non maskable
Correct Answer:
non maskable
Question 3
0.5 out of 0.5 points
All 16 address lines i.e. A0-A15 is used to address memory locations as well as
________________
Selected Answer:
Both
Correct Answer:
Both
Question 4
0.5 out of 0.5 points
Selected Answer:
"MOV R,M"
Correct Answer:
"MOV R,M"
Question 1
0.5 out of 0.5 points
DCR C Decrements the content of C register by 1 and the new value is stored in C
register.
Selected Answer:
True
Question 2
0.5 out of 0.5 points
If A= 0AH and B= 03H then after the execution of instruction SUB B the content
of A will be 09H.
Selected Answer:
False
Question 3
0.5 out of 0.5 points
Selected Answer:
implied
Correct Answer:
implied
Question 4
0 out of 0.5 points
Selected Answer:
True
2. _______Stores the contents of the accumulator in the memory whose address is specified in
the instruction itself. (STA)
3. All 16 address lines i.e. A0-A15 is used to address memory locations as well as _______.
(Both)
4. ______instruction adds the contents of specified register along with the carry flag. (ADC r)
5. All 16 address lines i.e. A0-A15 is used to address memory locations as well as _______.
(Both)
6. Once stack location is defined storing of data bytes begins at memory location whose
address is _____less than address in the SP register pair. (one)
7. RPE return instruction. (both)
8. The instruction PUSH B pushes the contents of ______ on to the stack. (BC)
9. Move from Memory to Register. ("MOV R,M")
10. IF A = 1001 0111 And if B = 1100 0101 Then ANA B results in A___________
(1000 0101)
11. The microprocessor has to respond to a __________interrupt request without
any delay. (non maskable)
12. In_________the data transfer is possible between accumulator A register and I/O
devices. (I/O mapped I/O)
13. If A =1001 0100 The CMA results in A ________. (None)
21. ADC is used to add contents of register or memory with accumulator and carry flag. (true)
22. If ALE is high it indicates that A7-A0 are address lines. (true)
24. ADC M is used to add the contents of a specified memory along with the carry flag to the
contents of the accumulator. (true)
26. If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C will
be 07H. (false)
27. The microprocessor cannot accept any interrupt request until interrupt enable flipflop
is reset again. (false)
28. Bit D4 is for controlling RST 7.5. (true)
29. The instruction POP H transfers the contents of memory pointed by SP to L register and
the contents of memory pointed by SP+1 to H register.(true)
30. The PUSH instruction is used to push or store the contents of a register on stack. (false)
31. RPO return if parity flag is set P =0 Odd Parity. (false)
32. "IF BC=2014 , POP B transfers the contents of memory pointed by SP+1 to B register
and the contents of memory pointed by SP to C register." (true)
33. RET Inserts the two byte from the top two locations of stack in PC and increments the
SP by 1. (false)
34. The instruction POP D transfers the contents of memory pointed by SP to E register and
the contents of memory pointed by SP+1 to D register. (true)
35. Conditional return instructions will cause the program counter to be loaded with the 2
byte address from the stack only if the specified condition is TRUE. (true)
36. "TRAP has highest priority followed by RST 7.5, RST 6.5, RST 5.5". (true)
37.
38.
2. Assume A = 28H and B= 59H. After executing the ADD B instruction, what
Will be content of AC flag and status of the Carry flag, Zero flag and Parity
flag?
The instruction ADD B adds the contents of A and B registers and places the result
in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
3. Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST 6.5
00001010=0Ah
4. Write a program to exchange the contents of two register pairs using PUSH and POP
instructions?
LXI SP, 2750H
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
5. if CY=1 & D7-D0 = 11000001. What will be the values of : Z, P, AC, S, BITS D7 to D0
& CY After execution of instruction RAR
D7 D0 = 11100000
CY=1
S, Z, P, AC are not affected
Question 1
Assume A = 28H and B= 59H. After executing the ADD B instruction, what
Will be content of AC flag and status of the Carry flag, Zero flag and Parity flag?
Selected
Answer:
A=F B = 59
AC =1
P=1
Z=0
cy = 1
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B registers and places
the result in A register.
A = 28 H = 0010 1000
1. The AC flag is 1.
Response cy=0
Feedback:
Question 2
Write a program to transfer one byte from a memory location whose address is 1070H to
another memory location whose address is 1211H.
STA 1211 H
HLT
Correct Answer:
Solution: LXI H, 2450H
MOV A, M
LXI H, 2550H
MOV M,A
HLT
Question 3
"While performing an arithmetic operation like addition, one of the operands is automatically
assumed to be in A"
Selected Answer:
True
Question 4
Selected Answer:
True
Question 5
Selected Answer:
False
Question 6
The address bus of the 8085 microprocessor is _________________________ .
Selected Answer:
Both
Correct Answer:
Both
Question 7
Selected Answer:
True
Question 8
If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C will be
07H.
Selected Answer:
True
Question 9
Selected Answer:
True
Question 10
BC is 18 bit register pair
Selected Answer:
False
Question 11
Selected Answer:
False
Selected Answer:
memory read
Correct Answer:
memory read
Question 13
If C= 0AH and B= 03H then after the execution of instruction ADD B the content of C will be
0DH.
Selected Answer:
True
Question 14
"If the initial value in DE register pair is 1023H, then the instruction DCX D decrements the
value of DE by 1 & stores 1022 in DE."
Selected Answer:
False
Question 15
Selected Answer:
STA
Correct Answer:
STA
Question 16
Selected Answer:
word length
Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST
6.5. [1 Marks]
SIM ; Set Interrupt Mask enable interrupts RST 7.5, RST 5.5, and disable RST
6.5
EI ; Enable Interrupt
Correct Answer:
Sol:
MVI A, 10H; Load bit pattern to enable RST 7.5, 6.5 and disable 5.5
00001010=0Ah
Question 2
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
Selected Answer: LXI SP, 2750H
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Correct Answer:
Sol:
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Question 3
if CY=1 & D7-D0 = 11000001.
Z, P, AC, S,
BITS D7 to D0
CY = 1
Z, P, AC, S
effective
Correct Answer:
Sol:
D7 D0 = 11100000
CY=1
Response Feedback:
Sol:
D7 D0 = 11100000
CY=1
Question 4
Bit D4 is for controlling RST 7.5.
Selected Answer:
True
Question 5
Selected Answer:
True
Question 6
The instruction POP H transfers the contents of memory pointed by SP to L register and the
contents of memory pointed by SP+1 to H register.
Selected Answer:
True
Question 7
POP _________________contents of given register pair.
Selected Answer:
Retrives
Correct Answer:
Retrives
Question 8
The______________ instruction is used to add or store the contents of a register pair on stack.
Selected Answer:
ADD
Correct Answer:
PUSH
Question 9
Selected Answer:
True
Once stack location is defined data storage begins from memory location
_____________________.
Selected Answer:
SP-1
Correct Answer:
SP-1
Question 11
Selected Answer:
False
Question 12
Each memory cell is capable of storing 1 byte of the data.
Selected Answer:
False
Question 13
The PUSH instruction is used to push or store the contents of a register on stack.
Selected Answer:
True
Question 14
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective."
Selected Answer:
False
RET Inserts the two byte from the top two locations of stack in PC and increments the SP by 1.
Selected Answer:
False
Question 16
Selected Answer:
one
Correct Answer:
one
Question 17
The signal _____________is used to insert a RST (Restart) instruction or call instruction
through external Hardware.
Selected Answer:
INTA
Correct Answer:
INTA
Question 1
Selected Answer:
False
Question 2
Selected Answer:
1000 0101
Correct Answer:
1000 0101
Question 3
"Arithmetic operations like addition/ subtraction are done by arithmetic instructions between
any 8-bit number, or the contents of register and the contents of memory location."
Selected Answer:
False
Question 4
Selected Answer:
1000 0101
Correct Answer:
1000 0101
Question 1
IF A = 1001 0111 And if B = 1100 0101 Then ANA B results in A___________________
Selected Answer:
1000 0101
Correct Answer:
1000 0101
Question 2
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective."
Selected Answer:
False
Question 3
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________
instruction"
Selected Answer:
EI
Correct Answer:
EI
Question 4
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be effective."
Selected Answer:
True
Question 1
2 out of 2 points
Assume A = 28H and B= 59H. After executing the ADD B instruction, what
Will be content of AC flag and status of the Carry flag, Zero flag and
Parity flag?
10000001
AC = 1
carry flag= 0
zero flag = 0
parity flag = 1
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B
registers and places the result in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Question 2
0.5 out of 0.5 points
If C= 0AH and B= 03H then after the execution of instruction ADD B the content of C will be
0DH.
Selected Answer:
False
Correct Answer: False
Question 3
0.5 out of 0.5 points
____________Stores the contents of the accumulator in the memory whose address is specified
in the instruction itself
Selected Answer:
STA
Correct Answer:
STA
Question 4
0 out of 0.5 points
"IO/M=1,S1=1,S0=0is_____________________________operation."
Selected Answer:
None
Correct Answer:
I/0 read
Question 5
0.5 out of 0.5 points
Intel 8085 pins are divided into 8 types
Selected Answer:
False
Correct Answer: False
Question 6
0.5 out of 0.5 points
Register________________________________ is temporary register.
Selected Answer:
Both
Correct Answer:
Both
Question 7
0 out of 0.5 points
"Before the execution of instruction ADC M, if Carry flag = 0, A=6h & Contents of M are 08h
what will be the contents of A?"
Selected Answer:
None
Correct Answer:
0Eh
Question 8
0.5 out of 0.5 points
SUI 3EH is an ___________________ addressing instruction.
Selected Answer:
immidiate
Correct Answer:
immidiate
Question 9
0.5 out of 0.5 points
ADC M is used to add the contents of a specified memory to the contents of the accumulator.
Selected Answer:
False
Correct Answer: False
Question 10
0.5 out of 0.5 points
"While performing an arithmetic operation like addition, one of the operands is automatically
assumed to be in _____________ register"
Selected Answer:
Both
Correct Answer:
Both
Question 11
0.5 out of 0.5 points
ADI B instriction adds contents of accumulator & register A.
Selected Answer:
False
Correct Answer: False
Question 12
0.5 out of 0.5 points
The sign flag is set to 1 if the result of an arithmetic or logic operation is Negative
Selected Answer:
True
Correct Answer: True
Question 13
0.5 out of 0.5 points
Number of bits the microprocessor recognizes and processes is known as the ______________of
the microprocessor.
Selected Answer:
word length
Correct Answer:
word length
Question 14
0.5 out of 0.5 points
Register D is temporary register.
Selected Answer:
True
Correct Answer: True
Question 15
0.5 out of 0.5 points
"If the initial value in DE register pair is 1023H, then the instruction DCX D decrements the value of DE by
1 & stores 1022 in DE."
Selected Answer:
True
Correct Answer: True
Question 16
1 out of 1 points
Write a sequence of instructions that will load EIH in the memory location
whose address is 1106H.
Correct Answer:
Question 1
1 out of 1 points
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
Correct Answer:
Sol:
LXI SP, 2750H
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
Question 2
0.25 out of 1 points
Write a program to disable interrupts RST 7.5, RST 5.5, and enable RST
6.5. [1 Marks]
Correct Answer:
EI 00001101 0DH
MVI ODH
SIM
HLT
Response Feedback: [None Given]
Question 3
0.5 out of 0.5 points
"If INTR is high and interrupt enable flip flop is reset, microprocessor completes the
execution of current instruction"
Selected Answer:
False
Correct Answer: False
Question 4
0.5 out of 0.5 points
Conditional return instructions will cause the program counter to be loaded with the 2 byte
address from the stack only if the specified condition is TRUE.
Selected Answer:
True
Correct Answer: True
Question 5
0 out of 0.5 points
"If SP =2004, after PUSH operation SP will be equal to______________"
Selected Answer:
2006
Correct Answer:
2002
Question 6
0.5 out of 0.5 points
RPO return if parity flag is set P =0 Odd Parity
Selected Answer:
False
Correct Answer: False
Question 7
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5. If D4= 1 RST 7.5 is set.
Selected Answer:
False
Correct Answer: False
Question 8
0.5 out of 0.5 points
CPE call if parity flag is set P =1 Even Parity
Selected Answer:
True
Correct Answer: True
Question 9
0.5 out of 0.5 points
_____________________ is a non maskable interrupt
Selected Answer:
TRAP
Correct Answer:
TRAP
Question 10
0.5 out of 0.5 points
"RP return if sign flag is not set S =0 , MSB bit = 0"
Selected Answer:
True
Correct Answer: True
Question 11
0 out of 0.5 points
The PUSH instruction is used to _____________or store the contents of a register pair on stack.
Selected Answer:
push
Correct Answer:
both
Question 12
0.5 out of 0.5 points
"IF BC=2014 , POP B transfers the contents of memory pointed by SP+1 to B registerand the
contents of memory pointed by SP to C register."
Selected Answer:
True
Correct Answer: True
Question 13
0.5 out of 0.5 points
"RP return if sign flag is not set S =0 , LSB bit = 0"
Selected Answer:
False
Correct Answer: False
Question 14
0.5 out of 0.5 points
Any general purpose register can be used for data transfer between I/O device and
microprocessor.
Selected Answer:
False
Correct Answer: False
Question 15
0.5 out of 0.5 points
RPE return instruction
Selected Answer:
both
Correct Answer:
both
Question 16
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5.
Selected Answer:
True
Correct Answer: True
Question 17
0.5 out of 1 points
if CY=1 & D7-D0 = 11000000.
What will be the values of :
Z, P, AC, S,
BITS D7 to D0
Correct
Answer:
Sol:
D7 D0 = 10000001
CY=1
S, Z, P, AC are not affected
Response
Feedback:
Sol:
D7 D0 = 10000001
CY=1
S, Z, P, AC are not affected
o
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Response cy=0
Feedback:
Question 16
1 out of 1 points
Write a sequence of instructions that will load 32H in C register and transfer the byte to a
memory location whose address is 1121H.
Selected Answer: MVI H,11HMVI L, 21HMVI
C,32HMOV M,C
HLT
Correct Answer:
Solution: MVI H, 20H
MVI L,
51H
MVI C,
32H
MOV
M,C
HLT
Response Feedback:
Write a program to enable interrupts RST 7.5, RST 6.5, and RST
5.5. [1 Marks]
Selected EIMVI A,08 SIM; Enable interrupt; Load bit pattern to enable RST 7.5,
Answer: and 5.5 ; Enable RST 7.5, 6.5 and 5.5Bit D3 = 1 in the accumulator makes
the instruction SIM functional. The bits D2, D1 and D0 are all equal to
and this enables the interrupts 7.5, 6.5 and 5.5.
Correct
Answer: EI 00001000=08
MVI 08H
SIM
HLT
Response [None Given]
Feedback:
Question 2
0 out of 0.5 points
RPO return if parity flag is set P =0 Odd Parity
Selected Answer:
True
Correct Answer: False
Question 3
0 out of 0.5 points
CNC call if
Question 1
0.5 out of 0.5 points
If A= 02H & B= 07H after execution of instruction CMP B carry falg is __________
Selected Answer:
set
Correct Answer:
set
Question 2
0.5 out of 0.5 points
_______________________ interrupts do not require INTA signal at an input port.
Selected Answer:
Vectoed
Correct Answer:
Vectoed
Question 3
0.5 out of 0.5 points
INR C Increments the content of C register by 1 and the new value is stored in C
register.
Selected Answer:
True
Correct Answer: True
Question 4
0.5 out of 0.5 points
Stores the contents of the accumulator in the memory whose address is specified in the
instruction itself
Selected Answer:
True
Correct Answer:
Selected A+B A
Answer:
H + 59H = 81H
The AC flag =1
The carry flag =0
the zero flag = 0
the parity flag =1
Correct
Answer:
Solution:
The instruction ADD B adds the contents of A and B
registers and places the result in A register.
A = 28 H = 0010 1000
B = 59H = 0101 1001
81H = 1000 0001
1. The AC flag is 1.
2. The result is less than FFH. Therefore Carry flag is reset.
3. The result is not zero. Hence, the Zero flag is reset.
4. The result is even parity. So the Parity flag is set.
Question 1
0.75 out of 1 points
if CY=1 & D7-D0 = 11000000.
Z, P, AC, S,
BITS D7 to D0
Response Feedback:
Sol:
D7 D0 = 11100000
CY=0
S, Z, P, AC are not affecte
Question 2
0.5 out of 0.5 points
In_____________________the data transfer is possible between accumulator A register
and I/O devices .
Selected Answer:
I/O mapped I/O
Correct Answer:
I/O mapped I/O
Question 3
0.5 out of 0.5 points
The signal _____________is used to insert a RST (Restart) instruction or call
instruction through external Hardware.
Selected Answer:
INTA
Correct Answer:
INTA
Question 4
0.5 out of 0.5 points
Each memory cell is capable of storing 1 byte of the data.
Selected Answer:
False
Correct Answer: False
Question 5
0.5 out of 0.5 points
The instruction POP H transfers the contents of memory pointed by SP to H
register and the contents of memory pointed by SP+1 to L register.
Selected Answer:
False
Correct Answer: False
Question 6
0 out of 0.5 points
"CM call if __________________________ , MSB bit = 1"
Selected Answer:
sign flag is set S =1
Correct Answer:
both
Question 7
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5.
Selected Answer:
True
Correct Answer: True
Question 8
0 out of 0.5 points
CNC call if
Selected Answer:
Conditional call
Correct Answer:
both
Question 9
0.5 out of 0.5 points
"To access data, memory must be interfaced properly with microprocessor"
Selected Answer:
True
Correct Answer: True
Question 10
0.5 out of 0.5 points
_____________________ is a non maskable interrupt
Selected Answer:
TRAP
Correct Answer:
TRAP
Question 11
0 out of 0.5 points
"IF BC=2014 , POP B transfers the contents of memory pointed by SP+1 to B
registerand the contents of memory pointed by SP to C register."
Selected Answer:
False
Correct Answer: True
Question 12
0.5 out of 0.5 points
Once stack location is defined data storage begins memory location whose address
is one less than address in the PC register pair.
Selected Answer:
False
Correct Answer: False
Question 13
0.5 out of 0.5 points
"If INTR is high and interrupt enable flip flop is reset, microprocessor completes
the execution of current instruction"
Selected Answer:
False
Correct Answer: False
Question 14
0.5 out of 0.5 points
_____________ must be properly interfaced with microprocessor.
Selected Answer:
both
Correct Answer:
both
Question 15
0.5 out of 0.5 points
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be
effective."
Selected Answer:
False
Correct Answer: False
Question 16
1 out of 1 points
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
Correct Answer:
EI 00001101 0DH
MVI ODH
SIM
HLT
Response
Feedback: EI
MVI 13 H
SIM
HLT
Question 1
0.5 out of 0.5 points
LDA 1080H - Load the data available in memory location 1050H in to accumulator;
Selected Answer:
False
Correct Answer: False
Question 2
0.5 out of 0.5 points
Each memory cell is capable of storing 1 byte of the data.
Selected Answer:
False
Correct Answer: False
Question 3
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5.
Selected Answer:
True
Correct Answer: True
Question 4
0.5 out of 0.5 points
"If A= 2DH and B= 01H and Carry flag = 1, then after the execution instruction ADC
the content of A will be 2FH."
Selected Answer:
True
Correct Answer: True
Question 1
0.5 out of 0.5 points
_______instruction adds the contents of specified register along with the carry flag.
Selected Answer:
ADC r
Correct Answer:
ADC r
Question 2
0.5 out of 0.5 points
The microprocessor has to respond to a _____________________interrupt request
without any delay
Selected Answer:
non maskable
Correct Answer:
non maskable
Question 3
0.5 out of 0.5 points
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A
will be 09H.
Selected Answer:
False
Correct Answer: False
Question 4
0.5 out of 0.5 points
_______________________ interrupts do not require INTA signal at an input port.
Selected Answer:
Vectoed
Correct Answer:
Vectoed