5.74 · exercise

Advanced quiz: binary logic

Bitfield insert and extract, arithmetic versus logical shifts, and two's complement negation.

0 of 5 correct

Multiple choice

Why must asr be used instead of lsr when dividing a negative signed integer by a power of two?

Multiple choice

The register-to-register mov xd, xm, where neither operand is sp, is an alias for which instruction?

Multiple choice

What separates bfi (bitfield insert) from ubfiz (unsigned bitfield insert in zero)?

Multiple choice

bfxil wd, wn, lsb, width copies a field into the low bits of wd. What happens to the remaining bits of wd?

Multiple choice

In 4-bit two's complement, -5 is 1011. What do you get by inverting every bit and then adding 1?