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

Re: [MiNT] Possible bug in cflib's font selector



Gerhard Stoll wrote:

I´m not Henk, but cdecl ist that what there stand. <http://toshyp.atari.org/00d00e.htm#Pure-C_20and_20_27cdecl_27> If you use 'cdecl' PureC put all paramters on the stack, normly it use for the parameter the register do-d2 and a0-a1. For PureC is defined that a assembler function must save the register d3-d7 and a2-a6.


That is all very correct for normal functions.

However, the Pure C OS-trap bindings also save a2.

Because Pure C in its wisdom doesnt trust anything that is
outside its control.

--
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