Microprocessor Concepts Quiz
48 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the effect of the instruction 'MOV AX, 5000H'?

  • It moves the value of AX into 5000H.
  • It clears the AX register.
  • It moves the value of AX into a memory location at 5000H.
  • It moves the value 5000H into the AX register. (correct)
  • How many bytes are pushed onto the stack by the instruction 'PUSH AX'?

  • 1 byte
  • 2 bytes (correct)
  • 4 bytes
  • 8 bytes
  • Which segment does the base pointer (BP) reference when addressing memory?

  • Stack segment (SS) (correct)
  • Code segment (CS)
  • Data segment (DS)
  • Extra segment (EX)
  • What does the instruction 'JMP [BX]' do?

    <p>It jumps to the address stored at the memory location pointed by BX.</p> Signup and view all the answers

    Which of the following statements about the stack is true?

    <p>The stack follows a LIFO structure.</p> Signup and view all the answers

    When data is popped from the stack, which bits are removed from the location addressed by SP?

    <p>Only the low-order 8 bits.</p> Signup and view all the answers

    Which register consists of 32 bits in 80386 and above?

    <p>CX</p> Signup and view all the answers

    How many bytes are popped from the stack by the instruction 'POP EBX'?

    <p>4 bytes</p> Signup and view all the answers

    What is the outcome of multiplying two 8-bit numbers?

    <p>16-bit product</p> Signup and view all the answers

    Which instruction is used to subtract the contents at memory location addressed by DI from AX?

    <p>SUB AX, [DI]</p> Signup and view all the answers

    What does the IMUL instruction signify?

    <p>Multiplication</p> Signup and view all the answers

    What does the instruction MUL CL perform?

    <p>AL is multiplied by CL, the signed product in AX.</p> Signup and view all the answers

    What is the result when two 16-bit numbers are multiplied?

    <p>32-bit product</p> Signup and view all the answers

    When two 16-bit numbers are multiplied, where does the resulting product appear?

    <p>DX-AX</p> Signup and view all the answers

    Which instruction is used to multiply AL with the byte contents at the memory location addressed by BX?

    <p>MUL BYTE PTR [BX]</p> Signup and view all the answers

    What does the IDIV CL instruction accomplish?

    <p>AX is divided by CL, signed quotient in AL and signed remainder in AH.</p> Signup and view all the answers

    What is the meaning of the DIV SI instruction?

    <p>DX-AX is divided by SI, unsigned quotient in AX and unsigned remainder in DX.</p> Signup and view all the answers

    Which arithmetic instruction divides AX by the byte at the BP memory location with the signed quotient in AL and signed remainder in AH?

    <p>IDIV BYTE PTR [BP]</p> Signup and view all the answers

    Which instruction divides DX-AX by the word contents at the BP memory location with the unsigned quotient in AX?

    <p>DIV WORD PTR [BP]</p> Signup and view all the answers

    Which of the following statements is true regarding the effect on the flag register?

    <p>Arithmetic and logic instructions affect the flag register.</p> Signup and view all the answers

    What is the effect of the TEST instruction in terms of its operation?

    <p>It doesn’t change the destination nor Flag bits.</p> Signup and view all the answers

    Which statement correctly describes the NOT and NEG instructions?

    <p>NOT is a logic instruction, but NEG is an arithmetic instruction.</p> Signup and view all the answers

    If the register AL contains the binary value 01010010B, what will AL contain after executing the NEG AL instruction?

    <p>10101101</p> Signup and view all the answers

    After executing AND DX, [SI] with given values DX = AAAAH, SI = 0100, what is the resulting value?

    <p>A00AH</p> Signup and view all the answers

    What is the result in the destination operand after executing the instruction XOR AX, [SI+BX] given AX = 5555H and BX = 0010H?

    <p>55AAH</p> Signup and view all the answers

    What is the value of the destination operand after executing NOT [0300H] if DS: 300H equals AAH?

    <p>FCFFH</p> Signup and view all the answers

    What does the command SHR ECX, 10 signify?

    <p>ECX is logically shifted right 10 places</p> Signup and view all the answers

    To perform an arithmetic left shift on the register BX five times, which instruction should be used?

    <p>SAL BX, 5</p> Signup and view all the answers

    What does the instruction RCL BL, 6 indicate?

    <p>BL rotate left through carry 6 places</p> Signup and view all the answers

    Which instruction is used to rotate register AH to the right including the carry flag, using the number specified in CL?

    <p>RCR AH, CL</p> Signup and view all the answers

    What does the instruction ROR EDX, 18 do?

    <p>EDX rotate right 18 places</p> Signup and view all the answers

    What is the typical size of the opcode field in a machine language instruction?

    <p>either 1 or 2 bytes long</p> Signup and view all the answers

    What does a mode field value of 11 indicate?

    <p>16-bit signed displacement</p> Signup and view all the answers

    What does a mode field value of 00 signify?

    <p>No displacement</p> Signup and view all the answers

    What is indicated by a mode field value of 10?

    <p>8-bit signed extended displacement</p> Signup and view all the answers

    Given the machine language instruction 8A15H, what is the corresponding assembly language instruction?

    <p>MOV DL, [DI]</p> Signup and view all the answers

    For the machine language instruction 8BECH, what is the corresponding assembly language instruction?

    <p>MOV SP, BP</p> Signup and view all the answers

    What is the machine language instruction for the assembly language instruction Mov SI, [BX+2]?

    <p>8B7702H</p> Signup and view all the answers

    What is the address accessed by MOV [SI+100H], EAX with DS=1000H, SS=2000H, BP=1500H, BX=0100, and SI=0200H?

    <p>10400H</p> Signup and view all the answers

    What is the corresponding assembly language instruction for the machine language instruction 8A5501H?

    <p>MOV DL, [DI]</p> Signup and view all the answers

    The bit that is set if the result of the computation or comparison performed by an instruction is zero is known as what?

    <p>Zero flag (ZF)</p> Signup and view all the answers

    Which bit is set when the result of any computation is negative?

    <p>Sign flag (SF)</p> Signup and view all the answers

    In real mode, if the segment register value is E001H, what is the starting address of the segment?

    <p>E001H</p> Signup and view all the answers

    In real mode, if the segment register value is 1234H, what is the ending address of the segment?

    <p>12340H</p> Signup and view all the answers

    What is the value of the physical address of the combination B2C0 : FA12 in real mode?

    <p>1ACD2H</p> Signup and view all the answers

    What describes the memory segment's location, length, and access rights?

    <p>Descriptor</p> Signup and view all the answers

    What is the maximum length of the local and global descriptor tables?

    <p>64KB</p> Signup and view all the answers

    In the descriptor format of the 80286 microprocessor, how many bytes does the base address consist of?

    <p>4 bytes</p> Signup and view all the answers

    Study Notes

    Microprocessor Question Bank

    • Memory Above 1MB: Called extended memory
    • First 1MB of Memory: Often called real memory
    • Cache Memory: High-speed temporary storage for data transfer between memory and the CPU
    • 8KB Cache Microprocessor: Intel 80486
    • 16MB Memory System Microprocessor: Intel 80386
    • Address Bus: Requests memory or I/O location from memory or I/O devices
    • Data Bus: Transfers information between the microprocessor, memory, and I/O addresses
    • Control Bus Lines: Select and cause memory or I/O to perform read or write operations
    • IORC Signal: Purpose is memory write control
    • IOWC Signal: Purpose is I/O write control
    • MWTC Signal: Purpose is memory write control
    • MRDC Signal: A. Purpose is memory read control
    • Bus: Set of common connections that carries the same type of information
    • Memory Map: Windows & DOS memory have different memory maps
    • Memory Size and Bus Width: Memory size depends on the address bus width. If data = 16-bit and address = 26-bit in 80386EX, memory size is 64MB. If data = 16-bit and address = 20-bit in 8086, memory size is 1MB.
    • Pentium Microprocessor and Address/Memory Size: 32-bit address bus = 4GB memory on Pentium and 4GB on Pentium 4
    • TPA in Memory Map (Windows): 2GB
    • System Area in Windows Memory Map: 640KB
    • TPA in DOS Memory Map (DOS): 640KB
    • System Area in DOS Memory Map (DOS): 384KB
    • Microprocessor Function: Data transfer between itself and memory, program flow with decisions, simple arithmetic & logic operations
    • BIU (Bus Interface Unit): Fetches instructions, reads data from memory and I/O ports, writes data to memory and I/O ports.
    • EU (Execution Unit): Executes instructions.
    • Code Segment Register in 8086: Consists of 16 bits
    • Stack Segment Register in 8086: Consists of 16 bits
    • 8086 Microprocessor: 16-bit microprocessor, 20-bit address bus, 1MB memory
    • Maximum Segment Size in 8086: 64KB
    • Code Segment Register (CS): Contains the base or start address of the current code segment
    • Data Segment Register (DS): Contains the 16-bit address pointing to the next instruction code within 64KB
    • Instruction Pointer (IP): Contains the 16-bit offset address used with data segment area
    • Base Pointer (BP): Points to the current data segment .
    • Stack Pointer (SP): Points to the current stack
    • Register, AX: Consist of 16 bit
    • Register, BL: Consist of 8 bit
    • Flags Register: Responsible for indicating the result of addition, memory condition, or condition of result of ALU operations or result of subtraction
    • Output Flag: If the results of computation is zero
    • Carry Flag: If there is a carry in case of addition
    • Overflow Flag: If the result of a computation is negative
    • Memory Addresses: Real-mode addressing in 8086, involves segment and offset values

    Other Information

    • Descriptor Tables: Maximum length is 64KB, base addresses(3-bytes), limits(2.5 bytes) vary with microprocessor type (80286, 80386, Pentium II).
    • Instruction Types: Register addressing mode, direct addressing mode, immediate addressing mode, based indexed addressing mode.
    • Flags (Flags Register): Zero flag, carry flag, sign flag, overflow flag
    • Arithmetic Operations: instructions involving addition, subtraction, multiplication, division.
    • Logical Operations: Instructions like AND, OR, XOR, NOT
    • Shift operations: instructions involve shifting right/left
    • Transfer Instructions: instructions for transfer data between registers, transfer data between register and memory.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Related Documents

    Microprocessors Past Paper PDF

    Description

    Test your knowledge on microprocessor architecture and memory concepts with this quiz. Topics include cache memory, address buses, and different types of microprocessors. Perfect for students and enthusiasts looking to reinforce their understanding of microprocessor functionality.

    More Like This

    Use Quizgecko on...
    Browser
    Browser