Fibonacci

A rewritten test that produces several steps of the Fibonacci sequence.

This test is a modification of FibonacciElement to compute a number of elements of the Fibonacci sequence. It should be easier to track down any errors this way.

The translated code should have a standard prelude that sets SP=256 and jumps to Sys.init.

Files

Results

  • Stack contains: 0, 1, 1, 2, 3, 5, 8, 13.
Last modified February 20, 2025: Reorganize Ch 08 web, more tests cases. (e34f122)