From mint-bounce@lists.fishpool.fi Tue Dec 22 18:20:06 2009 X-SourceIP: 77.249.76.7 Message-ID: <4B315396.3080403@chello.nl> Date: Wed, 23 Dec 2009 00:17:42 +0100 From: Henk Robbers User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: MiNT-List Subject: Re: [MiNT] Possible bug in cflib's font selector References: <4B30FE9B.30001@freesbee.fr> <3344363206.12160346966@[192.168.178.13]> In-Reply-To: <3344363206.12160346966@[192.168.178.13]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: h.robbers@chello.nl Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: To be more precise: Functions need only save registers they use outside a0-a1/d0-d2. The Pure C trap bindings do not them selves use a2. a2 is saved because the OS cannot be expected to conform to Pure C's standards. And indeed, some don't. It is not about what a particular OS allows us to omit. It is about what a OS should be allowed to use. Special care must be taken in TSR's that call OS code direct or via vectors. Even a6 might not be safe to use. -- Groeten; Regards. Henk Robbers. http://members.chello.nl/h.robbers Interactive disassembler: TT-Digger; http://digger.atari.org A Home Cooked C compiler: AHCC; http://ahcc.atari.org