Microprocessor QUZTION
Microprocessor QUZTION
(T)
"IO/M=1,S1=1,S0=0is_____________________________operation." (I/0 read)
A logic 0 on RD indicates that the processor is performing Read operation (T)
8085mp has 8 6-bit temporary registers (F)
Accumulator is an 8-bit register associated with ALU.(T)
Register B is temporary register.(T)
All 16 address lines i.e. A0-A15 is used to address memory locations as well as ____________ (BOTH)
ADC is used to add contents of register or memory with accumulator and carry flag(T)
"IO/M=0,S1=1,S0=0 is ________________ operation" (memory read)
Register Array is part of microprocessor consists of various registers identified by English alphabets. (T)
"While performing an arithmetic operation like addition, one of the operands is automatically assumed to be
in A" (T)
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A will be 09H.(F)
The sign flag is set to 1 if the result of an arithmetic or logic operation is Negative (T)
BC is 18 bit register pair (F)
*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?
(A + B ----> A
28H + 59H = 81H
The AC flag is set
The AC flag =1
The carry flag is reset
The carry flag =0
the zero flag is reset
the zero flag = 0
the parity flag : the number os 1's is 2 which is even number
so the parity flag is set
the parity flag =1 )
*Write a sequence of instructions that will load EIH in the memory location whose address is 1106H.
(MVI H, 11H
MVI L, 06H
MVI C, EIH
MOV M, C
HLT )
Once stack location is defined data storage begins memory location whose address is one less than address
in the PC register pair. (F)
_____________________ is a non maskable interrupt (TRAP)
The address bus of the 8085 microprocessor is _________________________ . (BOTH)
"CM call if __________________________ , MSB bit = 1" (BOTH)
"if SP =2004, after POP operation SP will be equal to______________" (2006)
"If INTR is high and interrupt enable flip flop is reset, microprocessor completes the execution of current
instruction" (F)
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction" (EI)
The signal _______is used to insert a RST (Restart) instruction or call instruction through external
Hardware.( INTA )
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be effective." (F)
Bit D4 is for controlling RST 7.5. (T)
SIM is ____________ byte instruction.(ONE)
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective." (F)
"To access data, memory must be interfaced properly with microprocessor" (T)
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. (T)
*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)
A = 0010 0101 and if B = 1110 0111 The XRA B results in A = ____________________ (1100 0010)
Each memory cell is capable of storing 1 bit of the data. (T)
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A will be 09H. (F)
INX rp instruction increments the contents of the specified register pair by 1 and the result is srored
in_______________ (register pair)
SUI 3EH is an ___________________ addressing instruction. (immidiate)
Move between Memory & Register (BOTH)
If A= 02H & B= 07H after execution of instruction CMP B carry falg is __________(set)
"Bit D3 is the control bit and should be equal to 1 for bits D0, D1, D4 to be effective." (F)
*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?
(28H +59H = 81H
IN BINARY ADD :
0010 1000 + 0101 1001 = 1000 0001
AC= 1
CY = 0
Z=0
P=1
Once stack location is defined data storage begins from memory location _____________________. (SP-1)
"To access data, memory must be interfaced properly with microprocessor" (T)
CPO call if parity flag is set P =0 even Parity (F)
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. (T)
The PUSH instruction is used to push or store the contents of a register on stack. (F)
CNC call if (both)
CPE call if parity flag is set P =1 Even Parity (T)
The address bus of the 8085 microprocessor is _________________________ .(both)
_____________________ is a non maskable interrupt (TRAP)
"RP return if sign flag is not set S =0 , MSB bit = 0" (T)
The instruction PUSH B pushes the contents of _____________ on to the stack. (BC)
SIM is ____________ byte instruction. (one)
Each memory cell is capable of storing 1 bit of the data.(T)
The______________ instruction is used to add or store the contents of a register pair on stack. (PUSH)
*if CY=1 & D7-D0 = 10100000
What will be the values of
Z, P, AC, S
BITS D7 to D0
& CY After execution of instruction RAR
(After execution of instruction RAR
D7 to D0 =11010000
CY = 0 ( CY is modified according to bit D0.)
S, Z, P, AC are not affected )
*Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST 6.5.
(1010 D3 =1 ,D2(RST 7.5) =0 , ,D1(RST6.5) =1 , ,D0 ( RST5.5) =0
EI ; Enable interrupt
MVI A,0A ; Load bit pattern to enable RST 7.5,55 and disable 6.5
SIM Enable RST 7.5, 5.5 and disable 6.5 )
*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 )
IF A = 1001 0111 And if B = 1100 0101 Then ANA B results in A___________________ (1000 0101)
"In_______________ addressing mode, the instruction itself specifies the data to be operated. " (implied )
A = 0010 0101 and if B = 1110 0111 The XRA B results in A = ____________________ (1100 0010 )
MVI is used to add the contents of a specified register or memory to the contents of the accumulator (F)
Stores the contents of the accumulator in the memory whose address is specified in the instruction itself (T)
Each memory cell is capable of storing 1 byte of the data. (F)
SIM is ____________ byte instruction. (one)
If C= 0AH and B= 03H then after the execution of instruction ADD B the content of C will be 0DH. (F)
ADC M is used to add the contents of a specified memory to the contents of the accumulator. ( false)
"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." (true)
Register B is temporary register. (true)
BE is 16 bit register pair (false)
Intel 8085 pins are divided into 8 types (false)
The sign flag is set to 1 if the result of an arithmetic or logic operation is Negative (true)
Register________________________________ is temporary register. ( both )
______instruction adds the contents of specified register along with the carry flag. (ADC r )
ADC M is used to add the contents of a specified memory along with the carry flag to the contents
of the accumulator. (true)
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?" ( 0Fh )
Communication is possible with either the I/O or memory at one time by Microprocessor . ( true )
A8 to A15 signal lines are bidirectional and used for higher order address of a 16 bit address (false)
"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." ( false )
LDA 1080H - Load the data available in memory location 1050H in to accumulator; ( false )
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 ( true )
The PUSH instruction is used to _____________or store the contents of a register pair on
stack.(both)
The POP instruction is used to transfer____________________from the top of the stack to the
register pair specified in the instruction. ( two bytes )
The microprocessor cannot accept any interrupt request until interrupt enable flipflop is reset again. ( false )
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 )
The instruction PUSH B adds the contents of B register on to the stack (false )
CALL instruction calls the subroutine without checking any condition. (true )
The signal _____________is used to insert a RST (Restart) instruction or call instruction through
external Hardware. ( INTA)
Bit D4 is for controlling RST 7.5. If D4= 1 RST 7.5 is set. ( false )
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 )
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
Z, P, AC, S,
BITS D7 to D0
D7 D0 = 11 01 0 0 0 0
CY=0
S, Z, P, AC are not affected
Write a program to enable interrupts RST 7.5, RST 6.5, and RST 5.5.
MVI 08H
SIM
HLT
If A= 02H & B= 07H after execution of instruction CMP B carry falg is _____ ( set )
_____instruction adds the contents of specified register along with the carry flag. (ADC r )
IF A = 1001 0111 And if B = 1100 0101 Then ANA B results in A__________ (1000 0101 )
While performing an arithmetic operation like addition, one of the operands is automatically assumed to
be in A? (True )
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.(true)
The address bus of the 8085 microprocessor is(Both)
Accumulator is an 8-bit register associated with ALU(True)
If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C will be 07H False)
Number of bits the microprocessor recognizes and processes is known as the ______________of the
microprocessor(word length)
ADI 3EH is an Immediate addressing instruction True)
Write a program to transfer one byte from a memory location whose address is 1070H to another memory
location whose address is 1211H
Solution: LXI H, 2450H
MOV A, M
LXI H, 2550H
MOV M,
HLT
If INTR is high and interrupt enable flip flop is reset, microprocessor completes the execution of current instruction False)
The signal _____________is used to insert a RST (Restart) instruction or call instruction through external Hardware.
INTA)
Once stack location is defined data storage begins memory location whose address is one less than address in the PC
register pair.( False)
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(True)
To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction"
(EI)
The PUSH instruction is used to _____________or store the contents of a register pair on stack.
Both)
(two bytes)
In_________________________ addressing mode, the instruction itself specifies the data to be operated
Implied)
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(False)
instruction adds the contents of specified register along with the ADC r)
carry flag
MVI loads the specified 8 bit data into the destination register( True)
STA Stores the contents of the accumulator in the memory whose address is specified in the register pair(false)
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?
28+59=81H
28 : 00101000
59: 01011001
81: 10000001
zero flag=0 , parity flag=1 , carry flag =0 , AC=1
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.
Write a program to exchange the contents of memory locations 1109H and 1060H without using
STA and LDA instructions.
LXI B,2050H
LXI D,2370H
LDAX B
MOV L,A
LDAX D
STAX B
MOV A,L
STAX D
HLT
_______instruction adds the contents of specified register along with the carry flag. (ADC r)
"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?" (0Eh)
Accumulator is an 8-bit register associated with ALU. (True)
Register B is temporary register. (True)
If C= 0AH and B= 03H then after the execution of instruction ADD B the content of C will be 0DH (False)
If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C will be 07H. (False)
ADC is used to add contents of register or memory with accumulator and carry flag (True)
Z, P, AC, S,
Sol:
D7 D0 = 11100000
CY=0
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. (True)
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction" (EI)
The______________ instruction is used to add or store the contents of a register pair on stack. (PUSH)
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction" (EI)
"RP return if sign flag is not set S =0 , MSB bit = 0" (True)
Once stack location is defined data storage begins memory location whose address is one less than address
in the PC register pair. (False)
Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST 6.5.
Sol:
MVI A,0A ; Load bit pattern to enable RST 7.5, 5.5 and disable 6.5
Bit D3 = 1 in the accumulator makes the instruction SIM functional. The bits D2, D0 are all equal to zero
and this enables the interrupts 7.5, 5.5. Bit D1=1 therefore 6.5 is disabled.
Write a program to exchange the contents of two register pairs using PUSH and POP instructions?
Sol:
LXI SP, 2750H
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
IF A = 1001 0111 And if B = 1100 0101 Then ANA B results in A___________________ (1000 0101)
Any general purpose register can be used for data transfer between I/O device and microprocessor. (False)
MVI loads the specified 8 bit data into the destination register pair. (False)
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective." (False)
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A will be 09H. (False)
"If A= 2DH and B= 01H and Carry flag = 1, then after the execution instruction ADC the content of A will
be 2FH." (True)
Communication is possible with either the I/O or memory at one time by Microprocessor . (True)
"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?" (0Fh)
A logic 0 on RD indicates that the processor is performing Read operation (True)
_______instruction adds the contents of specified register along with the carry flag. (ADC r )
Number of bits the microprocessor recognizes and processes is known as the ______________of the
microprocessor. (word length )
If A= 0AH and B= 03H then after the execution of instruction SUB B the content of A will be 09H. (False )
Write a program to transfer one byte from a memory location whose address is 1070H to another memory
location whose address is 1211H.
LXI H, 2450H
MOV A, M
LXI H, 2550H
MOV M,A
HLT
LDA 1070H
STA 1211H
HLT
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?
28H+59H = 81 H
28H : in binary: 0010 1000
59H: in binary: 0101 1001
Answer of ADD B will be 81H : in binary: 1000 0001
Then
AC= 1
CY-carry flag = 0
Z-zero flag= 0
P-parity flag=1
Write a program to enable interrupts RST 7.5, RST 6.5, and RST 5.5.
EI ; Enable interrupt
MVI A,08 ; Load bit pattern to enable RST 7.5, 6.5 and 5.5
SIM ; Enable RST 7.5, 6.5 and 5.5
Bit D3 = 1 in the accumulator makes the instruction SIM functional. The bits D2, D1 and D0 are all equal to zero and this
enables the interrupts 7.5, 6.5 and 5.5.
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
HLT
Write a program to transfer one byte from a memory location whose address is 1070H to
another memory location whose address is 1211H.
If C= 0AH and B= 03H then after the execution of instruction ADD B the content of C will be 0DH .
False
BC is 16 bit register pair
Selected Answer:
True
A8 to A15 signal lines are bidirectional and used for higher order address of a 16 bit address.
Selected Answer:
False
"While performing an arithmetic operation like addition, one of the operands is automatically assumed to be
in A"
Selected Answer:
True
Selected Answer:
memory read
Correct Answer:
memory read
Z, P, AC, S,
BITS D7 to D0
Write a program to enable interrupts RST 7.5, RST 5.5, and disable RST 6.5.
MVI A, 0AH; Load bit pattern to enable RST 7.5, 6.5 and disable 5.5
To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction"
Selected Answer:
EI
Correct Answer:
EI
The signal _____________is used to insert a RST (Restart) instruction or call instruction through external
Hardware.
Selected Answer:
INTA
Once stack location is defined storing of data bytes begins at memory location whose address is
__________ less than address in the SP register pair.
Selected Answer:
one
CNC call if
Selected Answer:
both
Correct Answer:
both
RET Inserts the two byte from the top two locations of stack in PC and increments the SP by 1.
Selected Answer:
False
"Stack is used to store information in LIFO fashion, temporarily during the execution of the program."
True
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
Write a program to exchange the contents of two register pairs using PUSH and POP
instructions? (1 Marks)
INR C Increments the content of C register by 1 and the new value is stored in A register.
Selected Answer:
False
Correct Answer: False
"In_________________________ addressing mode, the instruction itself specifies the data to be operated. "
Selected Answer:
implied
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
Correct Answer: True
To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction"
Selected Answer:
E
Selected Answer:
None
Correct Answer:
None
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 A=B+A
Answer: =28H+59H=81H
=00101000+01011001=10000001
AC=1 BECUSE WE HAVE CARRY FROM 3D TO 4D
carry flag reset because we donnot have carry =0
parity flag is set =1 because the number of 1s is even
zero flag =0 becuse the result = 81H
not zero
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.
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,11H
MVI L,21H
MVI C, 32H
MOV M,C
HLT
Correct Answer:
Solution: MVI H, 20H
MVI L, 51H
MVI C, 32H
MOV M,C
HLT
Question 3
0.5 out of 0.5 points
The address bus of the 8085 microprocessor is _________________________ .
Selected Answer:
Both
Correct Answer:
Both
Question 4
0.5 out of 0.5 points
If A = 97H The CMA results in A ______________________
Selected Answer:
None
Correct Answer:
None
Question 5
0.5 out of 0.5 points
Instruction INR works with register pair
Selected Answer:
False
Correct Answer: False
Question 6
0.5 out of 0.5 points
Intel 8085 pins are divided into 8 types
Selected Answer:
False
Correct Answer: False
Question 7
0.5 out of 0.5 points
"IO/M=1,S1=1,S0=0is_____________________________operation."
Selected Answer:
I/0 read
Correct Answer:
I/0 read
Question 8
0.5 out of 0.5 points
A logic 0 on RD indicates that the processor is performing Read operation
Selected Answer:
True
Correct Answer: True
Question 9
0.5 out of 0.5 points
Register B is temporary register.
Selected Answer:
True
Correct Answer: True
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
A8 to A15 signal lines are bidirectional and used for higher order address of a 16 bit address.
Selected Answer:
False
Correct Answer: False
Question 12
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 13
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 14
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 15
0 out of 0.5 points
ADI 3EH is an Immediate addressing instruction.
Selected Answer:
False
Correct Answer: True
Question 16
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 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
Correct Answer: True
Question 2
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: True
Question 3
0.5 out of 0.5 points
"INR instruction increments the specified memory location, M by 1."
Selected Answer:
False
Correct Answer: False
Question 4
0.5 out of 0.5 points
ADI is used to add the 8 bit data to a specified register
Selected Answer:
False
Correct Answer: False
Question 1
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)
Z, P, AC, S,
BITS D7 to D0
Each binary bit of the accumulator is rotated left by one position through the Carry flag. Bit D7 is
placed in the Carry flag, and the Carry flag is placed in the least significant position D0. CY is
modified according to bit D7. S, Z, P, AC are not affected.
Correct
Answer: Sol:
D7 D0 = 10000001
CY=1
S, Z, P, AC are not affected
Question 1
0.5 out of 0.5 points
Move from Memory to Register
Selected Answer:
"MOV R,M"
Correct Answer:
"MOV R,M"
Question 2
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: True
Question 3
0.5 out of 0.5 points
If A= 05H & B= 09H after execution of instruction CMP B carry falg is __________
Selected Answer:
set
Correct Answer:
set
Question 4
0.5 out of 0.5 points
"Instruction MOV A, B"
Selected Answer:
Both
Correct Answer:
Both
In_____________________the data transfer is possible between accumulator A register and I/O devices .
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 . (False)
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:
EI
MVI 13 H
SIM
HLT
ADC M is used to add the contents of a specified memory to the contents of the accumulator.( false)
_______instruction adds the contents of specified register along with the carry flag. ADC r
"While performing an arithmetic operation like addition, one of the operands is automatically assumed to be
in A" (true)
If C= 0AH and B= 03H then after the execution of instruction SUB B the content of C
will be 07H. (false)
"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?" ( 0Eh )
ADI B instriction adds contents of accumulator & register A. ( false)
Number of bits the microprocessor recognizes and processes is known as the ___________of the microprocessor.
(word length)
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."(true)
"While performing an arithmetic operation like addition, one of the operands is automatically assumed to be in
_____________ register" ( both)
Write a program to exchange the contents of memory locations 1109H and 1060H without using
STA and LDA instructions.
The answer:
LXI B,2050H
LXI D,2370H
LDAX B
MOV L,A
LDAX D
STAX B
MOV A,L
STAX D
HLT
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.
-------------------------------
Z, P, AC, S,
BITS D7 to D0
Sol:
D7 D0 = 10000001
CY=1
S, Z, P, AC are not affected
------------------------------------------
Write a program to enable interrupts RST 7.5, RST 6.5, and RST 5.5.
EI ; Enable interrupt
MVI A,08 ; Load bit pattern to enable RST 7.5, 6.5 and 5.5
SIM ; Enable RST 7.5, 6.5 and 5.5
Write a program to exchange the contents of two register pairs using PUSH and POP instructions?
"To activate RST 5.5 interrupt , the interrupt enable flip flop must be set using _________ instruction" ( EI)
The PUSH instruction is used to _____________or store the contents of a register pair on stack. (BOTH)
"Bit D3 is the control bit and should be equal to 0 for bits D0, D1, D4 to be effective." FALSE
Once stack location is defined data storage begins from memory location whose address is one less than address in the
SP register pair. TRUE
All 16 address lines i.e. A0-A15 is used to address memory locations as well as ________________ BOTH
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. FALSE
" If INTR is high and interrupt enable flip flop is reset, microprocessor completes the execution of current instruction"
FALSE.
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
Any general purpose register can be used for data transfer between I/O device and microprocessor. FALSE
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 4
0.5 out of 0.5 points
"IO/M=0,S1=1,S0=0 is ________________ operation"
Selected Answer:
memory read
Correct Answer:
memory read
Question 5
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 6
0.5 out of 0.5 points
The address bus of the 8085 microprocessor is _________________________ .
Selected Answer:
Both
Correct Answer:
Both
Question 7
0.5 out of 0.5 points
If A = 97H The CMA results in A ______________________
Selected Answer:
None
Correct Answer:
None
Question 8
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 9
0.5 out of 0.5 points
ADI is used to add contents of register or memory with accumulator
Selected Answer:
False
Correct Answer: False
Question 10
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 11
0.5 out of 0.5 points
8085mp has 8 6-bit temporary registers
Selected Answer:
False
Correct Answer: False
Question 12
0.5 out of 0.5 points
Intel 8085 pins are divided into 6 types
Selected Answer:
True
Correct Answer: True
Question 13
0.5 out of 0.5 points
A logic 0 on RD indicates that the processor is performing Read operation
Selected Answer:
True
Correct Answer: True
Question 14
0.5 out of 0.5 points
"In_________________________ addressing mode, the instruction itself specifies the data to be
operated. "
Selected Answer:
implied
Correct Answer:
implied
Question 15
1 out of 1 points
Write a program to exchange the contents of memory locations 1109H and
1060H without using STA and LDA instructions.
Selected Answer: LXI H,1109H
MOV A,M
LXI H,1060H
MOV M,A
HLT
Correct Answer:
LXI B,2050H
LXI D,2370H
LDAX B
MOV L,A
LDAX D
STAX B
MOV A,L
STAX D
HLT
Z, P, AC, S,
BITS D7 to D0
Correct Answer:
Sol:
D7 D0 = 11 01 0 0 0 0
CY=0
S, Z, P, AC are not affected
Correct Answer:
Sol:
LXI SP, 2750H
LXI B, 1234H
LXI D, 5678H
PUSH B
PUSH D
POP B
POP D
MVI A, 10H; Load bit pattern to enable RST 7.5, 6.5 and disable 5.5
00001010=0Ah
Selected Answer:
None
Correct Answer:
None
Question 2
0.5 out of 0.5 points
ADI 3EH is an Immediate addressing instruction.
Selected Answer:
True
Correct Answer: True
Question 3
0 out of 0.5 points
"If DE register pair is 1500H, then the instruction INX D decrements 16 bit value in DE register
pair by 1 and the new value is stored in DE."
Selected Answer:
True
Correct Answer: False
Question 4
0.5 out of 0.5 points
Bit D4 is for controlling RST 7.5.
Selected Answer:
True
Correct Answer: True
Selected Answer:
1000 0101
Correct Answer:
1000 0101
Question 2
0.5 out of 0.5 points
"In_________________________ addressing mode, the instruction itself specifies the data to be
operated. "
Selected Answer:
implied
Correct Answer:
implied
Question 3
0.5 out of 0.5 points
MVI loads the specified 8 bit data into the destination register.
Selected Answer:
True
Correct Answer: True
Question 4
0.5 out of 0.5 points
_____________ must be properly interfaced with microprocessor.
Selected Answer:
both
Correct Answer:
both