1.2.4.4 Modes of addressing memory Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the four methods of addressing memory?

A
  • Immediate
  • Indexed
  • Direct
  • Indirect
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is immediate addressing?

A

Sometimes called an immediate operand, the value in the address part of the instruction is actually the value to be used, so the memory does not needed to be searched to find the required value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Direct addressing?

A

The value in the address part of the instruction is a reference to the address memory where the required value is located.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is indirect addressing?

A

The value in the address part of the instruction is a reference to a memory location that contains the address in memory where the required value is located. This mode of memory is very useful as it means larger address ranges can be used to reference data and instructions.

It breaks the limitation of 4 bits for the operand.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is indexed addressing?

A

Using an index register (IR). The IR is set to 0, so the first value is taken from 10 + 0.

After this is done, the IR is incremented and the same instruction is used again – this time, the address is 10 + 1. That is why an array needs to be stored in contiguous memory locations. We store the address for element 0 of the array in the index register and then increment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

instruction format of assembly code

A

Addressing Mode -> OpCode -> Operand (Address/data)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly