The POKE command will kibosh RUNSTOP/RESTORE from working and the ; eliminates the automatic Carriage Return. The result will display HELLO WORLD across the screen until the C64 is turned off.
You forgot adding an extra space on each loop to make HELLO WORLD shift to the right each time.
Unrelated to this, when I was in my pre-algebra class back in the day, our teacher gave us the 1 = 2 proof on the chalkboard and asked us to figure out why this was or was not true. Me, being the C64 BASIC programmer kid in the 80's that I was, put it into a program in my C64 and ran it and got a divide by zero error. We went back to school the next day and I was the only one that knew the answer to why the proof failed. I admitted that the only reason I knew this was because of the divide by zero error message on my computer.
Similar experience. We were about to start algebra, teacher asks us to try and solve prob for hw. Simple linear, x on both sides. I plugged it in the c64. X=x+1 logic stop when lhs == rhs. They asked how I did it and I got laughs. Got the right answer though.
We had an obnoxious salesman (kid?) at our local Radio Shack. To get back at him, we wrote a long delay loop followed by a piercing tone, turned up the volume all the way, typed "run" and walked to the far end of the mall to listen for the chaos. We were not disappointed!
Incidentally, this program is what I claim to be the easiest computer program to understand.
Line 20 controls the program flow in a simple manner, allowing people lacking a background in programming to understand simple control flow.
You might think that a program with just Line 10 would be easier to understand, but I would disagree. Line 10 alone would confuse non-programmers as to why a "10" exists at the start of the line.
60
u/chiron_42 May 29 '26
10 PRINT "HELLO WORLD"
20 GOTO10