Instruction Code: Addressing Modes
Instruction Code: Addressing Modes
There are three parts of the Instruction Format which are as follows −
Addressing Modes
Instructions that define the address of a definite memory location are known as memory
reference instructions. The method in which a target address or effective address is
recognized within the instruction is known as addressing mode.
The address field for instruction can be represented in two different ways are as follows
−
Address
The address is represented as the location where a specific instruction is constructed in
the memory. The address bits of an instruction code is used as an operand and not as
an address. In such methods, the instruction has an immediate operand. If the second
part has an address, the instruction is referred to have a direct address.
There is another possibility in the second part including the address of the operand.
This is referred to as an indirect address. In the instruction code, one bit can signify if
the direct or indirect address is executed.
The figure shows a diagram showing direct and indirect addresses.