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

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




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