0

Microprocessor

Description: IT
Number of Questions: 25
Created by:
Tags: Microprocessor MicroProcessor and MicroController
Attempted 0/25 Correct 0 Score 0

Which instruction includes opcode and operand in the same byte?

  1. One byte instruction

  2. Two byte instructions

  3. Three byte instructions

  4. All of these


Correct Option: A
Explanation:

One byte instruction includes opcode and operand in the same byte.

Which of the following instructions provides a means of moving a byte between the accumulator and a memory location indirectly, with the RAM address contained in either the BC or DE register pair?

  1. LDA & STA

  2. LHLD & AHLD

  3. LDAX & STAX

  4. XCHG


Correct Option: C
Explanation:

The Load Accumulator Indirect (LDAX) and Store Accumulator Indirect (STAX) instructions provide a means of moving data between the accumulator and a memory location indirectly, with the RAM address contained in either the BC or DE register pair.

Which instruction will add the specified byte, either in a register or in the address contained by the H & L registers, and the value of the Carry bit into the accumulator?

  1. ADD instruction

  2. ADD with Carry

  3. ADD immediate

  4. LXI instruction


Correct Option: B
Explanation:

ADD with carry instruction will add the specified byte, either in a register or in the address contained by the H & L registers, and the value of the Carry bit, into the accumulator.

Which instruction provides a quick means of subtracting one from the content of a register or a memory location?

  1. Increment instruction

  2. Decrement instruction

  3. Register pair instruction

  4. None of these


Correct Option: B
Explanation:

Decrement instruction provides a quick means of subtracting one from the content of a register or a memory location.

Which instruction subtracts the specified byte, in a register or in the address contained by the H & L register from the content of the accumulator?

  1. Subtract instruction

  2. Subtract with borrow

  3. Subtract immediate

  4. Increment instructions


Correct Option: A
Explanation:

Subtract instruction subtracts the specified byte, in a register or in the address contained by the H & L register from the content of the accumulator.

Which instruction allows direct control of the Carry flag by the programmer?

  1. Rotate through Carrys

  2. Carry instruction

  3. Compare immediate

  4. None of these


Correct Option: B
Explanation:

Carry instruction allows direct control of the Carry flag by the programmer.

Which instruction performes a logical AND function between the specified byte, either in a register or in the address contained in the H & L register and the contents of the accumulator?

  1. AND instruction

  2. AND immediate

  3. Compare instruction

  4. OR instruction


Correct Option: A
Explanation:

AND instruction performes a logical AND function between the specified byte, either in a register or in the address contained in the H & L register, and the contents of the accumulator.

Which of the following modes results in a single-byte instruction?

  1. Register mode

  2. Register indirect mode

  3. Immediate mode

  4. Direct branch


Correct Option: B
Explanation:

This mode results in single-byte instruction. The byte contains bits which specifies a register pair, which in turn contains the address of the data in memory.

Which instruction provides a means, at the end of a subroutine, of resuming program execution at the instruction following the Call instruction which invoked the subroutine?

  1. CALL instruction

  2. RESTART instruction

  3. RETURN instruction

  4. JUMP instruction


Correct Option: C
Explanation:

RETURN instruction provides a means, at the end of a subroutine, of resuming program execution at the instruction following the call instruction which invoked  the subroutine.

______________ effectives the address of the datum in the base register BX or an index register that is specified by the instruction.

  1. Register relative addressing mode

  2. Relative based indexed addressing mode

  3. Based indexed addressing mode

  4. Register indirect addressing mode


Correct Option: D
Explanation:

The effective address of the datum is in the base register BX or an index register that is specified by the instruction.

Which instruction allows the MP to permit or deny interrupts under program control?

  1. I/O instruction

  2. HALT and NOP

  3. Interrupt instruction

  4. None of these


Correct Option: C
Explanation:

The instruction allows the MP to permit or deny interrupts under program control.

________________ replaces the contents of IP with part of the instruction and the segment of CS with another part of the instruction.

  1. Intersegement indirect

  2. Intersegment direct

  3. Intrasegment direct

  4. None of the above


Correct Option: B
Explanation:

This replaces the contents of IP with part of the instruction and the segment of CS with another part of the instruction.

___________ is set to 1, if the result is zero and 0 if the result is non-zero.

  1. ZF (Zero Flag)

  2. SF (Sign Flag)

  3. CF (Carry Flag)

  4. TF (Trap Flag)


Correct Option: A
Explanation:

Zero Flag  is set to 1, if the result is zero and 0 if the result is non -zero.

The instruction used to clear interrupt flag in 8086 is__________.

  1. HLT

  2. CLI

  3. SAR

  4. RCL


Correct Option: B
Explanation:

The instruction used to clear interrupt flag in 8086 is CLI.

___________ is set, if there is a Carry out of bit 3 during an addition or a borrow by bit 3 during a subtraction.

  1. PF (Parity Flag)

  2. OF (Overflow Flag)

  3. AF (Auxiliary Carry Flag)

  4. IF (Interrupt Enable Flag)


Correct Option: C
Explanation:

Auxiliary Carry Flag is set,  if there is a Carry out of bit 3 during an addition or a borrow by bit 3 during a subtraction.

_____________ is an operation where the output depends on any one of the two conditions given, then output is true where any of the two inputs or both of them are true.

  1. NOT logic

  2. AND logic

  3. OR logic

  4. NAND logic


Correct Option: C
Explanation:

OR is an operation where the output depends on any one of the two condition given, then output is true when any of the two inputs or both of them are true.

Which arithmetic instructions may use any of the addressing modes for one of the operands, but, except when the source operand is immediate, one of the two operands must be a register?

  1. Unpacked BCD Arithmetic

  2. Packed BCD Arithmetic

  3. Binary Arithmetic

  4. None of these


Correct Option: C
Explanation:

Binary Arithmetic Instruction may use any of the addressing modes for one of the operands, but, except when the source operand is immediate, one of the two operands must be a register.

_________ is the operation where the output is true when any of the two inputs or both of them were true.

  1. AND logic

  2. OR logic

  3. NOT logic

  4. None of these


Correct Option: B
Explanation:

OR is the operation where the output is true when any of the two inputs or both of them were true.

___________, the effective branch having content of register or memory location is accessed by using any of the data related addressing modes expect the immediate mode.

  1. Intrasegment indirect

  2. Intrasegment direct

  3. Intersegment direct

  4. Intersegment indirect


Correct Option: A
Explanation:

Intrasegment indirect, the effective branch having the content of register or memory location is accessed by using any of the data related addressing modes expect the immediate mode.

In which operation, the output is true only when one of the input was true and output is false if both inputs are at the same logic?

  1. NAND logic

  2. NOR logic

  3. EX-OR logic

  4. EX-NOR logic


Correct Option: C
Explanation:

In EX-OR operation, the output is true only when one of the input was true and output is false if both inputs are at the same logic.

Which instruction has the 2 byte machine code format where the second byte gives a 8-bit signed displacement relative to the address of the next instruction in sequence?

  1. Conditional Branch Instruction

  2. Unconditional Branch Instruction

  3. Loop Instruction

  4. None of these


Correct Option: A
Explanation:

All Conditional Branch instructions have the 2 byte machine code format where the second byte gives a 8-bit signed displacement relative to the address of the next instruction in sequence.

__________ of addition states that the net result remains same irrespective of grouping variables.

  1. Commutative law

  2. Associative law

  3. Distributive law

  4. None of the above


Correct Option: B
Explanation:

Associative law of addition states that the net result remains same irrespective grouping of the variable.

__________ law states that the Oring with one variable of the ANDed function, is similar to the ANDing of ORed result.

  1. Distributive

  2. Associative

  3. Commutative

  4. Demorgan's theorem


Correct Option: A
Explanation:

Distributive law states that the Oring with one variable of the ANDed function, is similar to the ANDing of ORed result.

In which operation, the output is true only when both of the input are true or both the input and output are false, if the inputs are at the different logic?

  1. Ex-OR logic

  2. Ex-NOR logic

  3. NAND logic

  4. NOR logic


Correct Option: B
Explanation:

In EX-NOR operation, the output is true only when both of the input are true or both the input and output are false if the inputs are at the different logic.

__________________ is a 8-bit register which is a part of ALU. This register is used to store 8-bit data and to perform ALU operations. The result is stored in itself.

  1. Arithmetic & logic Unit

  2. Program counter

  3. Flags

  4. Accumulator


Correct Option: D
Explanation:

Accumulator is a 8-bit register that is a part of ALU. This register is used to store 8-bit data and to perform ALU operations. The result is stored in itself.

- Hide questions