H8HEXHAVENREGISTER REPAIR

THE LITTLE FIRMWARE WORKSHOP

A small chip.
A satisfying fix.

Read the code. Trace the bits. Bring a quiet register back to life, eight hex digits at a time.

BENCH 08
Ready for repair
∿∿∿
01 / INSPECT THE CIRCUITWORKSHOP
REPAIR 01BIT MASKS

32-bit ARM Cortex-M · little-endian · standard alignment
Specific compiler and hardware assumptions appear in each snippet.

register.cC
YOUR MISSION

What is the final unsigned 32-bit value of REG?

Open your scratchpad saved on this device
02 / POWER UP THE REGISTER1 OF 6
REG 0xMSB → LSB
Right placeElsewhereAbsent

Type 8 hex digits (0–9, A–F), then test your register.

YOUR WORKBENCH COMPANION

Small steps. Bright ideas.

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.

A quick hex refresher

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.

0x0000000F = 15
0x00000010 = 16
0x80000000 = bit 31 set

Tools for your mental bench

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

Find your next little fix.

Each drawer keeps its own guesses and notes. A ✓ means repaired; ◇ means you studied its solution.