THE LITTLE FIRMWARE WORKSHOP
Read the code. Trace the bits. Bring a quiet register back to life, eight hex digits at a time.
32-bit ARM Cortex-M · little-endian · standard alignmentSpecific compiler and hardware assumptions appear in each snippet.
What is the final unsigned 32-bit value of REG?
Type 8 hex digits (0–9, A–F), then test your register.
YOUR WORKBENCH COMPANION
Trace the C snippet and enter the final value of REG as exactly eight hexadecimal digits. You have six tries. Leading zeroes count.
A ✓ Right digit in the right socket.
A ↔ A digit the answer still needs, in another socket.
A · No remaining copy of this digit in the answer.
Hex counts 0–9, then A=10, B=11, C=12, D=13, E=14, F=15. Each digit is four bits; eight digits make a 32-bit register.
x | mask
x & ~mask
x ^ mask
x << n
Start with Repair 1, “Set one bit, clear a nibble.” Workshop lets you choose all 33 repairs. Daily picks one for your local date; it uses the same saved repair state.
These are source-authored puzzles with stated ARM/compiler assumptions, not a general C interpreter. Your input stays text. Scratchpads and progress are saved only on this device.
THE REPAIR DRAWERS
Each drawer keeps its own guesses and notes. A ✓ means repaired; ◇ means you studied its solution.