Commit Graph

3 Commits

Author SHA1 Message Date
Lephe 14846e56ae
add functions with multiple parameters 2019-10-08 21:20:08 +02:00
Lephe 2c7287338c
use proper line rendering
There are some edge cases to Bresenham's line drawing algorithm with
cumul=dx. The fx-92 SC+ clearly checks cumul>dx, but for dx=1 and dy=1
this results in a horizontal line.

Apparently dx=dy is the only case where the fx-92 SC+ behaves
differently than cumul>dx, as seen with dx=5 dy=4 (causes cumul=dx after
2 iterations but does not trigger the condition).

Also allow the program to be interrupted with Escape while paused.
2019-10-06 00:06:04 +02:00
Lephe 3d8dcdd989
add command-line options and a text lexer
This change lays the ground for automated unit tests. It adds
command-line options to select the input language format between URL
(hexa text) and plain text, change a few output settings, and redirect
graphical output to an image.

A text lexer has also been added so that unit tests and new programs can
be written in an English-like syntax instead of raw hexadecimal.
2019-10-02 07:18:29 +02:00