Bitwise Operations Flashcards

1
Q

Bitwise Logical Instructions do what?

A

Manipulate one or more bits in a register

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

A instruction ending in a s means?

A

Depending on the result of the operation the corresponding flags will be set

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

tst is an alias for which instruction?

A

ands xzr, Xn, Xm

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

Logical Shifts result in?

A

The bit pattern is moved left or right a number of bits depending on the argument. Empty spaces created when shifting are filled with a zero and bits shifted out of the register are lost

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

Arithmetic Shifts result in?

A

The function the same as Logical shifts but the sign bit is preserved

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

Rotations result in?

A

Depending on the direction the bit is rotated from the right and inserted on the left (right rotation) or vise-versa

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

Sign Extensions result in?

A

The sign bit is duplicated into the bits outside of the scope of the instruction. So sign extend byte copies the sign bit to bits 7-31 (w registers) (to bit 63 with x registers)

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

Unsigned Extensions result in?

A

0 is placed into all the bits outside of the scope of the instruction. So unsigned extend byte places 0 in bits 7-31 (w registers) (to bit 63 with x registers)

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