by gus_massa · 5y ago · 0 comments
10 print "Hello, world!"
20 goto 10
run
Also: What is the tech stack? Which basic version are you emulating?There are some drawing commands, getpixel, etc.
But it should be 20 goto 10 if you want to print the same text again and again.
10 PRINT "OK"
20 GOTO 1
That reports an error "Cannot go to a nonexistant line". I think "real" BASIC interpreters would fall-through to the 10-line. I know my own toy BASIC does:https://github.com/skx/gobasic
Edit: Have reported issue, so it doesn't get lost in this thread.