[Coco] Clock "Timing".

Arthur Flexser flexser at fiu.edu
Tue Apr 4 15:21:38 EDT 2017


It wouldn't have been in the Getting Started book, which does not cover
Extended Basic, where the TIMER function exists.  It would be in Going
Ahead With Extended Basic.  (Maybe later editions combined the two.)

Art

On Tue, Apr 4, 2017 at 3:05 PM, John Lochey via Coco <coco at maltedmedia.com>
wrote:

> Hi Art,
> I totally missed TIMER function.
> I had read through "Getting Started...Basic" awhile ago, and was actually
> doing a search through the PDF and completely missed that Function.
>
> I will incorporate that into my program.
> Thanks a lot!  :)
>
>
> Johnny
>
>
>       From: Arthur Flexser <flexser at fiu.edu>
>  To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
>  Sent: Tuesday, April 4, 2017 3:00 PM
>  Subject: Re: [Coco] Clock "Timing".
>
> There's a TIMER function in Extended Basic that is a 60th of a second
> counter.
> An example of the syntax would be Y=TIMER to read the timer.  You can also
> zero it with TIMER=0. This is all interrupt driven, so your program can be
> doing other things as the count increases.
>
> I believe it's accurate to something like a 10th of a percent or
> thereabouts.
>
> Art
>
> On Tue, Apr 4, 2017 at 2:50 PM, John Lochey via Coco <coco at maltedmedia.com
> >
> 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
> >
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> >
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list