[net.micro.atari16] AUTO Folder and System Initialization

terrell@OHIO-STATE.ARPA (Eric Terrell) (04/30/86)

This evening I wrote a little program to set the system time and date for my
520ST.  When I ran the program, it did actually change the time and date as
expected.

Since I wanted this program to be run at boot time, I placed it in a folder
named AUTO.  When I booted up, my program was run, but the time and date
were unchanged by my program.

I think what happened is this:  my program set the date and time perfectly.
After the program finished, the date and time were given their default
(and strange) values by the system.

THE PUNCH LINE:

Is there a way to get a program in the AUTO folder to run after all system
initialization is completed?

Thanks in advance,

Eric Bergman-Terrell

jmc@ptsfa.UUCP (Jerry Carlin) (05/01/86)

In article <8604300420.AA12861@ohio-state.ARPA> terrell@OHIO-STATE.ARPA (Eric Terrell) writes:
>This evening I wrote a little program to set the system time and date for my
>520ST...

>Since I wanted this program to be run at boot time, I placed it in a folder
>named AUTO.  When I booted up, my program was run, but the time and date
>were unchanged by my program.

There is a public-domain date and time program that I am using that works.
I'm not sure what the difference is but it is possible to set the date
and time 'permanently' in spite of when programs in AUTO run.
-- 
voice= 415 823-2441
uucp={ihnp4,dual,qantel}!ptsfa!jmc

neil@atari.UUcp (Neil Harris) (05/03/86)

In article <8604300420.AA12861@ohio-state.ARPA>, terrell@OHIO-STATE.ARPA (Eric
Terrell) writes:
> 
> This evening I wrote a little program to set the system time and date for my
> 520ST.  When I ran the program, it did actually change the time and date as
> expected.
> 
> Since I wanted this program to be run at boot time, I placed it in a folder
> named AUTO.  When I booted up, my program was run, but the time and date
> were unchanged by my program.
> 
> I think what happened is this:  my program set the date and time perfectly.
> After the program finished, the date and time were given their default
> (and strange) values by the system.
> 
> THE PUNCH LINE:
> 
> Is there a way to get a program in the AUTO folder to run after all system
> initialization is completed?

There are 2 different system clocks in the system.  You set the wrong one.
I have a PD program that lives in my AUTO folder and sets the clock.  It
works perfectly.

GEMDOS $2B is SETDATE
       $2D is SETTIME

XBIOS 22 is settime.

Both these calls are equivalent, and to the WRONG clock.

The correct call is XBIOS call 25, ikbdws, which sends a command to the
intelligent keyboard.  You must send ikbd command $1B, set clock time.
This is the clock that determines the system time at bootup.

--->Neil @ Atari
	... lll-crg!vecpyr!atari!neil

silvert@dalcs.UUCP (Bill Silvert) (05/03/86)

There have been several complaints that programs that set the time and
date do not work.  I hve written some that do, but it takes time for
them to become effective.  If you use setdate() and then mouse the
control panel the date and time are not changed, but after about a
minute they jump to their correct values.  I have my date program in an
AUTO folder and it works fine.  By the way, AUTO is read before the
desktop, so if you have a colour monitor the program will run in low res.