5.41 · exercise

Predict: Arithmetic Execution

Act as the CPU. Trace fixed-width wraparound, carry propagation across a pair of adds, and a signed widening multiply.

0 of 3 correct

Mental Trace

mov w20, -1
add w20, w20, 2

Mental Trace

mov x20, 5
mov x23, 7
mov x21, -1
mov x24, 1
adds x27, x21, x24
adcs x26, x20, x23

Mental Trace

mov w20, 2
mov w21, -5
smull x22, w20, w21