0100 ;CLOCK.M65›0110 ;BY J. LITTLE›0120 ;(c)1988, ANTIC PUBLISHING›0130 ;›0140 ;USES RTCLOK FOR REAL-TIME CLOCK›0150 ;IN VBI. USES ADDRESS 20 TO KEEP›0160 ;COUNT OF JIFFIES AND USES 18 & 19›0170 ;FOR STORAGE OF COUNT OF MINUTES›0180 ;& SECONDS INSTEAD OF THEIR USUAL›0190 ;FUNCTIONS. USES LOCATION $CF TO›0200 ;KEEP COUNT OF HOURS. COUNTS›0210 ;JIFFIES IN $D0 AND $D1.›0220 ;›0230 ;Because this clock is intended›0240 ;for long-term applications,›0250 ;all calculations were made using›0260 ;the maximum number of decimal›0270 ;places, for the highest accuracy.›0280 ;Working from RTCLOK'S calculated›0290 ;error of .12776% (59.92334 HZ›0300 ;instead of 60 HZ), the jiffy›0310 ;counter is incremented every›0320 ;13.05 seconds (783 jiffies), for›0330 ;a calculated accuracy of›0340 ;approximately .00004%, or about›0350 ;1/4 second per week.›0360 ;›0370 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;›0380 ;›0390 *= $0680›0400 ;›0410 ;SET UP VBI›0420 PLA ›0430 LDX # >START›0440 LDY #