[Coco] Clock "Timing".

Dave Philipsen dave at davebiz.com
Tue Apr 4 14:58:24 EDT 2017


You would probably get a more accurate timebase by using an interrupt 
routine which would be derived from timing based upon the crystal 
frequency.  Even with that you would probably want a way to trim it for 
accuracy.  It can all be done from an Extended BASIC command set however 
a knowledge of machine code would be essential.

Dave


On 4/4/2017 1:50 PM, John Lochey via Coco wrote:
> Hi all,
> I'm making a binary clock for the CoCo2 via emulation (XRoar at the moment).
>
> As far as I know (from reading "Getting Started...Color Basic"), the way to time an actual second of time on a Color Computer 2 is to use a For...Next loop that corresponds as closely to an "actual" second as possible.
> Is there a better way using just the Extended BASIC command set?
> Also, provided that the emulator has the same settings as the original CoCo2, will the same timing loop work via emulation and hardware?
>
> Or am I a dreamer!  ;)
>
> Johnny
>
>



More information about the Coco mailing list