Topic 9 theory Flashcards
1
Q
Types of operations
A
Data transfer, Arithmetic, Logical, transfer of control
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
3
Q
What are arithmetic shifts used for
A
Efficient ways to perform multiplication or division of signed integers by powers of two
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
5
Q
Clear bits by a mask
A
use 0 and AND operator
6
Q
Set bits by a mask
A
use 1 and ORR operator
7
Q
Invert bits by a mask
A
use 1 and XOR operator
8
Q
Rotate left in ARM
A
use Rotate right = 32 - rotate left