--- title: "Revised clock version 2" id: 77497 type: "computer_media" slug: "revised-clock-version-2" url: "http://localhost/computer_media/revised-clock-version-2/" markdown_url: "http://localhost/computer_media/revised-clock-version-2.md" published_at: "2026-11-15T18:38:21+00:00" modified_at: "2026-11-15T18:38:21+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/revised-clock-version-2-1.png" excerpt: "An interrupt-driven 24-hour clock with its own colours and position, shown as soon as it starts." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "LKDOS" slug: "lkdos" taxonomy: "post_tag" url: "http://localhost/tag/lkdos/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Steve Gunhouse" slug: "steve-gunhouse" taxonomy: "indiv" url: "http://localhost/indiv/steve-gunhouse/" genre: - name: "Clock" slug: "clock" taxonomy: "genre" url: "http://localhost/type/clock/" media_type: "Program" programmers: - name: "Steve Gunhouse" slug: "steve-gunhouse" taxonomy: "indiv" url: "http://localhost/indiv/steve-gunhouse/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Revised%20clock%20version%202%20%281992%29%28Gunhouse%2C%20Steven%20V.%29%28TS2068%29%28US%29%28Program%29.zip" tsrun_member: "Revised clock version 2 (1992)(Gunhouse, Steven V.)(TS2068)(US)(Program)/Revised clock version 2 (1992)(Gunhouse, Steven V.)(TS2068)(US)(Program).tap" mediadate: "1992" images: - url: "http://localhost/wp-content/uploads/2026/11/revised-clock-version-2-1.png" article_media: - id: 23599 title: "Letter from Steve Gunhouse" type: "article" url: "http://localhost/article/letter-from-steve-gunhouse-5/" related_content: - id: 77378 title: "Digital Clock (clock.BD)" type: "computer_media" url: "http://localhost/computer_media/digital-clock-clock-bd/" - id: 77495 title: "Revised 24-hour clock" type: "computer_media" url: "http://localhost/computer_media/revised-24-hour-clock/" media_type_tags: "Clock" license: false --- # Revised clock version 2 The second version of Steven Gunhouse’s interrupt-driven 24-hour clock: it shows the starting time at once and sets its own colours, so it stays readable whatever is printed under it. RUN 3000 POKEs 154 bytes of machine code to 65184 and asks for INK, PAPER, row, column and the time (hhmmss); RUN 4000 stops it. To adjust the timing, change the second 60 in line 1006. Lines 9900 and 9999 save to a Larken disk and are not needed from tape. Published in Sinc-Link January-February 1992 ([Letter from Steve Gunhouse](https://timexsinclair.com/article/letter-from-steve-gunhouse-5/)). ## Source Code ``` 100 REM Revised clock version 2 102 REM RUN 3000 to enable 103 REM RUN 4000 to disable 105 REM to adjust timing, change second 60 in line 1006 to counted seconds per real minute 1000 DATA 33,0,253,17,1,253,1,0,1,54,254,237,176,62,253,237 1001 DATA 71,237,94,33,82,255,17,31,64,205,201,254,62,10,205,217 1002 DATA 254,205,201,254,62,10,205,217,254,126,43,14,0,12,214,10 1003 DATA 48,251,13,198,10,205,217,254,121,213,229,135,135,135,33,128 1004 DATA 61,133,111,6,8,126,18,20,35,16,250,122,203,63,203,63 1005 DATA 203,63,246,88,87,21,62,7,18,225,209,27,201,0,245,229 1006 DATA 197,213,33,83,255,126,60,119,254,60,56,32,175,119,43,126 1007 DATA 60,254,60,56,19,175,119,43,126,60,254,60,56,10,175,119 1008 DATA 43,126,60,254,24,56,2,175,119,205,179,254,209,193,225,241 1009 DATA 195,56,0,237,86,62,63,237,71,201 3000 RESTORE 1000: FOR i=0 TO 153: READ a: POKE 65184+i,a: NEXT i 3002 INPUT "INK? ";i,"PAPER? ";p: POKE 65271,8*p+i 3005 INPUT "Row? ";r,"Column?";c: LET r1=8*INT (r/8) 3010 POKE 65207,32*(r-r1)+c+7: POKE 65208,64+r1 3015 INPUT "time? (hhmmss) "; LINE t$: POKE 65363,0: POKE 65360,VAL t$(1 TO 2) 3020 POKE 65361,VAL t$(3 TO 4) 3025 POKE 65362,VAL t$(5 TO 6) 3030 RANDOMIZE USR 65184: STOP 4000 RANDOMIZE USR 65331: STOP 9900 RANDOMIZE USR 100: SAVE "clock.Cx"CODE 65184,154 9999 RANDOMIZE USR 100: SAVE "[cl]ock1.BD" LINE 3000 ```