An fx-92 Scientifique Collège+ algorithmic interpreter for PC.
Go to file
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
doc initial commit: most of the lexing and parsing work 2019-09-30 11:29:05 +02:00
tests use proper line rendering 2019-10-06 00:06:04 +02:00
.gitignore initial commit: most of the lexing and parsing work 2019-09-30 11:29:05 +02:00
ast.py use proper line rendering 2019-10-06 00:06:04 +02:00
drawing.py use proper line rendering 2019-10-06 00:06:04 +02:00
fx92.py use proper line rendering 2019-10-06 00:06:04 +02:00
interpreter.py use proper line rendering 2019-10-06 00:06:04 +02:00
lexer.py use proper line rendering 2019-10-06 00:06:04 +02:00
parser.py add the wait command 2019-10-05 11:55:06 +02:00
printer.py improve compatibility with older python 3 versions 2019-10-05 11:26:43 +02:00