Bitwise Operations Flashcards

1
Q

ands and its alias

A

sets or clears N and Z flags according to the result
tst is an alias for ands stored in xzr

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

The use of bitmasking

A

Setting certain bits in a number

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

Bit Clear’s logical equivalent

A

AND NOT

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

Alias of mvn

A

orn with xzr

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

Logical Shift Left

A

0 is shifted into rightmost bit
Shifted out bits are lost

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

Logical Shift right

A

0 is shifted into leftmost bit
Shifted out bits are lost

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

(T/F)LSR is division by power of two and LSL is multiplication by power of two

A

TRUE

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

Arithmetic Shift RIght

A

Sign bit is duplicated when shifting
Preserves sign when dividing by power of two

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

Rotate Right

A

Bits shifted out on the right are inserted on the left

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

Sign Extend Byte(sxtb)

A

Sign extends bit 7 into bits 8-31

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

Sign extend Halfword(sxth)

A

Sign-extends bit 15 to bits 16-31

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

Signed extend word(sxtw)

A

sign extends bit 31 into bits 32-63

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

Unsigned extend byts(uxtb)

A

Zero-extends bits 8-31

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

Unsigned Extend Halfword(uxth)

A

Zero-extends bits 16-31

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