Chapter 3: Extra Stuff Flashcards

1
Q

What does LR stand for?

A

Link Register

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

What does SP stand for?

A

Stack Pointer

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

What does FP stand for?

A

Frame pointer

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

In ARM, the r15 is what?

A

The PC

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

In ARM, the r14 is what?

A

The Link Register (LR)

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

In ARM, the r13 is what?

A

The Stack Pointer (SP)

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

In ARM, the r11 is what?

A

The Frame Pointer (FP)

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

In ARM, the r11 is what?

A

The Frame Pointer (FP)

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

What is “sign-extension”

A

Copying the leading bit, or “extending” it to fill the leading spaces when the value is copied, effectively extending the plus or minus sign to an extent

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

What is “sign-extension”

A

Copying the leading bit, or “extending” it to fill the leading spaces when the value is copied, effectively extending the plus or minus sign to an extent

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

Is LDR r0, = 0x12234 a pseudo instruction?

A

Yes

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

is ADR r0, label a psuedo instruction?

A

Yes

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

is NEG a psuedo instruction?

A

Yes

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

What do TEQ, TST, CMP, and CMN do exactly?

A

CMP = r0 - r1

CMN = r0 - (-r1)

TST = ANDs the two operands together (usually used for testing individual bits)

TEQ = Performs an EORS on the two operands and discards the results

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

CMP and CMN update which flags?

A

All flags

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

What do SBC and RSC do?

A

Subtract with carry and reverse subtract with carry

17
Q

Difference between NEG and MVN?

A

NEG specifically subtracts the number from 0 and stores it in a register. It is a pseudo instruction.

MVN moves the logical complement (flipping every 1 to 0 and every 0 to 1)

18
Q

LSL is a pseudo instruction. How does ARM implement it?

A

MOV r3, r3, LSL #

19
Q

LSR is a pseudo instruction. How does ARM implement it?

A

MOV r3, r3, LSR #

20
Q

ASR is a pseudo instruction. How does ARM implement it?

A

MOV r3, r3, ASR #

21
Q

ROR is a pseudo instruction. How does ARM implement it?

A

MOV r3, r3, ROR #

22
Q

RRX is a pseudo instruction. How does ARM implement it?

A

MOV r3, r3, RRX

23
Q

Logical shifts always occur ____ the operand is use for anything

A

BEFORE