A utility for looking at programs that run themselves when loaded. It copies the ZX81’s LOAD routine into RAM at 30832, patches it, and adds a short machine-code routine at 30815 that loads the next program on the tape and then stops instead of running it. Save it first, since the program you load will replace it. To use it, RUN, then start the tape when the screen shows the loading pattern. When the auto-run program has loaded, a report code appears and you can LIST it.
It needs 16K, since the machine code sits near the top of a 16K RAM pack.
Published in Syntax October 1983 (Stop Auto-Run).
Source Code
5 REM STOP AUTO-RUN
10 LET U$="042.020.064.054.239.035.034.022.064.054.011.035.054.011.035.054.118"
11 LET A=30815
12 FOR N=1 TO 65 STEP 4
13 POKE A,VAL U$(N TO N+2)
14 LET A=A+1
15 NEXT N
20 FOR A=832 TO 935
21 POKE (A+30000),PEEK A
22 NEXT A
30 FOR A=508 TO 518
31 POKE (A+30000),PEEK A
32 NEXT A
40 POKE 30840,124
45 POKE 30841,120
50 POKE 30871,124
55 POKE 30872,120
60 POKE 30893,124
65 POKE 30894,120
70 POKE 30897,44
75 POKE 30898,119
80 POKE 30519,207
85 POKE 30520,8
90 RAND USR 30815Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
