All Exams Test series for 1 year @ ₹349 only
Question

The number of memory cycles required to execute the following 8085 instructions

(i) LDA 3000 H

(ii) LXI D, F0F1 H

Would be-

The correct answer is

4 for (i) and 3 for (ii)

To determine the number of memory cycles required for the given 8085 instructions, we need to analyze the fetch and execution phases of each instruction.

Analyzing Instruction (i): LDA 3000 H

The LDA (Load Accumulator Direct) instruction is a 3-byte instruction used to load the 8-bit data from a specific memory location into the accumulator (register A). The address is specified directly within the instruction.

  • Opcode Fetch: The processor first fetches the opcode for the LDA instruction from memory. This requires 1 memory cycle.
  • Operand Fetch (Low Byte): The next byte fetched from memory is the low byte of the 16-bit address (00 H in this case). This requires 1 memory cycle.
  • Operand Fetch (High Byte): The third byte fetched from memory is the high byte of the 16-bit address (30 H in this case). This requires 1 memory cycle.
  • Memory Read: The processor reads the data byte from the memory location specified by the address (3000 H). This requires 1 memory cycle.

Therefore, the total number of memory cycles for LDA 3000 H is the sum of these steps: 1 + 1 + 1 + 1 = 4 memory cycles.

Analyzing Instruction (ii): LXI D, F0F1 H

The LXI (Load Extended Register Pair Immediate) instruction loads a 16-bit immediate data value into a register pair (like BC, DE, HL, or SP). In this case, it loads the register pair DE with the value F0F1 H.

  • Opcode Fetch: The processor fetches the opcode for the LXI D instruction. This requires 1 memory cycle.
  • Operand Fetch (Low Byte): The next byte fetched is the low byte of the immediate data (F1 H). This requires 1 memory cycle.
  • Operand Fetch (High Byte): The subsequent byte fetched is the high byte of the immediate data (F0 H). This requires 1 memory cycle.

The LXI instruction does not access external memory for data during execution, as the data is immediately available within the instruction itself. Therefore, the total number of memory cycles for LXI D, F0F1 H is 1 + 1 + 1 = 3 memory cycles.

Conclusion

Based on the analysis:

  • Instruction LDA 3000 H requires 4 memory cycles.
  • Instruction LXI D, F0F1 H requires 3 memory cycles.

This corresponds to the option stating 4 memory cycles for (i) and 3 memory cycles for (ii).

Was this answer helpful?

Important Questions from Instruction Set of 8085

  1. Calculate the time required to execute the entire instruction cycle if two machine codes, 0011 1110 and 0011 0010, are stored in memory locations 2000H and 2001H, respectively.

    If the clock frequency is 2 MHz, the first machine code represents opcode to load data byte in the accumulator and the second code represents data to be loaded in the accumulator.

  2. Following instruction is executed in 8085, LDB 4000H

    Identify the correct statement.

  3. In 8085A microprocessor, the operation performed by the instruction LHLD 2100H is

  4. __________ address instruction is supplied to the microprocessor by an external device for INTR signal acknowledgement.

  5. A fetch cycle is the

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App