--- title: "Saving 2068 Programs Revisited" type: "article" slug: "saving-2068-programs-revisited-2" url: "http://localhost/article/saving-2068-programs-revisited-2/" markdown_url: "http://localhost/article/saving-2068-programs-revisited-2.md" published_at: "2022-10-07T12:26:31+00:00" modified_at: "2026-07-31T01:09:29+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "MC - machine code program nameBasic - basic program nameScreen - screen string program name Load the program until the screen display is displayed then BREAK and LIST. This listing will give you the starting address of the machine code (found in the line RAND USR #), the name of the machine code and the…" category: - name: "LISTing Newsletter" slug: "listing-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/listing-newsletter/" post_tag: - name: "1984" slug: "year-1984" taxonomy: "post_tag" url: "http://localhost/tag/year-1984/" - name: "Best of Timex/Sinclair 2068 Articles and Documents" slug: "ts2068best" taxonomy: "post_tag" url: "http://localhost/tag/ts2068best/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Tutorial" slug: "tutorial" taxonomy: "post_tag" url: "http://localhost/tag/tutorial/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Dennis Jurries" slug: "dennis-jurries" taxonomy: "indiv" url: "http://localhost/indiv/dennis-jurries/" publication_r: id: 38992 title: "LISTing Newsletter" type: "periodical" url: "http://localhost/periodical/listing-newsletter/" authors: "Dennis Jurries" authors_r: - name: "Dennis Jurries" slug: "dennis-jurries" taxonomy: "indiv" url: "http://localhost/indiv/dennis-jurries/" issues_articles: - id: 40112 title: "LISTing Newsletter September 1984" type: "issue" url: "http://localhost/issue/listing-newsletter-september-1984/" pages: "12" pubdate: "September 1984" archive_link: false --- # Saving 2068 Programs Revisited MC – machine code program name Basic – basic program name Screen – screen string program name Load the program until the screen display is displayed then BREAK and LIST. This listing will give you the starting address of the machine code (found in the line RAND USR #), the name of the machine code and the SCREEN$ program. LOAD the machine code program (LOAD “MC” CODE). PEEK the machine code program looking for its length. This can be done by looking at the machine code until you find a long group of 0s (say 32). ``` SAVE "Basic" LINE 1 SAVE "Screen" SCREEN$ SAVE "MC" CODE #1,#2 ``` #1 is the starting address from RAND USR. #2 is the length of the machine code routine determined by subtracting the starting address from the ending address found when you peeked the machine code and found the start of the 0s or by using the top of memory 65535 (ie. say start address from RAND USR 42000. 65525-42000 = 23535. Then SAVE “MC” CODE 42000,65535). Try this short program making you reload the BASIC loader program should you overwrite part of it. This will help you find the end of the machine code program. ``` 1 LET k=starting address of machine code 3 IF PEEK k=0 THEN PRINT k 3 LET K=K+1 4 GO TO 2 ``` Caution: do not try to verify the screen display. It will not verify.