Microprocessor
Test knowledge of microprocessor architecture including instruction sets, addressing modes, registers, flags, arithmetic and logical operations, interrupts, and boolean logic.
Questions
Which instruction includes opcode and operand in the same byte?
- One byte instruction
- Two byte instructions
- Three byte instructions
- All of these
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?
- LDA & STA
- LHLD & AHLD
- LDAX & STAX
- XCHG
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?
- ADD instruction
- ADD with Carry
- ADD immediate
- LXI instruction
Which instruction provides a quick means of subtracting one from the content of a register or a memory location?
- Increment instruction
- Decrement instruction
- Register pair instruction
- None of these
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?
- Subtract instruction
- Subtract with borrow
- Subtract immediate
- Increment instructions
Which instruction allows direct control of the Carry flag by the programmer?
- Rotate through Carrys
- Carry instruction
- Compare immediate
- None of these
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?
- AND instruction
- AND immediate
- Compare instruction
- OR instruction
Which of the following modes results in a single-byte instruction?
- Register mode
- Register indirect mode
- Immediate mode
- Direct branch
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?
- CALL instruction
- RESTART instruction
- RETURN instruction
- JUMP instruction
______________ effectives the address of the datum in the base register BX or an index register that is specified by the instruction.
- Register relative addressing mode
- Relative based indexed addressing mode
- Based indexed addressing mode
- Register indirect addressing mode
Which instruction allows the MP to permit or deny interrupts under program control?
- I/O instruction
- HALT and NOP
- Interrupt instruction
- None of these
________________ replaces the contents of IP with part of the instruction and the segment of CS with another part of the instruction.
- Intersegement indirect
- Intersegment direct
- Intrasegment direct
- None of the above
___________ is set to 1, if the result is zero and 0 if the result is non-zero.
- ZF (Zero Flag)
- SF (Sign Flag)
- CF (Carry Flag)
- TF (Trap Flag)
The instruction used to clear interrupt flag in 8086 is__________.
- HLT
- CLI
- SAR
- RCL
___________ is set, if there is a Carry out of bit 3 during an addition or a borrow by bit 3 during a subtraction.
- PF (Parity Flag)
- OF (Overflow Flag)
- AF (Auxiliary Carry Flag)
- IF (Interrupt Enable Flag)
_____________ 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.
- NOT logic
- AND logic
- OR logic
- NAND logic
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?
- Unpacked BCD Arithmetic
- Packed BCD Arithmetic
- Binary Arithmetic
- None of these
_________ is the operation where the output is true when any of the two inputs or both of them were true.
- AND logic
- OR logic
- NOT logic
- None of these
___________, 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.
- Intrasegment indirect
- Intrasegment direct
- Intersegment direct
- Intersegment indirect
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?
- NAND logic
- NOR logic
- EX-OR logic
- EX-NOR 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?
- Conditional Branch Instruction
- Unconditional Branch Instruction
- Loop Instruction
- None of these
__________ of addition states that the net result remains same irrespective of grouping variables.
- Commutative law
- Associative law
- Distributive law
- None of the above
__________ law states that the Oring with one variable of the ANDed function, is similar to the ANDing of ORed result.
- Distributive
- Associative
- Commutative
- Demorgan's theorem
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?<o:p>
- Ex-OR logic
- Ex-NOR logic
- NAND logic
- NOR 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.
- Arithmetic & logic Unit
- Program counter
- Flags
- Accumulator