5.34 · exercise

Quiz: Binary Logic & Numbers - Advanced

Work through bitfield insert and extract, arithmetic versus logical shifts, and two's complement negation on AArch64.

0 of 5 correct

Knowledge Check

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

Knowledge Check

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

Knowledge Check

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

Knowledge Check

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

Knowledge Check

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