← All SNES demos

Callee-Saved Restore Curve

Motion & Curves

Two detuned sine terms per axis draw a decaying harmonograph stroke by stroke. Six coefficient sets cycle through distinct curves.

Self-running — no controller input required.

Verify fidelity checks the recorded result against 0xADD8.

Source csrjmp.ccsrjmp.h in wbniv/llvm-mos-65816

What you see

Two detuned sine terms per axis draw a decaying harmonograph stroke by stroke. Six coefficient sets cycle through distinct curves.

What is checked

Fourteen coefficient bytes remain live across setjmp. A worker uses the callee-saved register block and longjmps past its normal return, so the saved context must restore every coefficient at the correct offset.

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