--- title: "Bytes Remaining (8K)" type: "article" slug: "bytes-remaining-8k" url: "http://localhost/article/bytes-remaining-8k/" markdown_url: "http://localhost/article/bytes-remaining-8k.md" published_at: "2026-11-28T14:10:45+00:00" modified_at: "2026-11-28T14:10:45+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Enter this line as the first line of your 8K program: 1 REM E0RNDLN ACS : FAST AT 5 = GOSUB PI FAST AT TAN Start by entering GOSUB PI FAST AT TAN and then backspace to add 1 REM.... The spacing is critical! Note the 2 spaces between = and GOSUB. Call this routine…" post_tag: - name: "1981" slug: "year-1981" taxonomy: "post_tag" url: "http://localhost/tag/year-1981/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" indiv: - name: "Ian Logan" slug: "ian-logan" taxonomy: "indiv" url: "http://localhost/indiv/ian-logan/" publication: "Syntax" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors: "Ian Logan" volume: "2" issue: "12" issues_articles: - id: 82135 title: "Syntax/Syntax ZX80 v2 n12" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v2-n12/" pages: "5" pubdate: "December 1981" archive_link: false volumeissue: "v2n12" --- # Bytes Remaining (8K) Enter this line as the first line of your 8K program: ``` 1 REM E0RNDLN ACS : FAST AT 5 = GOSUB PI FAST AT TAN ``` Start by entering GOSUB PI FAST AT TAN and then backspace to add 1 REM…. The spacing is critical! Note the 2 spaces between = and GOSUB. Call this routine whenever you need it by typing in the immediate mode (with no line number) PRINT USR 16514. I set this routine to give 800 for a 1K machine. It’s a pretty good representation of the true number of available bytes for a BASIC program. We got 799 on our 1K machine and 15391 on our 16K machine.–AZ