--- title: "Renumbering Basic Statements" type: "article" slug: "renumbering-basic-statements" url: "http://localhost/article/renumbering-basic-statements/" markdown_url: "http://localhost/article/renumbering-basic-statements.md" published_at: "2020-10-27T17:19:07+00:00" modified_at: "2024-06-23T01:04:36+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "This article presents two Basic renumbering programs in Sinclair Basic for the 8K ROM. The first program can be used with 1K or 16K RAM. It only renumbers the Basic statements. It does not do anything about the destination addresses for GOSUB and GOTO keywords that must be changed after a program is renumbered. The…" category: - name: "SYNC" slug: "sync" taxonomy: "category" url: "http://localhost/category/periodicals/sync/" post_tag: - name: "1982" slug: "year-1982" taxonomy: "post_tag" url: "http://localhost/tag/year-1982/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" - 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/" indiv: - name: "Allen H. Wolach" slug: "allen-h-wolach" taxonomy: "indiv" url: "http://localhost/indiv/allen-h-wolach/" publication: "Sync" publication_r: id: 10243 title: "SYNC" type: "periodical" url: "http://localhost/periodical/sync-magazine/" authors: "Allen H. Wolach" volume: "2" issue: "6" issues_articles: - id: 26646 title: "SYNC v2 n6" type: "issue" url: "http://localhost/issue/sync-v2-n6/" pages: "80-85" pubdate: "November/December 1982" archive_link: false volumeissue: "v2n6" --- # Renumbering Basic Statements This article presents two Basic renumbering programs in Sinclair Basic for the 8K ROM. The first program can be used with 1K or 16K RAM. It only renumbers the Basic statements. It does not do anything about the destination addresses for GOSUB and GOTO keywords that must be changed after a program is renumbered. The second program calculates the destination address for each GOTO and GOSUB statement.