ZX81 Mystery Program

See all articles from Sinc-Link v9 n5
Publication: Sinc-Link
Pub Details: Sinc-Link v9 n5 (Volume 9, Issue 5)
Date: September/October 1991
Pages: 10

This is a short program which enables a Basic instruction to be translated into machine code without the use of an interpreter or assembly code. When you have finished entering it, simply press RUN and all will be made clear.

 5 REM FOR ZX81 IN SLOW MODE
10 LET A=16509
15 PRINT TAB 2;PEEK A*256+PEEK (A+1)
20 LET L=PEEK (A+2)+256*PEEK (A+3)-1
25 LET A=A+3
30 FOR N=1 TO L
35 IF PEEK (N+A)<>126 THEN GO TO 50
40 LET N=N+5
45 GO TO 55
50 PRINT CHR$ (PEEK (N+A));
55 NEXT N
60 LET A=A+N+1
65 IF A<16914 THEN GO TO 15
70 LET A$="▛-9B25▛.885▛"
75 FOR N=1 TO LEN A$
80 FOR J=1 TO 50
85 NEXT J
90 PRINT AT 15,12+N;CHR$ (CODE A$(N)+144)
95 NEXT N

Taken from the April ’82 issue of Your Computer – Vol.2 No.4

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.