4.7.3.4 Fo CompOrgArch (Addressing Modes) Flashcards
(8 cards)
1
Q
What are the 4 memory addressing modes
A
- Immediate
- Direct
- Indirect
- Indexed
2
Q
What is immediate addressing
A
- When the operand is the data
3
Q
Explain what ADD 10 does using immediate addressing
A
Add the value 10 to the value in the Accumulator
4
Q
What is direct memory addressing
A
- When the operand is the address of where the data is stored
5
Q
Explain what ADD 10 does using direct addressing
A
Add the value stored in location 10 to the accumulator
6
Q
What is Indirect addressing
A
When the operand is the address of a location that hold the address of where the data is stored
7
Q
Explain what ADD 10 does using indirect addressing
A
- 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
8
Q
What is indexed addressing
A
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