ZX81 Listing for hw.p


ZX81 program listing for *HELLO WORLD**SLR/2024*

*HELLO WORLD**SLR/2024* (hw.p)

Saw this unique way of printing hello world and wanted to create my own version.


SYSTEM VARIABLES

PROG  : 16509
D-FILE: 16722
VARS  : 17515
E-LINE: 17516
STKBOT: 17516
STKEND: 17516


LEGEND

9999 means line number
PRINT means treat as KEYWORD P


PROGRAM LISTING

  10 REM *HELLO WORLD**SLR/2024*
  20 LET A$="HELLO WORLD/"
  30 DIM C$(LEN A$)
  40 FOR L=1 TO LEN A$
  50 LET C$(L)=CHR$ INT (RND*64)
  60 SCROLL
  70 PRINT C$
  80 IF C$(L)<>A$(L) THEN GOTO 5
0
  90 NEXT L
 100 PAUSE 500
 110 CLS
 120 RUN
 200 SAVE "HW"
 210 RAND 0
 220 RUN