--- title: "RENO" id: 76579 type: "computer_media" slug: "reno" url: "http://localhost/computer_media/reno/" markdown_url: "http://localhost/computer_media/reno.md" published_at: "2026-11-11T08:02:25+00:00" modified_at: "2026-11-11T08:02:25+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/reno-1.png" excerpt: "Renumber the lines of a ZX81 BASIC program from any start and step, using a short BASIC routine kept at the end of the program." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Larry Lockwood" slug: "larry-lockwood" taxonomy: "indiv" url: "http://localhost/indiv/larry-lockwood/" genre: - name: "Renumber" slug: "renumber" taxonomy: "genre" url: "http://localhost/type/renumber/" media_type: "Program" programmers: - name: "Larry Lockwood" slug: "larry-lockwood" taxonomy: "indiv" url: "http://localhost/indiv/larry-lockwood/" download_url: "https://archive.org/download/timex-sinclair-software-archive/RENO%20%281982%29%28Lockwood%2C%20Larry%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/reno-1.png" - url: "http://localhost/wp-content/uploads/2026/11/reno-2.png" - url: "http://localhost/wp-content/uploads/2026/11/reno-3.png" article_media: - id: 19988 title: "Line Renumbering" type: "article" url: "http://localhost/article/line-renumbering-2/" related_content: - id: 19332 title: "Program Improvements/Refinements" type: "article" url: "http://localhost/article/program-improvements-refinements-2/" - id: 19292 title: "Program Improvements" type: "article" url: "http://localhost/article/program-improvements-2/" media_type_tags: "Renumber" license: false --- # RENO RENO lives at lines 9964-9999. Load it first, write your program below line 9964, and RUN 9965. Answer START RENUMBERING AT? with the first line to change, then the new first line number and the step. RENO walks through the program changing the line numbers in memory; it does not change the targets of GOTO and GOSUB, so fix those yourself. Keep RENO attached when you save so you can renumber again later. It needs 16K. The variable NEW is typed as the three letters N, E and W. The same article prints a machine-code renumberer by Mike V. Mullen. Published in Syntax June 1982 ([Line Renumbering](https://timexsinclair.com/article/line-renumbering-2/)). ## Source Code ``` 9964 STOP 9965 PRINT AT 8,1;"START RENUMBERING AT?" 9966 INPUT START 9967 PRINT AT 8,21;" ";START;"." 9968 LET ADDR=16509 9969 LET LINE=256*PEEK (ADDR)+PEEK (ADDR+1) 9970 IF LINE=START THEN GOTO 9978 9971 IF LINE=9964 THEN GOTO 9975 9972 LET LENGTH=PEEK (ADDR+2)+256*PEEK (ADDR+3) 9973 LET ADDR=ADDR+4+LENGTH 9974 GOTO 9969 9975 PRINT AT 8,1;" STARTING ADDRESS NOT FOUND." 9976 PAUSE 200 9977 GOTO 9965 9978 PRINT AT 10,1;"RENUMBER BEGINNING WITH?" 9979 INPUT NEW 9980 PRINT AT 10,24;" ";NEW;"." 9981 PRINT AT 12,1;"INCREMENT LINES BY?" 9982 INPUT INC 9983 PRINT AT 12,19;" ";INC;"." 9984 PAUSE 150 9985 CLS 9986 IF PEEK (ADDR)=38 AND PEEK (ADDR+1)=236 THEN GOTO 9996 9987 IF NEW>=9964 THEN GOTO 9998 9988 LET MSB=INT (NEW/256) 9989 LET LSB=NEW-256*MSB 9990 POKE ADDR,MSB 9991 POKE ADDR+1,LSB 9992 LET LENGTH=PEEK (ADDR+2)+256*PEEK (ADDR+3) 9993 LET ADDR=ADDR+4+LENGTH 9994 LET NEW=NEW+INC 9995 GOTO 9986 9996 PRINT AT 10,5;"RENUMBERING COMPLETED" 9997 STOP 9998 PRINT AT 10,5;"CANNOT COMPLETE." 9999 PRINT AT 12,6;"LINE NO. >9964." ```