5.7 · exercise
Practice: Mental Memory Tracing
Act as the CPU. Trace the memory addresses and register states through these AArch64 snippets.
0 of 10 correct
Mental Trace
mov x20, 0x1000 ldr x21, [x20, 16]!
Mental Trace
mov x28, 0x2000 str w20, [x28], 8
Mental Trace
mov x28, 0x2000 str w20, [x28], 8
Mental Trace
mov x21, 5 ldr x22, [x29, x21, LSL 3]
Mental Trace
add sp, sp, -28 & -16
Mental Trace
fp .req x29 c_s = -4 add sp, sp, -4 & -16 mov w21, 10 str w21, [fp, c_s]
Mental Trace
main: stp x29, x30, [sp, -(16 + 12) & -16]!
Mental Trace
main: stp x29, x30, [sp, -32]!
Mental Trace
ldrsb w20, [x29] // Address holds the byte 0xFF
Mental Trace
ldrb w20, [x29] // Address holds the byte 0xFF