Path: utzoo!attcan!uunet!snorkelwacker!ira.uka.de!fauern!fauern!csbrod From: csbrod@medusa.informatik.uni-erlangen.de (Claus Brod ) Newsgroups: comp.sys.atari.st.tech Subject: Re: Cookie Jar Message-ID: <3142@medusa.informatik.uni-erlangen.de> Date: 1 Oct 90 18:08:04 GMT References: <1990Sep29.130821.1@cbrown.claremont.edu> <1990Sep30.063129.1@linus.claremont.edu> Organization: CSD, University of Erlangen, W-Germany Lines: 25 entropy@mole.ai.mit.edu (Nick Castellano) writes: >Dunno, I've never had to use it. Anyone else? The question is: >Where is the cookie jar, or how does one find out where it is? Look at the contents of $5A0.L to find out the start address of the current cookie jar. If it's zero, noone has installed it yet, and you will have to do that yourself. The cookie jar is always terminated by a special cookie. Like all the other cookies, its length is 8 bytes (4 bytes for identification of your program - much like XBRA IDs; IDs starting with an underscore are reserved for ATARI; some program-specific info follows the ID). The ID part of the last cookie is always a zero longword, and its data part gives you the size of the current cookie jar in units of cookies (8 bytes). If you find out that inserting your own cookie would result in memory overflow you must allocate a cookie jar of your own and keep it resident. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de ----------------------------------------------------------------------