YEAR 2 CO1 WEEK 2 MEMORY ADDRESS MODES Flashcards

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

What are memory addresses used for?

A

They are different ways of referring to the unique addresses for every location of memory.

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

Describe Immediate Adressing.

A

Means the data to be used is hard coded into the instruction itself.
Fastest method of addressing as does not involve main memory at all.

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

Describe Direct (or Absolute) Addressing.

A

Very simple way of addressing memory - means code refers directly to location in memory.

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

State pros and cons of Direct Addressing.

A

Bad thing depends on the correct data always being present at same location.

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

Describe Indirect Addressing.

A

Means addresses stored in a table in memory (often lookup table).
Operand acts as pointer telling CPU where to look for addresses within the table then using these to find the data needed.

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

State pros and cons to Indirect Addressing.

A

Slower than Direct as CPU to look up two things.

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

Describe Indexed Addressing.

A

Means the final address for the data is calculated by adding an offset to a base address.
Very often data stored as a chunk in memory being contiguous.
The array has ‘base address’ which the location of the first element then an ‘index’ is used that adds an offset to the base address in order to fetch any other element within the array.

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