Elektrine lite

← Feed

@wiert@mastodon.social

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)