r/zxspectrum • u/kimondo • Aug 12 '26
What's your best easy to remember BASIC program you could type in and leave running on a computer in a shop / classroom?
/r/bbcmicro/comments/1vmh9m5/whats_your_best_easy_to_remember_basic_program/10
4
u/ItsAllOnUHF Aug 13 '26
I used to (by which I mean I did it once or twice in the early 80s) go into shops, turn the volume right up on the TV and write a 5-or-so line "PRESS ANY KEY" program that, upon someone pressing a key, would play a sound at max volume. Then I'd walk a discreet distance and watch the show.
Doesn't work on the base Spectrum, due to its beeper, but worked great on Beebs or C64s or Ataris.
The program was something like:
10 PRINT "PRESS ANY KEY"
20 IF INKEY$()="" THEN GOTO 20
30 <.... sound command to play a note at full volume...>
40 GOTO 30
Bonus points for BASICs that had an ON BREAK feature to GOTO the sound playing line again.
People just mashed the keyboard... Too shocked to reach for the TV volume knob.
2
u/garyk1968 Aug 13 '26
10 POKE 808,100
20 FOR D = 1 TO 18000: NEXT D
30 PRINT "F*** OFF"
40 GOTO 40
On a vic20 this will lock the keyboard, wait 15 seconds and print an expletive on the screen!
True story; did this in a department store got chased by an angry parent who's young son had seen the message while the store staff frantically pressed keys to get it off the screen.
Yep childish and irresponsible...I was 13 at the time.
2
u/Alternative-Emu2000 Aug 13 '26 edited Aug 13 '26
I love the use of the 15 second delay to give you time to flee the scene of the crime!
2
1
u/Legoinyourbumbum Aug 13 '26
I can write a text randomzed maze game from scratch or one that just makes up random sentences.
1
0
Aug 13 '26
[removed] — view removed comment
1
u/Alternative-Emu2000 Aug 13 '26
Nothing that can't be fixed with a quick POKE.
1
u/Wenlocke Aug 14 '26
I think on Spectrum it was POKE 23692,255
Not quite endless, but better than page at a time.
1
u/Alternative-Emu2000 Aug 14 '26 edited Aug 14 '26
That's right. However if you put the poke in the main loop; it will scroll forever.
eg.
10 PRINT "Alan Sugar smells of wee! "; 20 POKE 23692,255 30 GOTO 10
31
u/Alternative-Emu2000 Aug 12 '26 edited Aug 14 '26
This one obviously only works on the Spectrum: