--- title: "Save more memory by using more variables" type: "article" slug: "save-more-memory-by-using-more-variables" url: "http://localhost/article/save-more-memory-by-using-more-variables/" markdown_url: "http://localhost/article/save-more-memory-by-using-more-variables.md" published_at: "2023-04-03T23:54:09+00:00" modified_at: "2025-10-26T00:26:51+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "We will use H = 2, K = 10, Q = 32, and R = 256. All these are added to line 9996. 9996 LET P=VAL \"20\": DIM D$(VAL \"28020\"): LET O=NOT PI: LET B=O: LET U=SGN PI: LET H=U+U: LET F=H+H: LET G=VAL \"7\": LET K=VAL \"10\": LET J=VAL \"15\": LET Q=COE \" \":…" category: - name: "Extensions" slug: "extensions" taxonomy: "category" url: "http://localhost/category/periodicals/extensions/" post_tag: - name: "Pro/File 2068" slug: "pro-file-2068" taxonomy: "post_tag" url: "http://localhost/tag/pro-file-2068/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Robert Fischer" slug: "robert-fischer" taxonomy: "indiv" url: "http://localhost/indiv/robert-fischer/" publication_r: id: 39138 title: "Extensions" type: "periodical" url: "http://localhost/periodical/extensions/" authors: "Robert Fischer" authors_r: - name: "Robert Fischer" slug: "robert-fischer" taxonomy: "indiv" url: "http://localhost/indiv/robert-fischer/" issue: "3" issues_articles: - id: 49309 title: "Extensions issue 3" type: "issue" url: "http://localhost/issue/extensions-3/" pages: "1" product_reviews: - id: 13646 title: "Pro/File 2068" type: "product" url: "http://localhost/product/pro-file-2068-2/" archive_link: false --- # Save more memory by using more variables We will use H = 2, K = 10, Q = 32, and R = 256. All these are added to line 9996. ``` 9996 LET P=VAL "20": DIM D$(VAL "28020"): LET O=NOT PI: LET B=O: LET U=SGN PI: LET H=U+U: LET F=H+H: LET G=VAL "7": LET K=VAL "10": LET J=VAL "15": LET Q=COE " ": LET R=VAL "256": LET D$( TO P)="*SEARCH IS COMPLETE*": LET A$="ALL": LET C$="": FOR X=U TO J: LET C$=C$+CHR$ X: NEXT X: LET S=O ``` Now adjust any appropriate program lines. Remember that if you used my previous variables, you may have used U+U for 2 and CODE ” ” for 32. Change these as well. Also use combinations such as K-U (10-1) for 9 and K*K (10 times 10) for 100. Do not use variables in lines 7990, 9991 or (if you add the microdrive routines) 9900, 9901. Finally, for speed purposes in editting, don’t use them between lines 5010 and 5103.