Post #1540113
2026-04-22 14:10 UTC
@electron_greg @Robsonde @EdS
The code also runs (much faster!) in the JavaScript Applesoft BASIC emulator at https://www.calormen.com/jsbasic/
I had to add zeros to the line numbers so I could split original line 6 in 60 and 65, plus adding the `IF M>0` check.
Not sure why the `P=Q: M=0` bit had to move to line 65: my Applesoft BASIC knowledge is from 40+ years ago.
With lines 65 and 60 combined, the result would wrongly be `000000922222297933333`.
Oddly, lines 40 and 50 work without splitting.
Replies (2)
-
@wiert@mastodon.social 2026-04-22 14:10
@electron_greg @Robsonde @EdS If anyone knows why that is, please let this thread know.
-
@anthk@neopaquita.es 2026-04-22 15:02
@wiert @electron_greg @Robsonde @EdS The code runs straight in 'bas' interpreter for Unix too. https://www.moria.de/~michael/bas/