๐ŸŽ“ BookMCQ
โ† Back to 5. The 8085 Microprocessor

๐Ÿ“ Timing Diagram of MOV M, reg of 8085 Microprocessor (8 MCQs)

Register-to-Memory Transfer Through MOV M,reg

The 8085 instruction MOV M,reg transfers an eight-bit value from a general-purpose register into the memory location addressed by the HL register pair. The source may be A, B, C, D, E, H or L. The instruction occupies one byte and requires an opcode-fetch cycle followed by a memory-write cycle.

HL Address Generation and Source Register Selection

The H and L registers combine to provide the sixteen-bit destination address. The specified source register supplies the data byte. During the memory-write machine cycle, the address is presented through the address bus and the processor drives the data bus with the selected register contents.

Opcode Fetch and Memory Write Timing Sequence

The opcode-fetch cycle takes four T-states. The following memory-write cycle takes three T-states. During T1 of the write cycle, HL supplies the address and ALE enables lower-address latching. In the subsequent states, the source byte appears on AD0โ€“AD7 and WR becomes active low to store it in memory.

Example of MOV M,B and Its Memory Effect

Suppose HL contains 3000H and register B contains 5AH. Executing MOV M,B places 5AH at memory location 3000H. The processor first fetches the opcode, then performs a memory-write operation using HL as the destination address. Register B and the HL pair retain their original contents.

Write-Cycle Duration and Status-Flag Behavior

The instruction requires seven T-states in total: four for opcode fetching and three for memory writing. It transfers existing data without arithmetic or logical processing, so all five 8085 flags remain unchanged. Similar instructions using A, C, D, E, H or L as the source follow the same basic timing structure.

Misconceptions About MOV M,reg Operation

'MOV M,B stores data at address B' is incorrect because HL determines the memory destination. 'RD becomes active during this instruction's data-storage cycle' is incorrect because WR controls memory writing. 'The source register is cleared after transfer' is incorrect because MOV preserves its original contents.

Memory-Write Timing and Register-Source Questions

Identify the source register and the destination address before tracing the timing diagram. Distinguish the opcode-fetch cycle from the three-T-state memory-write cycle and locate the ALE and WR signals. Calculate the final memory contents and explain why the source register, HL pair and status flags remain unchanged.

Memory-Write and Register-Transfer Terminology

  • MOV M,reg - Copies register data into memory.
  • HL Pair - Identifies the destination address.
  • WR - Activates memory writing.
  • ALE - Enables lower-address latching.
  • Source Register - Supplies the data byte.
  • Memory Write - Stores data at a selected address.
2
Easy
4
Medium
2
Hard

๐Ÿ“ All Timing Diagram of MOV M, reg of 8085 Microprocessor MCQs

Q1. When the CPU fetches and executes the instruction MOV M, B, which sequence of Tโ€‘states correctly represents the fetch and execution phases?

A.T1: Opcode fetch, T2: Operand fetch, T3: Memory write, T4: Increment PC
B.T1: Opcode fetch, T2: Memory address formation, T3: Data transfer from B to bus, T4: Memory write โœ…
C.T1: Opcode fetch, T2: Register decode, T3: Memory read, T4: Write back
D.T1: Opcode fetch, T2: Increment PC, T3: Data fetch, T4: Store to memory
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: The correct answer is B because the fetch phase begins with an opcode fetch (T1), then the CPU forms the effective address using the Hโ€‘L pair (T2). In T3 the B register places its contents onto the internal data bus, and in T4 the data bus is written to the memory location addressed by HL. Option A misplaces the operand fetch step, C incorrectly describes a memory read instead of a write, and D puts the PC increment before the data transfer, which does not match the MOV M, reg timing.

Q2. Why does the MOV M, reg instruction rely on the Hโ€‘L register pair for its operation?

A.Because the accumulator must be loaded first. โœ…
B.Because the instruction uses the program counter as an address.
C.Because the Hโ€‘L pair contains the opcode.
D.Because the Hโ€‘L pair holds the 16โ€‘bit address that specifies the memory location M.
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: The MOV M, reg instruction stores a registerโ€™s value into the memory location pointed to by the HL pair; therefore the HL pair must contain a valid 16โ€‘bit address. Option A is irrelevant because the accumulator is not involved, B confuses the program counter with the address register, and C suggests the opcode resides in HL, which is incorrect. Only D correctly identifies the role of HL as the address source for the memory operand.

Q3. If the HL register pair contains 0x3F2A and the instruction MOV M, A is executed, which memory address receives the accumulator value?

A.16170 โœ…
B.10815
C.16171
D.16128
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: The HL pair directly forms the 16โ€‘bit address for the memory operand M, so the accumulator is stored at address 0x3F2A. Option B reverses the byte order, which is not how HL works. Option C adds one to the low byte, which would be the result of an increment operation, not a simple MOV. Option D points to a different address altogether. Therefore A is correct, reflecting the direct use of HL as the address.

Q4. Which statement about the flag register after executing MOV M, D is true?

A.All flags are set to 1. โœ…
B.Zero flag is cleared, others unchanged.
C.All flags remain unchanged.
D.Sign flag reflects the sign of D.
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: MOV M, reg transfers data between a register and memory but does not involve any arithmetic or logical operation, so none of the condition flags are altered; they retain their previous values. Option A incorrectly asserts that all flags become 1, B changes only the zero flag, and D suggests the sign flag mirrors the transferred data, which never happens for a pure move instruction. Hence C accurately describes the flag behavior.

Q5. During execution of MOV M, D, at which Tโ€‘state does the D register place its contents onto the internal data bus?

A.T2 โœ…
B.T3
C.T4
D.T5
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: In the standard timing diagram for MOV M, reg, the register source (here D) outputs its value onto the internal data bus during the third clock cycle, designated T3. T1 fetches the opcode, T2 forms the address using HL, and T4 performs the memory write. Option A is too early, C occurs after the write, and D is beyond the required cycles. Therefore B correctly identifies T3 as the dataโ€‘bus driving phase.

Q6. A programmer writes three consecutive MOV M, C instructions. If each instruction consumes 7 Tโ€‘states, how many clock cycles are used in total?

A.21
B.14 โœ…
C.7
D.28
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: Each MOV M, C instruction requires 7 Tโ€‘states, so three backโ€‘toโ€‘back instructions need 3โ€ฏร—โ€ฏ7โ€ฏ=โ€ฏ21 clock cycles. Option B mistakenly divides by two, C treats only one instruction, and D adds an extra Tโ€‘state that does not exist in the standard timing. The correct total of 21 cycles reflects the cumulative cost of executing three identical move operations sequentially.

Q7. What is the primary reason the MOV M, reg instruction uses the internal bus rather than an external I/O bus?

A.To reduce latency by avoiding external bus arbitration.
B.Because external buses cannot address memory. โœ…
C.Because the instruction does not involve I/O devices.
D.Because the internal bus has higher voltage levels.
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: The internal data bus connects registers and memory directly inside the CPU, allowing the MOV M, reg operation to complete without the overhead of external bus request and grant cycles. This reduces latency and simplifies timing. Option B is false because external buses can address memory; C is true but does not explain the performance benefit; D is irrelevant to functional design. Hence A best captures the architectural advantage.

Q8. What is the binary opcode for MOV M, H in the SAPโ€‘III instruction set?

A.100110 โœ…
B.1100101
C.1100110
D.100101
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: The opcode for MOV M, H in the SAPโ€‘III family is defined as 01100110. Option A (00100110) corresponds to a different register pair, B (01100101) encodes MOV L, C, and D (00100101) represents MOV B, M. Only option C matches the documented binary pattern for moving the contents of H into the memory location addressed by HL, making it the correct choice.

๐Ÿ”— Related Topics (MCQs)