[Coco] Clock "Timing".

John W. Linville linville at tuxdriver.com
Tue Apr 4 15:03:16 EDT 2017


On Tue, Apr 04, 2017 at 06:50:33PM +0000, 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

You will probably have more success using the TIMER variable, which
gets automatically updated 60 times per second (or 50/second in
PAL land)...

Good luck!

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville at tuxdriver.com			might be all we have.  Be ready.


More information about the Coco mailing list