8051 Addressing Modes
8051 Addressing Modes
8051 Addressing Modes
OR
Immediate Addressing
Register Addressing
Direct Addressing
Register – Indirect Addressing
Indexed Addressing
Immediate Addressing
In Immediate Addressing mode, the operand, which follows the
Opcode, is a constant data of either 8 or 16 bits.
The name Immediate Addressing came from the fact that the
constant data to be stored in the memory immediately follows the
Opcode.
The constant value to be stored is specified in the instruction itself
rather than taking from a register.
The destination register to which the constant data must be copied
should be the same size as the operand mentioned in the
instruction.
Example: MOV A, #030H
Here, the Accumulator is loaded with 30 (hexadecimal).
The # in the operand indicates that it is a data and not the address
of a Register.
Immediate Addressing is very fast as the data to be loaded is given
in the instruction itself.
Indexed Addressing