← All SNES demos

Unaligned Record Reader

Algorithms & Data

Record outlines partition the stream, and each field colors exactly the bytes it occupies. Alternating record shapes expose their different strides.

Self-running — no controller input required.

Verify fidelity checks the recorded result against 0x4676.

Source packrec.cpackrec.h in wbniv/llvm-mos-65816

What you see

Record outlines partition the stream, and each field colors exactly the bytes it occupies. Alternating record shapes expose their different strides.

What is checked

MOS scalar ABI alignment is one byte. The parser checks exact record sizes, field offsets, and wide reads from odd addresses; the packed attribute does not introduce a different layout here.

Compiler stress-test #149. The downloadable ROM and browser player use the same verified artifact.