MVI Instruction in 8085 - Move Immediate Data into Registers
Introduction
Need to load a specific value directly into a register? That’s where MVI (Move Immediate) comes in! Unlike MOV, which transfers data between registers, MVI allows you to assign a fixed value directly to a register or memory location.
In this guide, we’ll break down how MVI works, explore its execution at the pin level, and provide hands-on examples so you can see it in action!
Syntax & Operand Details
Mnemonic: MVI
Operands: Destination, 8-bit Data
Syntax: MVI D, XX
D = Destination Register (where data is loaded)
XX = 8-bit Immediate Data
Addressing Modes
MVI uses immediate addressing mode, meaning data is directly provided in the instruction.
Hex Code Representation
Execution & Pin-Level Breakdown (T-Cycle Analysis)
T-Cycle Breakdown:
Example with Step-by-Step Execution
Example: Load 45H into Register B
MVI B, 45H ; Load 45H into register B
Step-by-Step Execution:
The processor fetches the instruction opcode (06).
The next byte (45H) is fetched and stored in register B.
Register B now holds 45H.