18 Addressing Modes(NOT ASSESSED) Flashcards
The most common addressing modes are:
- Direct Addressing
- Indirect Addressing
- Immediate Addressing
- Relative Addressing
Direct Addressing
The value to be referenced is obtained by specifying its memory address or register directly in the instruction.
Example of Direct addressing
MOVE A, B
Example of Direct addressing?
MOVE A, $0F
Indirect Addressing
The value of the source specifies the memory address that contains the data to be copied to the destination register.
Indirect Addressing
MOVE A, (B)
Indirect Addressing
MOVE A, ($0F)
Immediate Addressing
The value to be referenced is used as an operand of the instruction.
Immediate Addressing
MOVE A, #$1F
Relative Addressing
This mode is used for branching to a certain instruction. This addressing mode affects the PC.
Relative Addressing
JMP #distance
Addressing modes in High risc?