arithmetic instructions Flashcards

1
Q

< operation >

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

< operation >
ADC – Add with Carry

A

Rd := Rn + Operand2 + Carry

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

< operation >

SUB – Subtract

A

Rd := Rn − Operand2

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

< operation >

SBC – Subtract with Carry

A

Rd := Rn − Operand2 − NOT(Carry)

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

< operation >
RSB – Reverse Subtract

A

Rd := Operand2 − Rn

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

< operation >
RSC – Reverse Subtract with Carry

A

Rd := Operand2 − Rn − NOT(Carry)

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

ADD r0, r1, r2

A

R0 = R1 + R2

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

SUB r5, r3, #10

A

R5 = R3 − 10

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

RSB r2, r5, #0xFF00

A

R2 = 0xFF00 − R5

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

RSB and RSC subtract in _____ order (e.g. y – x not x – y).

A

RSB and RSC subtract in reverse order (e.g. y – x not x – y).

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

There is no divide instruction –

A

There is no divide instruction – the compiler uses a run-time library function or shifts to perform division.

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