[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] DATE/TIME cookies

On Wed, 17 Feb 1999 16:39:54 +0100 (EET), Konrad Kokoszkiewicz wrote:

KK>> OK, so what if FreeMiNT allocated two word blocks in a global memory and
KK>> ´mirrored´ the internal datestamp and timestamp variables into those
KK>> vars in global memory?

KK>Two problems:
KK>1) (Julian already pointed it out) internal date and timestamp of MiNT
KK>   must be in TOS format. Which won´t be the case, the internal
KK>   implementation of timekeeping variables is currently changing.

there will always be the code for converting the internal variables into
GEMDOS format (for Tgetdate/Tgettime). This code could be called once
per second to update the global variables DATE/TIME cookies would point

KK>The real problem is that calling MiNT from interrupt (whether MiNT is
KK>reentrant or not) would greatly increase system load

I agree. So please tell me how to allocate 4 bytes in globally
accessible memory (read-only is OK) and I´ll write the code for
DATE/TIME cookies. Then you can say if it´s OK to integrate it or not.

E-mail: stehlik@cas3.zlin.vutbr.cz                        PARCP developer
   WWW: http://cas3.zlin.vutbr.cz/~stehlik/              MiNTOS/Linux user
mirror: http://users.zln.cz/~pstehlik/                 Atari 800XL emulation
mirror: http://www.stehlik.cyberstrider.org/              Atari Falcon040