5.77 · exercise

Basic quiz: binary arithmetic

How a CPU does integer arithmetic in fixed-size registers: modulus wraparound, subtraction through negation, the meaning of a carry out, adc for extended precision (values wider than one register), and the iterative multiplication algorithm.

0 of 5 correct

Multiple choice

What kind of arithmetic does a CPU normally do, given that every integer result has to fit in a fixed-size register?

Multiple choice

How does the Arithmetic Logic Unit (ALU) perform subtraction in hardware?

Multiple choice

When two unsigned values are added, what does a carry out of the most significant bit indicate?

Multiple choice

In extended-precision arithmetic, what do adc and adcs add that add does not?

Multiple choice

In the iterative binary multiplication algorithm, what two sub-steps are performed in each iteration?