Topic 9 theory Flashcards

1
Q

Types of operations

A

Data transfer, Arithmetic, Logical, transfer of control

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

What is required when performing data transfer

A

Location of source and operands, Length of data must be indicated, addressing mode to be used

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

What are arithmetic shifts used for

A

Efficient ways to perform multiplication or division of signed integers by powers of two

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

Memory alignment

A

Data in memory is byte-level accessible, bus controller only accepts starting address that are multiples of 4. otherwise, misalignment

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

Clear bits by a mask

A

use 0 and AND operator

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

Set bits by a mask

A

use 1 and ORR operator

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

Invert bits by a mask

A

use 1 and XOR operator

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

Rotate left in ARM

A

use Rotate right = 32 - rotate left

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