--- title: "TS-2068 Programming Tips" type: "article" slug: "ts-2068-programming-tips" url: "http://localhost/article/ts-2068-programming-tips/" markdown_url: "http://localhost/article/ts-2068-programming-tips.md" published_at: "2022-10-07T12:27:38+00:00" modified_at: "2026-08-06T17:00:01+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "TS-2068 PROGRAMING TIPS Reprinted from Synapse 1st + 2nd Displays You can use this routine to move the Function Dispatcher so you can utilize the 2nd Dispatcher. 10 CLEAR 39999 20 FOR i=40000 to 40017 30 READ n:POKE i,n 40 NEXT i 45 RANDOMIZE USR 40000 50 DATA 1,254,254,205,153,100,62,2,205,142,14,1,255,0,205,89,252,201 After the 1st use, you then…" category: - name: "Nite-Times News" slug: "nite-times-news" taxonomy: "category" url: "http://localhost/category/periodicals/nite-times-news/" post_tag: - 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: "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/" publication_r: id: 10206 title: "Nite-Times News" type: "periodical" url: "http://localhost/periodical/nite-times-news/" volume: "3" issue: "2" issues_articles: - id: 39294 title: "Nite-Times News v3 n2" type: "issue" url: "http://localhost/issue/nite-times-news-v3-n2/" pages: "4-5" pubdate: "March - April 1989" archive_link: false --- # TS-2068 Programming Tips ## TS-2068 PROGRAMING TIPS *Reprinted from Synapse* ### 1st + 2nd Displays You can use this routine to move the Function Dispatcher so you can utilize the 2nd Dispatcher. ``` 10 CLEAR 39999 20 FOR i=40000 to 40017 30 READ n:POKE i,n 40 NEXT i 45 RANDOMIZE USR 40000 50 DATA 1,254,254,205,153,100,62,2,205,142,14,1,255,0,205,89,252,201 ``` After the 1st use, you then have to use these commands, otherwise you will BOMB OUT! ``` OUT 255,2 for the 2nd Display OUT 255,0 for the 1st Display ``` ### 22nd + 23rd Display Lines If you would like to use the 22nd and 23rd line on the screen without using the INPUT command, use this command: ``` PRINT #1;AT 0,2;"Hi there!!" PRINT #1;AT 1,5;"Bye Now!!" ``` The computer will continue to process the program which is fine unless you have to put a question or a prompt and are waiting for a response. In which case, you would have to put in a loop so that untill you got your needed answer, the program would not continue. ### Just For Fun Try This ``` 1 CLS 5 INK 0: ON ERR GO TO 1 10 INPUT INK 0;"Enter Number";n 15 IF n<210 THEN GO TO 10 17 IF n>800 THEN GO TO 10 20 INPUT INK 0;"Enter Ink";i 25 IF i<0 THEN GO TO 20 30 IF i>7 THEN GO TO 20 35 CLS 40 INK i: PLOT 75,85: DRAW 50,50,n 42 REM 50,50 can be changed to 25,25 43 PRINT #1;AT 0,0;"PRESS Z for copy to PRINTER" 45 PRINT #1;AT 1,0;"Press any other key to continue" 46 IF INKEY$="" THEN GO TO 46 49 IF INKEY$="Z" THEN COPY:LPRINT "Number";n:LPRINT:LPRINT 50 GO TO 10 ``` ### SCROLLING If you POKE a number from 1 to 255 into the location 23692, the computer will scroll that many lines plus 21 (If there is that much text to be scrolled!). Otherwise, it will return to the beginning of the text and use that to print the number of lines that you estimated. ``` POKE 23692,# # = Any number from 1 to 255 ``` ### Faster Control If you have long text to edit and you feel like your computer is worn out before it starts, or if your laser guns aren’t firing fast enough for you, try these commands (But BEWARE!): ``` POKE 23561,# (# = 1 to 35. For games 1 to 10; text 10 to 15) POKE 23562,# (# = 1 to 5. For games 1 ; text 3) ``` ### BEEP For Typing For those of you who are Hard of Hearing or just like to hear the reassuring beep of the typewriter keys, try this command: ``` POKE 23609,# (# = 1 to 255) ``` The sound will range from wood blocks to Morse Code. Please note that a value of 0 will disable the beep. ### More Flags For those of you that do some business programing where you would like to capitalize occasionally, her is a POKE for you! ``` POKE 23658,8 (CAPITALS) POKE 23658,0 (Lower case) ```