Memory and Addressing Modes Flashcards

1
Q

what is the effective address

A

the address accessed by LDR or STR

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

Synatx for Immediate offset addressing

A

[Rn, #offset]

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

example of immediate offset addressing

A

LDR R0, [R1, #4]

LDR R0, [R1, #0]

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

Does immediate offset addressing change the value in the base register Rn

A

no

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

Syntax for register offset addressing

A

[Rn, Rm]

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

exmaple of register offset addressing

A

LDR R0, [R1, R2]

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

Advantage of register offset addressing

A

offset can be changed as program executes

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

does register offset addressing change the value in the base register

A

no

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

Syntax for scaled register offset

A

[Rn, Rm, LSL #2}

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

example of scaled register offset

A

LDR R0, [R1, R2, LSL #2}

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

When might scaled register offset be used

A

when offset is always 4x the count

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

in waht order does post index addressing work

A
  1. computes effecrive address and accesses memory

2. increments/decrements

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

example of post indexed addressing

A

LDR R4, [R1], #4

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

in what order does pre indexed addressing work

A
  1. increment/decrement

2. compute effective address and access memory

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

example of pre indexed addressing

A

LDR R4, [R1, #4]!

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

How can we tell immediate offset addressing from pre indexed addressing

A

the exclamation mark at the end

17
Q

what does the exclamation mark do in addressing modes

A

permanently changes the address in the base register

18
Q

can negative numbers be used in offset addressing

A

YES