4.7.3.4 Fo CompOrgArch (Addressing Modes) Flashcards
(8 cards)
What are the 4 memory addressing modes
- Immediate
- Direct
- Indirect
- Indexed
What is immediate addressing
- When the absolute value supplied as a part of the operand
Explain what ADD 10 does using immediate addressing
Add the value 10 to the value in the Accumulator
What is direct memory addressing
- When the absolute value is stored in the memory address specified in the operand
Explain what ADD 10 does using direct addressing
Add the value stored in location 10 to the accumulator
What is Indirect addressing
When the memory address stored in the operand points to another address that holds the absolute data that is to be added to the accumulator
Explain what ADD 10 does using indirect addressing
- Go to the memory address 10 and go to the address specified in 10, then add the value in that memory address to the accumulator
What is indexed addressing
The number given in the operand is added to the number in the index register and the number in the summed address is added to the value in the accumulator