5.73 · exercise

Intermediate quiz: binary logic

Logical instructions and their aliases, shifts and sign extension, and the integer widths and number bases behind them.

0 of 8 correct

Multiple choice

What is the range of a signed 32-bit value in two's complement?

Multiple choice

In the LP64 data model that Linux uses on AArch64, how many bits does a long int occupy?

Multiple choice

The tst instruction is an alias for which base instruction?

Multiple choice

What logical operation does the bic (bit clear) instruction perform?

Multiple choice

What is the difference between a logical shift right (lsr) and an arithmetic shift right (asr)?

Multiple choice

What does the sxtb wd, wn instruction do?

Multiple choice

In the bitfield insert instruction bfi wd, wn, #lsb, #width, what does #lsb specify?

Multiple choice

How many bits does a single octal digit represent?