Revised clock version 2

Developer(s): Steve Gunhouse
Date: 1992
Type: Program
Platform(s): TS 2068
Tags: Clock

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).

Related Articles

I had to write about your “discan” program in the latest newsletter. Naturally it would be faster in ml, but that’s another story.

Related Content

Image Gallery

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

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.