[Coco] How to get time in DW4

Gene Heskett gheskett at wdtv.com
Tue Oct 9 10:41:52 EDT 2012


On Tuesday 09 October 2012 10:39:06 Bill Pierce did opine:

> Aaron, I've noticed the same time problem as Bob. If you wait just a
> minute or so, it gets corrected. It seems the time isn't being set at
> boot but is being set on the 60 sec interval. A lot of times, I'm
> rebooting from a crash while testing a new "C" compile and do a "make"
> right after I boot before the time gets reset and I get all kinds of
> weird times after "touch" sees a date much older than the last compile.
> I usually have to wait about a min, then everything is fine.
> 
> I think part of the problem is having the "date" command in the
> "startup" file. I think it's reading the time before OS9 has a chance
> to to reset it from the DW time signal. I was "sortta" investigating
> into this at one time due to OS9's clock loosing time on disk access
> untill DW's 60 sec interval resets it.
> 
>  The reason I was looking into it was that I was thinking of using the
> DW clock signal as a Midi timer (when DW is present) and it would give
> Midi a much more accurate clock. Of course any program using this would
> have to make a DW check and revert back to the old clock if there is no
> DW.
> 
> I found the clock request info in theDW spec. It seem $23 is the request
> code.
> 
> Can this be sent "raw" through "/N" ?  I know there would have to be
> code to interpret the return values which should be:
> 
> Byte 1: Current year minus 1900
> Byte 2: Month
> Byte 3: Day
> Byte 4: Hour
> Byte 5: Minute
> Byte 6: Second.
> 
> With this, info, a "Time" request command could be written as I didn't
> see any such command in the "DW" or "UI" command lists. Bill P
> 
> Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Bill Pierce
> ooogalapasooo at aol.com
> 
> 
> 
> 
> -----Original Message-----
> From: Aaron Wolfe <aawolfe at gmail.com>
> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
> Sent: Tue, Oct 9, 2012 6:35 am
> Subject: Re: [Coco] How to get time in DW4
> 
> 
> Sounds like maybe another problem with nightly disks?  It should be
> automatic, the dw3 clock module sets the clock to the current server
> time every 60 seconds (when it works / gets loaded / ?)
> 
Do be aware that the os9 clock isn't started at bootup, until an access is 
done.  Without it, there is no multitasking.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
It is not a good omen when goldfish commit suicide.



More information about the Coco mailing list